Skip to content

增加错误处理:当“访问频次异常”时自动停止继续爬取#61

Open
onkej wants to merge 2 commits into
cv-cat:masterfrom
onkej:main
Open

增加错误处理:当“访问频次异常”时自动停止继续爬取#61
onkej wants to merge 2 commits into
cv-cat:masterfrom
onkej:main

Conversation

@onkej

@onkej onkej commented Apr 22, 2025

Copy link
Copy Markdown

博主你好,感谢分享!
我尝试使用关键词搜索功能的时候偶尔会有 msg: 访问频次异常,请勿频繁操作或重启试试 的 log 信息,从这时候开始程序实际上已经无法访问和爬取但仍会继续做无谓的重复尝试直到最后一个 URL……所以我在 main.py 加了无法访问之后自动终止爬取的功能以及相应的 CLI 提醒。希望对项目有所帮助!(PS:其他文件的更改不重要可以全部忽略)

…rch results. Also rename output dir and add empty lines for readability.
@onkej onkej marked this pull request as ready for review April 22, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant