mirror of
https://github.com/LibraHp/GetQzonehistory.git
synced 2024-12-27 06:29:55 +00:00
commit
e9a0f1c012
@ -7,3 +7,4 @@ pyarrow==14.0.1
|
||||
openpyxl==3.1.2
|
||||
pyzbar~=0.1.9
|
||||
qrcode~=7.4.2
|
||||
fake-useragent
|
@ -3,7 +3,9 @@ from tqdm import tqdm
|
||||
import util.LoginUtil as Login
|
||||
import requests
|
||||
import json
|
||||
from fake_useragent import UserAgent
|
||||
|
||||
ua = UserAgent()
|
||||
# 登陆后获取到的cookies
|
||||
cookies = Login.cookie()
|
||||
# 获取g_tk
|
||||
@ -26,8 +28,7 @@ headers = {
|
||||
'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/121.0.0.0 '
|
||||
'Safari/537.36 Edg/121.0.0.0',
|
||||
'user-agent': ua.safari,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user