|
26 | 26 |
|
27 | 27 | headers = { |
28 | 28 | 'cookie': ck, |
29 | | - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/' |
30 | | - '537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/' |
31 | | - '537.36' |
| 29 | + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36', |
| 30 | + 'Connection': 'keep-alive', |
| 31 | + 'Cache-Control': 'max-age=0', |
| 32 | + 'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="98", "Google Chrome";v="98"', |
| 33 | + 'sec-ch-ua-mobile': '?0', |
| 34 | + 'sec-ch-ua-platform': '"Windows"', |
| 35 | + 'DNT': '1', |
| 36 | + 'Upgrade-Insecure-Requests': '1', |
| 37 | + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', |
| 38 | + 'Sec-Fetch-Site': 'same-site', |
| 39 | + 'Sec-Fetch-Mode': 'navigate', |
| 40 | + 'Sec-Fetch-User': '?1', |
| 41 | + 'Sec-Fetch-Dest': 'document', |
| 42 | + 'Referer': 'https://order.jd.com/', |
| 43 | + 'Accept-Encoding': 'gzip, deflate, br', |
| 44 | + 'Accept-Language': 'zh-CN,zh;q=0.9', |
32 | 45 | } |
33 | 46 | # 评价生成 |
34 | 47 | def generation(pname, _class=0, _type=1): |
@@ -58,9 +71,9 @@ def generation(pname, _class=0, _type=1): |
58 | 71 | else: |
59 | 72 | comments = '' |
60 | 73 | if _type == 1: |
61 | | - num = 8 |
| 74 | + num = 6 |
62 | 75 | elif _type == 0: |
63 | | - num = 5 |
| 76 | + num = 4 |
64 | 77 | if len(result) < num : |
65 | 78 | num = len(result) |
66 | 79 | else: |
|
0 commit comments