|
|
@ -6,7 +6,7 @@ |
|
|
|
# ------------------------------- |
|
|
|
# ------------------------------- |
|
|
|
# cron "0 0 8 * * *" script-path=xxx.py,tag=匹配cron用 |
|
|
|
# cron "0 0 8 * * *" script-path=xxx.py,tag=匹配cron用 |
|
|
|
# const $ = new Env('福彩抽奖') |
|
|
|
# const $ = new Env('福彩抽奖') |
|
|
|
import requests,json,os |
|
|
|
import requests,json,os,time |
|
|
|
|
|
|
|
|
|
|
|
#活动路径 中国福彩公众号 右下角新年活动 |
|
|
|
#活动路径 中国福彩公众号 右下角新年活动 |
|
|
|
#手机号登录后 抓取https://ssqcx-serv.cwlo.com.cn域名下的请求头的Authorization 放入青龙变量或者放入config.sh 变量名为zgfcau 放在config.sh的话 多账号用&分割 放在青龙变量就多建几个变量 |
|
|
|
#手机号登录后 抓取https://ssqcx-serv.cwlo.com.cn域名下的请求头的Authorization 放入青龙变量或者放入config.sh 变量名为zgfcau 放在config.sh的话 多账号用&分割 放在青龙变量就多建几个变量 |
|
|
@ -45,6 +45,7 @@ for i in range(len(zgfcaulist)): |
|
|
|
print('该Authorization可能无效!') |
|
|
|
print('该Authorization可能无效!') |
|
|
|
print('**开始抽奖**') |
|
|
|
print('**开始抽奖**') |
|
|
|
try: |
|
|
|
try: |
|
|
|
|
|
|
|
for i in range(3): |
|
|
|
resp2 = requests.post('https://ssqcx-serv.cwlo.com.cn/api/lottery/start', headers=headers) |
|
|
|
resp2 = requests.post('https://ssqcx-serv.cwlo.com.cn/api/lottery/start', headers=headers) |
|
|
|
result2 = json.loads(resp2.text) |
|
|
|
result2 = json.loads(resp2.text) |
|
|
|
# print(result2) |
|
|
|
# print(result2) |
|
|
@ -57,6 +58,7 @@ for i in range(len(zgfcaulist)): |
|
|
|
print('未中奖') |
|
|
|
print('未中奖') |
|
|
|
else: |
|
|
|
else: |
|
|
|
print(success) |
|
|
|
print(success) |
|
|
|
|
|
|
|
time.sleep(3) |
|
|
|
except: |
|
|
|
except: |
|
|
|
print('该Authorization可能无效!') |
|
|
|
print('该Authorization可能无效!') |
|
|
|
print(wishidlist) |
|
|
|
print(wishidlist) |
|
|
|