diff --git a/README.md b/README.md index e09681d..72af6bb 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ www的那个地址抓CK,登录后F12点到network,不要用命令document.co 2023/7/28 修复获取不到评价信息 +2023/9/17 修复收集不到商品评价 + ## 运行例图(评价晒单基本是优质评价,评价有奖的订单可以获得奖励!!!): ![image](https://i.postimg.cc/KznsXxfN/1.png) diff --git a/jdspider.py b/jdspider.py index 455b3b9..0649656 100644 --- a/jdspider.py +++ b/jdspider.py @@ -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: "好评"}