From 8f02da73ad2ef2825cfb19f502cc341e69c6169f Mon Sep 17 00:00:00 2001 From: Relakkes Date: Mon, 8 Apr 2024 00:18:25 +0800 Subject: [PATCH] fix: #219 docs: update README.md --- README.md | 17 ++++++++--------- media_platform/xhs/client.py | 4 ++++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6a3b927..59d0fad 100644 --- a/README.md +++ b/README.md @@ -33,15 +33,6 @@ MediaCrawler视频教程课程已录制完结,包含入门教程使用、源 | B 站 | ✅ | ✅ | ✕ | ✅ | ✅ | ✅ | ✅ | ✅ | ✕ | | 微博 | ✅ | ✅ | ✕ | ✅ | ✅ | ✅ | ✅ | ✅ | ✕ | -## MediaCrawler爬虫项目交流群: -> 7天有效期,自动更新 - -
- -![img.png](static/images/3群二维码.jpg) - -
- ## 使用方法 @@ -95,6 +86,14 @@ MediaCrawler视频教程课程已录制完结,包含入门教程使用、源 - 支持保存到csv中(data/目录下) - 支持保存到json中(data/目录下) +## MediaCrawler爬虫项目交流群: +> 7天有效期,自动更新, 如果人满了可以加作者wx拉进群: yzglan,备注来自github. + +
+

打赏-微信

+
+ + ## 打赏 免费开源不易,如果项目帮到你了,可以给我打赏哦,您的支持就是我最大的动力!
diff --git a/media_platform/xhs/client.py b/media_platform/xhs/client.py index a2db400..6b8a393 100644 --- a/media_platform/xhs/client.py +++ b/media_platform/xhs/client.py @@ -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: