cartoon_crawler icon indicating copy to clipboard operation
cartoon_crawler copied to clipboard

error code1

Open edochina opened this issue 3 years ago • 1 comments

先握个爪爪,都是漫画爱好者。 麻烦看下面错误信息!用的是exe文件执行的。

建议先在浏览器内打开这几个漫画网站进行漫画的搜索选择,再进行爬取 【1】百年漫画: https://www.bnmanhua.com 【2】优酷漫画: https://www.ykmh.com 【3】古风漫画: https://www.gufengmh9.com 【4】1234漫画(暂时无法访问): https://www.zxkai.com 请输入想使用的漫画网站的序号:3 你选择的是【3】古风漫画: https://www.gufengmh9.com

【1】IE浏览器 【2】windows谷歌Chrome 【3】mac或linux上的谷歌浏览器 请输入希望使用浏览器对应的序号:2 你选择的是【2】windows谷歌Chrome

C:\Users\au\AppData\Local\Temp_MEI189522\漫画爬虫.py:78: DeprecationWarning: executable_path has been deprecated, please pass in a Service object C:\Users\au\AppData\Local\Temp_MEI189522\漫画爬虫.py:78: DeprecationWarning: use options instead of chrome_options Traceback (most recent call last): File "selenium\webdriver\common\service.py", line 76, in start File "subprocess.py", line 800, in init File "subprocess.py", line 1207, in _execute_child FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "漫画爬虫.py", line 173, in File "漫画爬虫.py", line 78, in wbd File "selenium\webdriver\chrome\webdriver.py", line 73, in init File "selenium\webdriver\chromium\webdriver.py", line 90, in init File "selenium\webdriver\common\service.py", line 83, in start selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home

[7880] Failed to execute script '漫画爬虫' due to unhandled exception!

edochina avatar May 16 '22 13:05 edochina

@edochina 握爪哈哈,感谢你的使用 selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home 最后这一行指明了是因为chrome浏览器的版本和驱动不匹配

我在readme里简单写了:如果使用谷歌浏览器,请直接官网下载最新的谷歌浏览器(最好之后禁止更新,要不驱动也得跟着更新),查看浏览器版本,再到 “各种浏览器驱动” 文件夹目录下的 “浏览器驱动更新地址.txt”的地址下载对应版本的浏览器驱动程序替换原驱动程序。 浏览器驱动程序默认下载好的对应 浏览器版本号(如果和你的浏览器版本与默认不同,请到浏览器驱动文件夹的下载地址中下载对应版本驱动替换该文件夹中驱动程序): chromedriver.exe>谷歌Chrome 86.0.4240.183;IEDriverServer.exe>ie11浏览器

详细教程可以参考下这个博客:https://blog.csdn.net/weixin_44318830/article/details/103339273

zero0mum avatar May 16 '22 14:05 zero0mum