fix:翻页时search id不变

This commit is contained in:
liugangdao
2024-10-24 13:57:27 +08:00
parent fa2bcc4181
commit 78c09c4ae1
2 changed files with 5 additions and 2 deletions

View File

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