Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

百度需要验证码,但是填写完验证码后程序提示已结束 #3

Open
cr941131 opened this issue Jun 15, 2023 · 0 comments

Comments

@cr941131
Copy link

对于爬取期刊的程序提一个小建议,当遇到需要验证码的时候,等在窗口中验证完毕,程序已经提示“没有搜索结果,提前结束,按ctrl+c终止终端可重新查询”,并终止。

这里建议修改一下,或者用undetected chromedriver库,或者新增一个if,隔10s左右重试一次,最多重试5次,留出一个点验证码的时间。

如下:
image

终端中的显示:
image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant