fix: xhs note detail error

This commit is contained in:
Relakkes
2024-09-02 21:45:12 +08:00
parent 00b12ce482
commit d6fb255bdf
4 changed files with 34 additions and 4 deletions

View File

@@ -220,7 +220,7 @@ class XiaoHongShuCrawler(AbstractCrawler):
"""Get note detail"""
async with semaphore:
try:
note_detail: Dict = await self.xhs_client.get_note_by_id(note_id, xsec_source, xsec_token)
note_detail: Dict = await self.xhs_client.get_note_by_id_from_html(note_id)
if not note_detail:
utils.logger.error(
f"[XiaoHongShuCrawler.get_note_detail_async_task] Get note detail error, note_id: {note_id}")