feat: xhs update

This commit is contained in:
Relakkes
2024-08-04 14:54:03 +08:00
parent 49171a71b0
commit 7229d29123
2 changed files with 20 additions and 15 deletions

View File

@@ -77,7 +77,7 @@ async def update_xhs_note(note_item: Dict):
"image_list": ','.join([img.get('url', '') for img in image_list]),
"tag_list": ','.join([tag.get('name', '') for tag in tag_list if tag.get('type') == 'topic']),
"last_modify_ts": utils.get_current_timestamp(),
"note_url": f"https://www.xiaohongshu.com/explore/{note_id}"
"note_url": f"https://www.xiaohongshu.com/explore/{note_id}?xsec_token={note_item.get('xsec_token')}&xsec_source=pc_search",
}
utils.logger.info(f"[store.xhs.update_xhs_note] xhs note: {local_db_item}")
await XhsStoreFactory.create_store().store_content(local_db_item)