4.8模拟登录这里用到的undetected_chromedriver 浏览器自己打开后立马闪退了,什么也没看到

来源:4-2 scrapy安装和配置

李白O

2021-06-28

终端最后几行输出如下:

2021-06-28 10:55:38 [scrapy.core.engine] INFO: Closing spider (finished)
2021-06-28 10:55:38 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{‘elapsed_time_seconds’: 4.391222,
‘finish_reason’: ‘finished’,
‘finish_time’: datetime.datetime(2021, 6, 28, 2, 55, 38, 10659),
‘log_count/DEBUG’: 12,
‘log_count/ERROR’: 1,
‘log_count/INFO’: 11,
‘log_count/WARNING’: 1,
‘start_time’: datetime.datetime(2021, 6, 28, 2, 55, 33, 619437)}
2021-06-28 10:55:38 [scrapy.core.engine] INFO: Spider closed (finished)
2021-06-28 10:55:38 [uc] DEBUG: Chrome.del
2021-06-28 10:55:38 [uc] DEBUG: closing webdriver
2021-06-28 10:55:38 [uc] DEBUG: killing browser
2021-06-28 10:55:38 [uc] DEBUG: removing profile : C:\Users\ADMINI~1\AppData\Local\Temp\tmp6yjvinti
2021-06-28 10:55:39 [uc] DEBUG: removing profile : C:\Users\ADMINI~1\AppData\Local\Temp\tmp6yjvinti
2021-06-28 10:55:40 [uc] DEBUG: removing profile : C:\Users\ADMINI~1\AppData\Local\Temp\tmp6yjvinti

写回答

1回答

bobby

2021-06-29

这里没有异常,你有没有试过使用

undetected_chromedriver 

单独调试而不是放到scrapy中运行是否正常?

0
4
bobby
回复
李白O
这里提示很明显,你的版本是90,但是下载的chromedriver版本是91
2021-07-02
共4条回复

Scrapy打造搜索引擎 畅销4年的Python分布式爬虫课

带你彻底掌握Scrapy,用Django+Elasticsearch搭建搜索引擎

5829 学习 · 6293 问题

查看课程