This commit is contained in:
Relakkes 2024-04-17 23:32:17 +08:00
parent 41fb7bb583
commit 5681dd6925
1 changed files with 5 additions and 0 deletions

View File

@ -104,7 +104,12 @@ class DouYinCrawler(AbstractCrawler):
except DataFetchError:
utils.logger.error(f"[DouYinCrawler.search] search douyin keyword: {keyword} failed")
break
page += 1
if "data" not in posts_res:
utils.logger.error(f"[DouYinCrawler.search] search douyin keyword: {keyword} failed账号也许被风控了。")
break
for post_item in posts_res.get("data"):
try:
aweme_info: Dict = post_item.get("aweme_info") or \