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