fix:微博根据creator爬取note时,爬取评论失败。原因是解析的参数key有误

This commit is contained in:
Trojx 2024-11-29 10:47:40 +08:00
parent ca9b47ef63
commit f9eedc59b1

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: