@@ -404,11 +404,22 @@ async def create_xhs_client(self, httpx_proxy: Optional[str]) -> XiaoHongShuClie
404404 xhs_client_obj = XiaoHongShuClient (
405405 proxies = httpx_proxy ,
406406 headers = {
407- "User-Agent" : self .user_agent ,
407+ "accept" : "application/json, text/plain, */*" ,
408+ "accept-language" : "zh-CN,zh;q=0.9" ,
409+ "cache-control" : "no-cache" ,
410+ "content-type" : "application/json;charset=UTF-8" ,
411+ "origin" : "https://www.xiaohongshu.com" ,
412+ "pragma" : "no-cache" ,
413+ "priority" : "u=1, i" ,
414+ "referer" : "https://www.xiaohongshu.com/" ,
415+ "sec-ch-ua" : '"Chromium";v="136", "Google Chrome";v="136", "Not.A/Brand";v="99"' ,
416+ "sec-ch-ua-mobile" : "?0" ,
417+ "sec-ch-ua-platform" : '"Windows"' ,
418+ "sec-fetch-dest" : "empty" ,
419+ "sec-fetch-mode" : "cors" ,
420+ "sec-fetch-site" : "same-site" ,
421+ "user-agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36" ,
408422 "Cookie" : cookie_str ,
409- "Origin" : "https://www.xiaohongshu.com" ,
410- "Referer" : "https://www.xiaohongshu.com" ,
411- "Content-Type" : "application/json;charset=UTF-8" ,
412423 },
413424 playwright_page = self .context_page ,
414425 cookie_dict = cookie_dict ,
0 commit comments