mirror of
https://github.com/okyyds/yyds.git
synced 2026-07-13 06:11:17 +08:00
first commit
This commit is contained in:
39
backUp/jd_bs.py
Normal file
39
backUp/jd_bs.py
Normal file
@@ -0,0 +1,39 @@
|
||||
#/*
|
||||
# 小米运动更新步数
|
||||
#[task_local]
|
||||
# 小米运动更新步数
|
||||
#0 15 15 * *
|
||||
#*/
|
||||
|
||||
import requests
|
||||
|
||||
import random
|
||||
|
||||
number2 = random.randint(50001,65000)
|
||||
|
||||
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))
|
||||
Reference in New Issue
Block a user