From 925f0a1bc489de7366b3ee8de8d73810c7c6a537 Mon Sep 17 00:00:00 2001 From: JayeeLiu Date: Tue, 1 Aug 2023 10:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=90=9C=E7=B4=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=88=97=E8=A1=A8=E4=B8=AD=E7=9A=84=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=AF=8D=EF=BC=88mode=5Ftype=20in=20['rec=5F?= =?UTF-8?q?query',=20'hot=5Fquery']=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- media_platform/xhs/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/media_platform/xhs/core.py b/media_platform/xhs/core.py index 620fbe9..0e6acdf 100644 --- a/media_platform/xhs/core.py +++ b/media_platform/xhs/core.py @@ -93,6 +93,7 @@ class XiaoHongShuCrawler(AbstractCrawler): task_list = [ self.get_note_detail(post_item.get("id"), semaphore) for post_item in notes_res.get("items", {}) + if post_item.get('model_type') not in ('rec_query', 'hot_query') ] note_details = await asyncio.gather(*task_list) for note_detail in note_details: