mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-06-07 18:37:30 +08:00
fix:翻页时search id不变
This commit is contained in:
@@ -190,6 +190,7 @@ class XiaoHongShuClient(AbstractApiClient):
|
||||
|
||||
async def get_note_by_keyword(
|
||||
self, keyword: str,
|
||||
search_id: str = get_search_id(),
|
||||
page: int = 1, page_size: int = 20,
|
||||
sort: SearchSortType = SearchSortType.GENERAL,
|
||||
note_type: SearchNoteType = SearchNoteType.ALL
|
||||
@@ -211,7 +212,7 @@ class XiaoHongShuClient(AbstractApiClient):
|
||||
"keyword": keyword,
|
||||
"page": page,
|
||||
"page_size": page_size,
|
||||
"search_id": get_search_id(),
|
||||
"search_id": search_id,
|
||||
"sort": sort.value,
|
||||
"note_type": note_type.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user