docs: update README.md
This commit is contained in:
Relakkes
2024-04-08 00:18:25 +08:00
parent b54f168c6b
commit 8f02da73ad
2 changed files with 12 additions and 9 deletions

View File

@@ -335,6 +335,10 @@ class XiaoHongShuClient(AbstactApiClient):
notes_cursor = ""
while notes_has_more:
notes_res = await self.get_notes_by_creator(user_id, notes_cursor)
if not notes_res:
utils.logger.error(f"[XiaoHongShuClient.get_notes_by_creator] The current creator may have been banned by xhs, so they cannot access the data.")
break
notes_has_more = notes_res.get("has_more", False)
notes_cursor = notes_res.get("cursor", "")
if "notes" not in notes_res: