摘要: <--位置--> cd / 根路径 cd ~ 切换到当前路径 cd .. 上级目录 ./当前路径 pwd 查看当前路径 whereis 文件名 查找文件位置 which 查找文件位置 <--目录--> 增 mkdir 目录名 修改 cp(复制)/mv(剪切) 目录名 新目录名 cp(复制)/mv(剪 阅读全文
posted @ 2022-09-14 15:43 手可摘星辰/* 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 首先安装axios npm install axios 其次在config下的index.js中修改proxyTable proxyTable: { '/api': { target:'http://127.0.0.1:8000', // secure: false, // 如果是https接口,需 阅读全文
posted @ 2020-01-02 00:17 手可摘星辰/* 阅读(5431) 评论(0) 推荐(0) 编辑
摘要: 这里说明一下,配置文件中的url还可以换成下面的URL 临时更改镜像源阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/豆瓣(douban) http://pypi.dou 阅读全文
posted @ 2019-11-18 19:59 手可摘星辰/* 阅读(1636) 评论(0) 推荐(1) 编辑
摘要: 悬停定位 右键检查 通过快捷键ctrl+shift+c firefox 点击inspector后一样可以出现悬停效果 TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw 阅读全文
posted @ 2023-10-12 14:56 手可摘星辰/* 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Select API 知识点 select_by_index() 根据索引选择,0是第一个元素 select_by_value() 根据value属性的值选择 select_by_visible_text() 根据可见文本选择;不要写前后的空格 deselect_by_index(index) 取消 阅读全文
posted @ 2023-09-06 18:07 手可摘星辰/* 阅读(104) 评论(0) 推荐(0) 编辑
摘要: close是关闭当前的TAB,并不是关闭chromedriver进程;quit是彻底的退出当前打开的浏览器(如果有多个tab都会关闭) 先来操作close 首先清空chromedriver 执行代码 from time import sleep from selenium import webdri 阅读全文
posted @ 2023-09-01 15:33 手可摘星辰/* 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 原地址:http://chromedriver.storage.googleapis.com/index.html中看到最新驱动版本为114,而Chrome的版本已经到116,使用驱动为114会报版本不匹配的错误 解决方法:115及以上版本下载地址:https://googlechromelabs. 阅读全文
posted @ 2023-08-29 16:23 手可摘星辰/* 阅读(563) 评论(0) 推荐(0) 编辑
摘要: get_attribute获取元素属性的一些细节 如:test1.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>获取属性</title> </head> <body> <input type="t 阅读全文
posted @ 2023-07-24 15:21 手可摘星辰/* 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 应用场景-> 多用于爬虫 语法-> 轴名称::节点名称 例如://p/ancestor::div 轴名称 结果 ancestor 选取当前节点的所有先辈 (父、祖父等) ancestor-or-self 选取当前节点的所有先辈 (父、祖父等) 以及当前节点本身 attribute 选取当前节点的所有 阅读全文
posted @ 2023-07-13 13:44 手可摘星辰/* 阅读(23) 评论(0) 推荐(0) 编辑
摘要: with 上下文管理器 在python中是这样介绍的所有实现了__enter__ __exit__ dunder method魔术方法的对象都可以用with 接下来以Chrome为例查看底层 def __enter__(self): return self def __exit__(self, ex 阅读全文
posted @ 2023-07-10 13:40 手可摘星辰/* 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 问题 解决方法:在此页面上,键盘敲入thisisunsafe这12个字符,然后回车 TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Chinese 阅读全文
posted @ 2023-03-07 00:14 手可摘星辰/* 阅读(922) 评论(0) 推荐(0) 编辑
摘要: 临时同步 ntpdate ntp.aliyun.com 永久同步 第一步:ntpdate ntp.aliyun.com 第二步:hwclock -w 第三步:reboot 第四步:重启后date验证 TRANSLATE with x English Arabic Hebrew Polish Bulg 阅读全文
posted @ 2023-03-05 22:27 手可摘星辰/* 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 启动创建容器时,报错Cannot link to /mysql, as it does not belong to the default network 从报错信息看是不属于默认网络 分析容器网络 通过docker inspect 容器id 先后查看应用容器更新之前网络、报错应用容器网络、mysq 阅读全文
posted @ 2023-03-04 19:38 手可摘星辰/* 阅读(444) 评论(0) 推荐(0) 编辑