Skip to content

Commit

Permalink
Merge pull request #506 from JianxunRao/main
Browse files Browse the repository at this point in the history
fix:微博根据creator爬取note时,爬取评论失败。原因是解析的参数key有误
  • Loading branch information
NanmiCoder authored Nov 29, 2024
2 parents 453ea64 + f9eedc5 commit 6001fc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media_platform/weibo/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ async def get_creators_and_notes(self) -> None:
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:
Expand Down

0 comments on commit 6001fc8

Please sign in to comment.