mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-03-06 22:20:47 +08:00
feat: xhs 非代理模式下增加随机等待间隔, db存储模式下增加存储xsec_token字段
This commit is contained in:
@@ -107,6 +107,7 @@ async def update_xhs_note(note_item: Dict):
|
||||
"last_modify_ts": utils.get_current_timestamp(),
|
||||
"note_url": f"https://www.xiaohongshu.com/explore/{note_id}?xsec_token={note_item.get('xsec_token')}&xsec_source=pc_search",
|
||||
"source_keyword": source_keyword_var.get(),
|
||||
"xsec_token": note_item.get("xsec_token"),
|
||||
}
|
||||
utils.logger.info(f"[store.xhs.update_xhs_note] xhs note: {local_db_item}")
|
||||
await XhsStoreFactory.create_store().store_content(local_db_item)
|
||||
|
||||
Reference in New Issue
Block a user