Merge pull request #506 from JianxunRao/main

fix:微博根据creator爬取note时,爬取评论失败。原因是解析的参数key有误
This commit is contained in:
程序员阿江(Relakkes) 2024-11-29 11:07:58 +08:00 committed by GitHub
commit 6001fc8a52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -261,8 +261,8 @@ class WeiboCrawler(AbstractCrawler):
callback=weibo_store.batch_update_weibo_notes
)
note_ids = [note_item.get("mlog", {}).get("id") for note_item in all_notes_list if
note_item.get("mlog", {}).get("id")]
note_ids = [note_item.get("mblog", {}).get("id") for note_item in all_notes_list if
note_item.get("mblog", {}).get("id")]
await self.batch_get_notes_comments(note_ids)
else: