摘要:
http://npm.taobao.org/mirrors/chromedriver/ Firefox:http://npm.taobao.org/mirrors/geckodriver/ http://npm.taobao.org/mirrors/selenium/ 版本下有IEDriverSer 阅读全文
posted @ 2020-06-20 10:01
船长博客
阅读(899)
评论(0)
推荐(0)
摘要:
pip list显示selenium版本 selenium 3.141.0 下载相应版本IEDriverServer http://npm.taobao.org/mirrors/selenium/ 解压后放入C:\Python27目录下(我之前已经将其设置为环境变量) 我这里选择的是:http:// 阅读全文
posted @ 2020-06-20 09:57
船长博客
阅读(1161)
评论(0)
推荐(1)
摘要:
查看Chrome版本号: chrome://settings/help 下载相应版本chromedriver http://npm.taobao.org/mirrors/chromedriver/ 解压后放入C:\Python27目录下(我之前已经将其设置为环境变量) 阅读全文
posted @ 2020-06-20 09:51
船长博客
阅读(170)
评论(0)
推荐(0)
摘要:
只要编辑过的文章末尾都有这样一个标签 查看html源代码末尾有如下代码 <p><audio controls="controls" style="display: none;"></audio></p> 解决: 有道词典Chrome划词插件的锅,禁用该插件即可 chrome://extensions 阅读全文
posted @ 2020-06-20 08:35
船长博客
阅读(198)
评论(0)
推荐(0)
摘要:
#!/usr/bin/python # -*- coding: utf-8 -*- 阅读全文
posted @ 2020-06-20 08:18
船长博客
阅读(3379)
评论(0)
推荐(0)
摘要:
如果没有安装GeckoDriver会提示: selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 一、下载GeckoDriver 下载地址:https 阅读全文
posted @ 2020-06-20 08:09
船长博客
阅读(5749)
评论(1)
推荐(4)
摘要:
开头添加如下两行即可解决: #!/usr/bin/python # -*- coding: utf-8 -*- 主要是第二行,采用utf-8编码,也可写成# coding:utf-8,但#号一定要有。 问题二:UnicodeDecodeError: 'utf8' codec can't decode 阅读全文
posted @ 2020-06-20 08:00
船长博客
阅读(3220)
评论(0)
推荐(0)
摘要:
解决: selenium传入中文时前面加u browser.find_element_by_id("kw").send_keys(u"船长博客") #!/usr/bin/python # coding:utf-8 from selenium import webdriver import time 阅读全文
posted @ 2020-06-20 07:57
船长博客
阅读(1297)
评论(0)
推荐(0)
浙公网安备 33010602011771号