|
@@ -47,12 +47,18 @@ class XNGZH(object):
|
|
|
}
|
|
|
headers = {
|
|
|
'accept': 'application/json',
|
|
|
+ 'accept-language': 'zh-CN,zh;q=0.9',
|
|
|
'content-type': 'application/json;',
|
|
|
- 'cookie': 'SESSION=YjM4YmE5NDgtMjJmNi00NjA1LTgyNDUtYTNlZGVlOGNmODMy',
|
|
|
+ 'cookie': 'SESSION=YWNiZDg0YWUtNDNhZS00MmRkLTk1YmEtZjY1N2M5NDNlMGRi',
|
|
|
'origin': 'https://admin.piaoquantv.com',
|
|
|
- 'pragma': 'no-cache',
|
|
|
'priority': 'u=1, i',
|
|
|
- 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'
|
|
|
+ 'sec-ch-ua': '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
|
|
|
+ 'sec-ch-ua-mobile': '?0',
|
|
|
+ 'sec-ch-ua-platform': '"macOS"',
|
|
|
+ 'sec-fetch-dest': 'empty',
|
|
|
+ 'sec-fetch-mode': 'cors',
|
|
|
+ 'sec-fetch-site': 'same-origin',
|
|
|
+ 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36'
|
|
|
}
|
|
|
|
|
|
requests.request("POST", url, headers=headers, json=payload)
|
|
@@ -160,9 +166,9 @@ class XNGZH(object):
|
|
|
with open(file_path, 'r') as file:
|
|
|
content = file.read()
|
|
|
if content and content[-1] != ',':
|
|
|
- uid = ',' + str(uid)
|
|
|
+ m_id = ',' + str(m_id)
|
|
|
with open(file_path, 'a') as file:
|
|
|
- file.write(uid)
|
|
|
+ file.write(m_id)
|
|
|
with open(file_path, 'r') as file:
|
|
|
content = file.read()
|
|
|
time.sleep(1)
|