selenium
Spring� 胡
一枚卑微的打工人。
展开
-
MAC M1搭建selenium环境
MAC M1如何搭建selenium环境?如果你还不会的话一定要看看!原创 2022-05-06 22:47:15 · 1013 阅读 · 1 评论 -
selenium.common.exceptions.WebDriverException: Message: ‘MicrosoftWebDriver.exe‘ executable needs to
错误代码:原因分析:Edge浏览器中没有驱动器解决方法:1.查看浏览器版本2.下载驱动器下载地址:https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/注意:驱动器版本很多,一定要下载和浏览器版本匹配的。如果没有完全匹配的驱动器,选择现有的小于浏览器版本的最近一个驱动器。3.将驱动器解压到python的默认路径下,确保两者在同一目录下。4.将msedgedriver.exe改名为MicrosoftW原创 2022-05-05 13:42:50 · 2959 阅读 · 0 评论 -
python+selenium 知乎评论爬取
import reimport requestsimport osimport timeheaders = { 'User-Agent': 'Chrome/10'}def main(): print('例如:罗大佑的网址是:https://music.163.com/#/artist?id=3686','\n','ID就是:3686') ID=input("请输入歌手ID:") url='https://music.163.com/artist?id='+ID原创 2021-09-01 13:00:47 · 440 阅读 · 2 评论 -
selenium.common.exceptions.TimeoutException: Message:
问题:用python selenium在爬取淘宝等电商网站时,出现如下报错:原因:淘宝等电商网站有反爬取机制,你用了同个ip地址多次爬取,会被侦测到并且拉黑。解决:换个ip地址即可,简而言之,换个淘宝账号就行。...原创 2021-06-26 11:17:59 · 1650 阅读 · 0 评论 -
selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘解决
请大家自行跳转下方链接,亲测有效!https://blog.csdn.net/weixin_44318830/article/details/103339273转载 2021-06-25 08:33:59 · 77 阅读 · 0 评论