去掉搜索结果列表中的推荐搜索词(mode_type in ['rec_query', 'hot_query'])

This commit is contained in:
JayeeLiu 2023-08-01 10:29:00 +08:00
parent 1d3c2359e0
commit 925f0a1bc4
1 changed files with 1 additions and 0 deletions

View File

@ -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: