-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcheckin.py
More file actions
22 lines (18 loc) · 712 Bytes
/
Copy pathcheckin.py
File metadata and controls
22 lines (18 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import requests
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
'Referer': 'http://wheremylife.cn/home.htm'
}
session = requests.Session()
url = 'https://wheremylife.cn/1.0/user/login'
payload = {
'email': input(),
'password': input()
}
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
'Referer': 'http://wheremylife.cn/home.htm'
}
s = session.post(url, data=payload, headers=headers)
s2 = session.post('https://wheremylife.cn/1.0/user/resetBook', headers=headers)
print(s2.text)