mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-06-06 01:47:26 +08:00
fix: 修复爬取视频/帖子最大数设置值较低导致不爬取的问题
This commit is contained in:
@@ -84,7 +84,7 @@ class DouYinCrawler(AbstractCrawler):
|
||||
for keyword in config.KEYWORDS.split(","):
|
||||
utils.logger.info(f"[DouYinCrawler.search] Current keyword: {keyword}")
|
||||
aweme_list: List[str] = []
|
||||
dy_limit_count = 10
|
||||
dy_limit_count = min(10, max(1, config.CRAWLER_MAX_NOTES_COUNT))
|
||||
page = 0
|
||||
while (page + 1) * dy_limit_count <= config.CRAWLER_MAX_NOTES_COUNT:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user