This commit is contained in:
dylan 2023-09-17 19:37:34 +08:00
parent 5dafc9bd81
commit 5f5ea60fa5
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,8 @@ www的那个地址抓CK登录后F12点到network不要用命令document.co
2023/7/28 修复获取不到评价信息
2023/9/17 修复收集不到商品评价
## 运行例图(评价晒单基本是优质评价,评价有奖的订单可以获得奖励!!!):
![image](https://i.postimg.cc/KznsXxfN/1.png)

View File

@ -42,7 +42,8 @@ class JDSpider:
'sec-fetch-site': 'none',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36'
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
'cookie':ck.encode("utf-8")
}
self.productsId = self.getId()
self.comtype = {1: "差评", 2: "中评", 3: "好评"}