generated from zll2317463866/tiger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jd_bs.py
39 lines (24 loc) · 882 Bytes
/
jd_bs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#/*
# 小米运动更新步数
#[task_local]
# 小米运动更新步数
#0 15 15 * *
#*/
import requests
import random
number2 = random.randint(60000,95000)
dict = {
# '小米运行账号':'密码'
'':''
}
header={
'User_Agent':'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; Tablet PC 2.0; .NET4.0E)',
}
for key in dict:
number,password = (key,dict[key])
lj = f"http://42.193.130.93:8080/mi?phoneNumber={number}&password={password}&steps={number2}"
r = requests.get(url = lj,headers=header)
r.encoding = r.apparent_encoding
t = r.text.encode('gbk', 'ignore').decode('gbk')
print(t)
print("您今日运动步数结果为{}".format(number2))