Merge pull request #24 from jayeeliu/main
去掉搜索结果列表中的推荐搜索词(mode_type in ['rec_query', 'hot_query'])
This commit is contained in:
commit
defd8232da
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue