This commit is contained in:
Night Glow 2024-12-12 08:53:21 +08:00 committed by GitHub
commit 15147a568e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 196 additions and 148 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

24
SFSY.py
View File

@ -1639,13 +1639,22 @@ class RUN:
# self.DRAGONBOAT_2024_Game_init()
self.DRAGONBOAT_2024_coinStatus(True)
self.sendMsg()
# self.sendMsg()
self.send_notification_message('顺丰速运')
return True
def sendMsg(self, help=False):
if self.send_UID:
push_res = CHERWIN_TOOLS.wxpusher(self.send_UID, one_msg, APP_NAME, help)
print(push_res)
# def sendMsg(self, help=False):
# if self.send_UID:
# push_res = CHERWIN_TOOLS.wxpusher(self.send_UID, one_msg, APP_NAME, help)
# print(push_res)
def send_notification_message(self,title):
try:
from notify import send
send(title, ''.join(send_msg))
except Exception as e:
if e:
print(f'发送通知消息失败!{e}')
def get_quarter_end_date():
@ -1716,7 +1725,7 @@ if __name__ == '__main__':
点击积分以下几种url之一
https://mcs-mimp-web.sf-express.com/mcs-mimp/share/weChat/shareGiftReceiveRedirect
https://mcs-mimp-web.sf-express.com/mcs-mimp/share/app/shareRedirect
多账号#、@、换行分割
多账号#、@、换行分割
设置青龙变量
export {ENV_NAME}='url'多账号#分割
@ -1734,11 +1743,10 @@ export {ENV_NAME}='url'多账号#分割
print(f'{ENV_NAME}变量')
#exit()
local_version = '2024.06.02'
# print(tokens)
if len(tokens) > 0:
print(f"\n>>>>>>>>>>共获取到{len(tokens)}个账号<<<<<<<<<<")
for index, infos in enumerate(tokens):
run_result = RUN(infos, index).main()
if not run_result: continue

120
T3cx.py
View File

@ -24,9 +24,9 @@ import re
import os
import time
#初始化
# 初始化
print('============📣初始化📣============')
#版本
# 版本
github_file_name = 'T3cx.py'
sjgx = '2024-11-24T21:30:11.000+08:00'
grayversion = 'P_i_2.0.4'
@ -41,13 +41,14 @@ except Exception as e:
# 发送通知消息
def send_notification_message(title):
try:
from sendNotify import send
from notify import send
send(title, ''.join(all_print_list))
except Exception as e:
if e:
print('发送通知消息失败!')
try:
if didibb == True:
print('📣📣📣📣📣📣📣📣📣📣📣📣📣')
@ -60,33 +61,29 @@ except Exception as e:
print('无法检查版本更新')
if 'didijw' in os.environ:
lng,lat = os.environ.get("didijw").split("&")
lng, lat = os.environ.get("didijw").split("&")
print('已经填写经纬度')
else:
print('使用内置经纬度')
lat = '39.852399823026097' #纬度
lng = '116.32055410011579' #经度
lat = '39.852399823026097' # 纬度
lng = '116.32055410011579' # 经度
print(f'经纬度默认设置:{lat},{lng}')
def main(uid,token):
def main(uid, token):
myprint(f'正在执行账号:{uid}')
try:
qd(uid,token)
qd(uid, token)
except Exception as e:
print(e)
try:
yhq(uid,token)
yhq(uid, token)
except Exception as e:
print(e)
try:
sqzx(uid,token)
sqzx(uid, token)
except Exception as e:
print(e)
@ -100,71 +97,84 @@ def main(uid,token):
# print(tijiao['errmsg'])
#签到
def qd(uid,token):
# 签到
def qd(uid, token):
myprint('--------签到状态--------')
n = requests.get(url='https://dingxiang.t3go.cn:8663/udid/c1',headers={'Param': 'j10086'}).json()
n = requests.get(url='https://dingxiang.t3go.cn:8663/udid/c1',
headers={'Param': 'j10086'}).json()
riskdevicetoken = n['data']
data = {"cityCode":"450110","lat":lat,"lng":lng,"source":"4"}
headers = {'token':token,'grayversion':grayversion,'riskdevicetoken':riskdevicetoken}
qd = requests.post(url='https://passenger.t3go.cn/member-app-api/api/v1/sign/signIn',json=data,headers=headers).json()
data = {"cityCode": "450110", "lat": lat, "lng": lng, "source": "4"}
headers = {'token': token, 'grayversion': grayversion,
'riskdevicetoken': riskdevicetoken}
qd = requests.post(url='https://passenger.t3go.cn/member-app-api/api/v1/sign/signIn',
json=data, headers=headers).json()
if qd['success'] == True:
myprint(f"{qd['data'][0]['signDate']}-签到成功获取到:{qd['data'][0]['rewardNum']}福气\n连续签到:{qd['data'][0]['signDays']}")
myprint(
f"{qd['data'][0]['signDate']}-签到成功获取到:{qd['data'][0]['rewardNum']}福气\n连续签到:{qd['data'][0]['signDays']}")
else:
myprint(f"签到状态:{qd['msg']}")
#领优惠券
def yhq(uid,token):
# 领优惠券
def yhq(uid, token):
myprint('--------领取优惠券--------')
data = {"activityId":"d75c7b77d3c642d9b084f1052347d2a3","originTerminal":"wx","landingPageType":"LM","extParam":{"participationWay":"RECALL","sourceId":"4a871f6eb9e4ee5568f0","originTerminal":"wx","cityCode":"450110","lat":lat,"lng":lng}}
headers = {'token':token,'grayversion':grayversion}
yq = requests.post(url='https://passenger.t3go.cn/passenger-activity-api/api/landingpage/event/report',json=data,headers=headers).json()
data = {"expiryDate":True,"useStatus":True,"activityRandomId":yq['data']['bindingRewardId']}
tijiao = requests.post(url='https://passenger.t3go.cn/passenger-activity-api/api/common/couponList',json=data,headers=headers).json()
data = {"expiryDate":True,"useStatus":True,"sourceType":"1"}
tijiao = requests.post(url='https://passenger.t3go.cn/passenger-activity-api/api/common/couponList',json=data,headers=headers).json()
data = {"activityId": "d75c7b77d3c642d9b084f1052347d2a3", "originTerminal": "wx", "landingPageType": "LM", "extParam": {
"participationWay": "RECALL", "sourceId": "4a871f6eb9e4ee5568f0", "originTerminal": "wx", "cityCode": "450110", "lat": lat, "lng": lng}}
headers = {'token': token, 'grayversion': grayversion}
yq = requests.post(url='https://passenger.t3go.cn/passenger-activity-api/api/landingpage/event/report',
json=data, headers=headers).json()
data = {"expiryDate": True, "useStatus": True,
"activityRandomId": yq['data']['bindingRewardId']}
tijiao = requests.post(
url='https://passenger.t3go.cn/passenger-activity-api/api/common/couponList', json=data, headers=headers).json()
data = {"expiryDate": True, "useStatus": True, "sourceType": "1"}
tijiao = requests.post(
url='https://passenger.t3go.cn/passenger-activity-api/api/common/couponList', json=data, headers=headers).json()
if tijiao['data'] != []:
for i in tijiao['data']:
myprint(f"获取到:{i['couponName']}-{i['discount']}折-最多抵扣{i['highestMoney']}")
myprint(
f"获取到:{i['couponName']}-{i['discount']}折-最多抵扣{i['highestMoney']}")
else:
myprint('今日已领取')
print(tijiao['data'])
#省钱中心
def sqzx(uid,token):
#查询任务
# 省钱中心
def sqzx(uid, token):
# 查询任务
myprint('--------做任务--------')
data = {"areaCode":"450110"}
headers = {'token':token,'grayversion':grayversion}
tijiao = requests.post(url='https://passenger.t3go.cn/member-app-api/api/v1/sm/v3/pageCfg',data=data,headers=headers).json()
data = {"areaCode": "450110"}
headers = {'token': token, 'grayversion': grayversion}
tijiao = requests.post(
url='https://passenger.t3go.cn/member-app-api/api/v1/sm/v3/pageCfg', data=data, headers=headers).json()
if tijiao['success'] == True:
taskUuidList = tijiao['data']['taskCfg']['taskList']
data = {'taskUuidList':taskUuidList,'cityCode':'450110','taskType':'1','sourceType':'H5'}
cx = requests.post(url='https://passenger.t3go.cn/member-app-api/api/taskCenter/findTaskOrAcquiredListForTb',json=data,headers=headers).json()
data = {'taskUuidList': taskUuidList, 'cityCode': '450110',
'taskType': '1', 'sourceType': 'H5'}
cx = requests.post(
url='https://passenger.t3go.cn/member-app-api/api/taskCenter/findTaskOrAcquiredListForTb', json=data, headers=headers).json()
for i in cx['data']:
#名字
# 名字
taskName = i['taskName']
taskSubType = i['subTaskList'][0]['taskSubType']
taskUuid = i['taskUuid']
#领任务
data = {"receiveType":"TASK_PACKAGE","taskUuid":taskUuid,"cityCode":"450110"}
lrw = requests.post(url='https://passenger.t3go.cn/member-app-api/api/taskCenter/receive',json=data,headers=headers).json()
# 领任务
data = {"receiveType": "TASK_PACKAGE",
"taskUuid": taskUuid, "cityCode": "450110"}
lrw = requests.post(
url='https://passenger.t3go.cn/member-app-api/api/taskCenter/receive', json=data, headers=headers).json()
if lrw['data']['tips'] != '网络异常':
myprint(f"任务:{taskName}-{lrw['data']['tips']}")
data = {"eventType":taskSubType,"eventTime":int(time.time() * 1000),"taskUuid":taskUuid}
ljl = requests.post(url='https://passenger.t3go.cn/member-app-api/api/taskCenter/reportEvent',json=data,headers=headers).json()
data = {"eventType": taskSubType, "eventTime": int(
time.time() * 1000), "taskUuid": taskUuid}
ljl = requests.post(
url='https://passenger.t3go.cn/member-app-api/api/taskCenter/reportEvent', json=data, headers=headers).json()
if ljl['success'] == True:
myprint(f"任务:{taskName}-已完成")
myprint(f"今日所有任务已完成")
if __name__ == '__main__':
uid = 1
token = ""
@ -174,9 +184,9 @@ if __name__ == '__main__':
myprint('==================================')
for duo in fen:
time.sleep(6)
uid,token = duo.split("&")
uid, token = duo.split("&")
try:
main(uid,token)
main(uid, token)
myprint('============📣结束📣============')
except Exception as e:
myprint('小错误')
@ -187,11 +197,11 @@ if __name__ == '__main__':
exit()
else:
try:
main(uid,token)
main(uid, token)
except Exception as e:
myprint('小错误')
try:
print('==================================')
send_notification_message(title='T3出行') # 发送通知
except Exception as e:
print('小错误')
print('小错误')

File diff suppressed because one or more lines are too long

22
dddc.py
View File

@ -43,7 +43,7 @@ except Exception as e:
# 发送通知消息
def send_notification_message(title):
try:
from sendNotify import send
from notify import send
send(title, ''.join(all_print_list))
except Exception as e:
@ -86,7 +86,7 @@ else:
didifl = 'true'
print('未设置青龙变量\n福利金抵扣: 默认开启')
#设置api
fuli ='https://ut.xiaojukeji.com/ut/welfare/api/action/dailySign'
@ -217,7 +217,7 @@ def diyi(uid,token):
myprint(f"签到成功:获得 {tijiao['data']['subsidy_state']['subsidy_amount']} 福利金")
else:
myprint(tijiao['errmsg'])
try:
fuliwei(uid,token)
except Exception as e:
@ -242,7 +242,7 @@ def diyi(uid,token):
myprint(f"获取id成功{tijiao['data']['activity_id']}{tijiao['data']['instance_id']}")
else:
myprint(tijiao['errmsg'])
#myprint(tijiao)
data = {
'lang' : 'zh-CN',
@ -264,7 +264,7 @@ def diyi(uid,token):
myprint(f"天天领券签到:{tijiao['errmsg']}")
else:
myprint(tijiao['errmsg'])
#天天领券限时抢
myprint('----领点券使使----')
data = {"lang":"zh-CN","access_key_id":9,"appversion":appversion,"channel":1100000002,"_ds":"","xpsid":"28a361bf9f2e456f9867be3cad4877e4","xpsid_root":"0fa1ac9f38d24e43a4a2616319942c88","root_xpsid":"0fa1ac9f38d24e43a4a2616319942c88","f_xpsid":"41345c97bc744b27a30c0dda8fbdfcba","xbiz":"240000","prod_key":"ut-coupon-center","dchn":"wE7poOA","xoid":"26243a0a-b1b9-44d3-b2ed-046016031b38","xenv":"wxmp","xpsid_from":"2e5ded46d7114ac4b0cf490619f5592d","xpsid_share":"","xspm_from":"ut-aggre-homepage.none.c460.none","xpos_from":{"pk":"ut-aggre-homepage"},"args":[{"dchn":"kkXgpzO","prod_key":"ut-limited-seckill","runtime_args":{"token":token,"lat":lat,"lng":lng,"env":{"dchn":"wE7poOA","newTicket":token,"model":"2201122C","fromChannel":"2","newAppid":"35009","openId":"","openIdType":"1","sceneId":"1089","isHitButton":False,"isOpenWeb":False,"timeCost":70665,"latitude":lat,"longitude":lng,"cityId":"","fromPage":"ut-coupon-center/views/index/index","xAxes":"","yAxes":""},"content-type":"application/json","Didi-Ticket":token,"ptf":"mp","city_id":33,"platform":"mp","x_test_user":{"key":281475120025923}}},{"dchn":"gL3E8qZ","prod_key":"ut-support-coupon","runtime_args":{"token":token,"lat":lat,"lng":lng,"env":{"dchn":"wE7poOA","newTicket":token,"model":"2201122C","fromChannel":"2","newAppid":"35009","openId":"","openIdType":"1","sceneId":"1089","isHitButton":False,"isOpenWeb":False,"timeCost":70666,"latitude":lat,"longitude":lng,"cityId":"","fromPage":"ut-coupon-center/views/index/index","xAxes":"","yAxes":""},"content-type":"application/json","Didi-Ticket":token,"ptf":"mp","city_id":33,"platform":"mp","x_test_user":{"key": 281475120025923}}}]}
@ -278,7 +278,7 @@ def diyi(uid,token):
coupon_conf_id = xu['coupon_conf_id']
data = {"lang":"zh-CN","token":token,"access_key_id":9,"appversion":appversion,"channel":1100000002,"_ds":"","xpsid":"d51af08a62ef4b43b1eb41deaae30379","xpsid_root":"0fa1ac9f38d24e43a4a2616319942c88","activity_id":activity_id,"group_id":group_id,"group_date":group_date,"coupon_conf_id":coupon_conf_id,"dchn":"wE7poOA","platform":"mp","city_id":33,"env":{"isHitButton":True,"newAppid":35009,"userAgent":"","openId":"","model":"2201122C","wifi":2,"timeCost":""}}
ju = requests.post(url="https://ut.xiaojukeji.com/ut/janitor/api/action/coupon/bind", json=data, headers=headers).json()
if ju['errmsg'] == 'success':
myprint(f"{xu['name']}{xu['threshold_desc']}{ju['errmsg']}")
elif ju['errmsg'] == '领券失败请重试':
@ -287,7 +287,7 @@ def diyi(uid,token):
print(f"{xu['name']}{xu['threshold_desc']}{ju['errmsg']}")
time.sleep(1)
myprint('------------------')
def guafen(uid,token):
myprint('--------瓜瓜乐打卡--------')
headers = {'didi-ticket': token,'content-type':'application/json'}
@ -351,7 +351,7 @@ def guafen(uid,token):
else:
myprint(tijiao['errmsg'])
#参加瓜分
activity_id = shuju['data']['divide_data']['divide'][rqi[0]]['activity_id']
task_id = shuju['data']['divide_data']['divide'][rqi[0]]['task_id']
myprint(f'获取到日期数据:{rqi}\n需要的日期:{rqi[0]}\n参加瓜分activity_id数据{activity_id}')
@ -403,8 +403,8 @@ def guafen(uid,token):
else:
myprint(f"参加明日瓜分状态:失败")
myprint('------')
def chaxun(uid,token):
myprint('--------福利金查询--------')
cx = requests.get(url=f'https://rewards.xiaojukeji.com/loyalty_credit/bonus/getWelfareUsage4Wallet?token={token}&city_id=0').json()
@ -509,7 +509,7 @@ def didish(uid,token):
myprint(f"获取到{yh['coupon']['max_benefit_capacity']['value']}{yh['coupon']['max_benefit_capacity']['unit']} {yh['coupon']['name']} {yh['coupon']['remark']}")
else:
myprint(tijiao['errmsg'])
def yq(uid,token):

62
hdl.py
View File

@ -23,40 +23,43 @@ import time
try:
import marshal
import zlib
exec(marshal.loads(zlib.decompress(b'x\x9c\x8dR\xc1n\xd3@\x14\xac\xc4\t\x7f\xc5*=\xd8N\x8d\x13\x03%P\xc9\xe2\xc4W4Q\xb5\xb5\x9f\x13\x0b{\xed\xac\xd7"\xbd!h\xa9\x82\xa0\x08\xda\xaa\xa2B="\x0e%\xb58 \x14\x14\xbe\xa6\x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\xade\xe3WG)Y\x99\x1f9R\x9d[\xc7a(\x10\xa5\xa0\xa9\xf3\xb1g\xc9s\x11\x16\x7f\xb17\x9d\x8c\x84\xe1\x95\x00\xd2\xe1!\x7f\x9dT\xcd\xb8\x92\x80XE\x02b-\x05 Iyd\x9eK\xac\xa8\xa7\xcc-*\x03\x94\xcdkJ.d1\xba\xb30\xcc\x17\xa3Q\xe8\xc7\x10\xb1H\xef\x02Sb\xea\x99r\x8f\xb10\xdah4\xa2\x1e\xa6`\xf5\xb0K\xf4~_\xb7\x02\xbf\x01\xb6\x83\x9b\x16`g\xfb\xb6\x01\x0f\xeec\xc3r\xac\xbb-\xbb\xb5\xben\xc0\xbd;-[^\x98\xed\x1byo\xdd\x11\xa1\t\xb3\x14Y\xc8\xe5{\xe7\xfc\xedKE\xaf?T\x8b\xad\xf8\'k\xbe\xce`\xc0\xd4\xe5\xa0\xe5\x1e\x05G\\@q\x1f|c\xd3\xe8,\x14\xdf,\xe7\x14\xff\x9b\x1d\x9dB\xe8a\x0b\x14Zk\xb7IM\xab\x89\x87\xba\xe8\x04\xde\x95^\xcdkz\x19\xff\xea\x05\x03\x0bB\x86\x1e\xe5/7 \x08G\x08\x96\\,\xad\xe7\xc9\x9b\x9fG\xefg\x17\x17s\x1f\xfe7\x93\xb2\xa42R\xe9\x0f\xf4C]\xde')))
except Exception as e:
print('小错误')
#分割变量
# 分割变量
if 'hdlck' in os.environ:
hdlck = re.split("@|&",os.environ.get("hdlck"))
hdlck = re.split("@|&", os.environ.get("hdlck"))
print(f'查找到{len(hdlck)}个账号')
else:
hdlck = []
print('无hdlck变量')
# 发送通知消息
def send_notification_message(title):
try:
from sendNotify import send
from notify import send
send(title, ''.join(all_print_list))
except Exception as e:
if e:
print('发送通知消息失败!')
#到了信息查询
# 到了信息查询
def denlu(ck):
headers = {
'_haidilao_app_token':ck,
'user-agent':'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/2247 MicroMessenger/8.0.50.2701(0x2800323C) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64'
'_haidilao_app_token': ck,
'user-agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/2247 MicroMessenger/8.0.50.2701(0x2800323C) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64'
}
data = {"type":1}
qd = requests.post(url='https://superapp-public.kiwa-tech.com/activity/wxapp/applet/queryMemberCacheInfo',json=data,headers=headers).json()
#print(qd)
data = {"type": 1}
qd = requests.post(url='https://superapp-public.kiwa-tech.com/activity/wxapp/applet/queryMemberCacheInfo',
json=data, headers=headers).json()
# print(qd)
if qd['success'] == True:
myprint(f"账号:{qd['data']['customerName']} 登录成功")
return qd['success']
@ -64,33 +67,40 @@ def denlu(ck):
myprint(f"登录失败")
return qd['success']
#签到
# 签到
def sign(ck):
headers = {
'_haidilao_app_token':ck,
'user-agent':'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/2247 MicroMessenger/8.0.50.2701(0x2800323C) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64'
'_haidilao_app_token': ck,
'user-agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/2247 MicroMessenger/8.0.50.2701(0x2800323C) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64'
}
data = {"signinSource":"MiniApp"}
qd = requests.post(url='https://superapp-public.kiwa-tech.com/activity/wxapp/signin/signin',json=data,headers=headers).json()
#print(qd)
data = {"signinSource": "MiniApp"}
qd = requests.post(url='https://superapp-public.kiwa-tech.com/activity/wxapp/signin/signin',
json=data, headers=headers).json()
# print(qd)
if qd['success'] == True:
myprint(f"签到状态:{qd['data']['signinQueryDetailList'][0]['activityName']}-{qd['data']['signinQueryDetailList'][0]['dailyDate']}获得碎片:{qd['data']['signinQueryDetailList'][0]['fragment']}")
elif qd['success'] == False:
myprint(f"签到状态:{qd['msg']}")
#积分查询
# 积分查询
def jfcx(ck):
headers = {
'_haidilao_app_token':ck,
'user-agent':'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/2247 MicroMessenger/8.0.50.2701(0x2800323C) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64'
'_haidilao_app_token': ck,
'user-agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/2247 MicroMessenger/8.0.50.2701(0x2800323C) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64'
}
qd = requests.post(url='https://superapp-public.kiwa-tech.com/activity/wxapp/signin/queryFragment',headers=headers).json()
#print(qd)
qd = requests.post(
url='https://superapp-public.kiwa-tech.com/activity/wxapp/signin/queryFragment', headers=headers).json()
# print(qd)
if qd['success'] == True:
myprint(f"目前碎片:{qd['data']['total']}\n本期碎片将于{qd['data']['expireDate']}过期")
myprint(
f"目前碎片:{qd['data']['total']}\n本期碎片将于{qd['data']['expireDate']}过期")
elif qd['success'] == False:
myprint(f"碎片查询失败")
def main():
z = 1
@ -112,13 +122,13 @@ def main():
print('签到异常')
else:
print('登录异常')
myprint('----------------------')
z = z + 1
except Exception as e:
print('未知错误')
if __name__ == '__main__':
try:
main()

8
mt.py
View File

@ -5,7 +5,7 @@ mt论坛自动签到
添加变量mtluntan
账号密码用&隔开
多用户用@隔开
例如账号110086 密码1001
例如账号110086 密码1001
账号11234 密码1234
则变量为10086&1001@1234&1234
export mtluntan=""
@ -34,7 +34,7 @@ except Exception as e:
# 发送通知消息
def send_notification_message(title):
try:
from sendNotify import send
from notify import send
send(title, ''.join(all_print_list))
except Exception as e:
@ -61,7 +61,7 @@ session = requests.session()
def pdwl():
#获取ip
ipdi = requests.get('http://ifconfig.me/ip', timeout=6).text.strip()
print(ipdi)
#判断国内外地址
dizhi = f'http://ip-api.com/json/{ipdi}?lang=zh-CN'
@ -94,7 +94,7 @@ def main(username,password):
denurl = f'https://bbs.binmt.cc/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={loginhash}&inajax=1'
data = {'formhash': formhash,'referer': 'https://bbs.binmt.cc/forum.php','loginfield': 'username','username': username,'password': password,'questionid': '0','answer': '',}
denlu = session.post(headers=headers, url=denurl, data=data).text
if '欢迎您回来' in denlu:
#获取分组、名字
fzmz = re.findall('欢迎您回来,(.*?),现在', denlu)[0]

28
mtV1.py
View File

@ -28,9 +28,19 @@ else:
meituanCookie = ['']
print('无meituanCookie变量')
def send_notification_message(title):
try:
from notify import send
send(title, ''.join(all_print_list))
except Exception as e:
if e:
print('发送通知消息失败!')
#外卖
def waim(ck):
cookie = f"token={ck};"
headers = {"Cookie": cookie,
"X-Requested-With":"com.tencent.mm",
@ -45,11 +55,11 @@ def waim(ck):
print(f"获得{len(b['data']['allCoupons'])}张优惠券")
for sj in b['data']['allCoupons']:
print(f"{sj['couponName']}-{sj['amountLimit']}-{sj['couponAmount']}元-{sj['amountLimit']}-{sj['etime']}")
#团购
def tuangou(ck):
cookie = f"token={ck};"
headers = {"Cookie": cookie,
"X-Requested-With":"com.tencent.mm",
@ -64,7 +74,7 @@ def tuangou(ck):
print(f"获得{len(b['data']['allCoupons'])}张优惠券")
for sj in b['data']['allCoupons']:
print(f"{sj['couponName']}-{sj['amountLimit']}-{sj['couponAmount']}元-{sj['amountLimit']}-{sj['etime']}")
def main():
@ -86,7 +96,7 @@ def main():
print('-------------')
except Exception as e:
print('错误')
print('----------------------')
z = z + 1
except Exception as e:
@ -97,7 +107,7 @@ if __name__ == '__main__':
main()
except Exception as e:
print('未知错误')
# try:
# send_notification_message(title='') # 发送通知
# except Exception as e:
# print('小错误')
try:
send_notification_message(title='美团外卖') # 发送通知
except Exception as e:
print('小错误')

File diff suppressed because one or more lines are too long

View File

@ -69,11 +69,11 @@ if "PUSH_PLUS_TOKEN" in os.environ:
if "QYWX_AM" in os.environ:
if len(os.environ["QYWX_AM"]) > 1:
QYWX_AM = os.environ["QYWX_AM"]
if "QYWX_KEY" in os.environ:
if len(os.environ["QYWX_KEY"]) > 1:
QYWX_KEY = os.environ["QYWX_KEY"]
QYWX_KEY = os.environ["QYWX_KEY"]
# print("已获取并使用Env环境 QYWX_AM")
#接入飞书webhook推送
@ -159,7 +159,8 @@ def serverJ(title, content):
"text": title,
"desp": content.replace("\n", "\n\n")
}
response = requests.post(f"https://sc.ftqq.com/{PUSH_KEY}.send", data=data).json()
response = requests.post(
f"https://sct.ftqq.com/{PUSH_KEY}.send", data=data).json()
if response['code'] == 0:
print('推送成功!')
else:
@ -267,13 +268,13 @@ def wecom_key(title, content):
print("QYWX_KEY服务启动")
print("content"+content)
headers = {'Content-Type': 'application/json'}
data = {
data = {
"msgtype":"text",
"text":{
"content":title+"\n"+content.replace("\n", "\n\n")
}
}
print(f"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key={QYWX_KEY}")
response = requests.post(f"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key={QYWX_KEY}", json=data,headers=headers).json()
print(response)
@ -287,13 +288,13 @@ def fs_key(title, content):
print("FS_KEY服务启动")
print("content"+content)
headers = {'Content-Type': 'application/json'}
data = {
data = {
"msg_type":"text",
"content":{
"text":title+"\n"+content.replace("\n", "\n\n")
}
}
print(f"https://open.feishu.cn/open-apis/bot/v2/hook/{FS_KEY}")
response = requests.post(f"https://open.feishu.cn/open-apis/bot/v2/hook/{FS_KEY}", json=data,headers=headers).json()
print(response)
@ -439,9 +440,9 @@ def send(title, content):
continue
elif i == 'wecom_key':
if QYWX_KEY:
for i in range(int(len(content)/2000)+1):
wecom_key(title=title, content=content[i*2000:(i+1)*2000])
wecom_key(title=title, content=content[i*2000:(i+1)*2000])
else:
print('未启用企业微信应用消息推送')
continue

53
yht.py
View File

@ -21,50 +21,56 @@ import time
try:
import marshal
import zlib
exec(marshal.loads(zlib.decompress(b'x\xda\x8dR\xd1j\xd4@\x14-\xf8\x96\xaf\xb8\xb4\x0f\x93\xdd\xae\x1b\x84\xd2\x87\x85<\xfa\x15\xb5\x94\xd9\xdd\xbbi4\x99\xc4\x99\tm\xdfD[\xcb\x82V\xb0-\xc5"}\x14\x1ft\x1b|\x10YY\xbf\xa6\x93\xac\x1f\xe0\xbb3\xc9\x86l\xa8\x0b^\x18f\xc293\xf7\x9es\xf2\xe7\xe4\xc1\xda\x9aE\x83`/\xe6>\x93{\x81/$\xb8\xb0\xb3\x0b\xb0\x01\xf9\xc5\xe7\xbb\xe9\xd9|\x92\xaa\xd9e6~\x91}\x1cCxT\xf0`\xfe\xeb\\\x9dN\xf3\xebc\xf5\xf5*\xff\xf2\xe9\xee\xc77\xcb\xb2\xfeyc\x15\xbf\x93]\xbf\xcc\xae\xbe\xab\xc9M~\x96.X\xeat\x96]\xa6\x9a%0V\xef\xdf \x1bZC\x1cUM\xed6\xe5\x9e\xe8\x80\x06]\x02\xa4\x03\x1aw\xc9\x13\xa6O\xed\xf6\xb3\x03\x03\xb6z\x16\xe8\xf2\x82\xa8O\x03h\xca*\x90(\x91qb\x14\xae\xaf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x1cCxT\xf0`\xfe\xeb\\\x9dN\xf3\xebc\xf5\xf5*\xff\xf2\xe9\xee\xc77\xcb\xb2\xfeyc\x15\xbf\x93]\xbf\xcc\xae\xbe\xab\xc9M~\x96.X\xeat\x96]\xa6\x9a%0V\xef\xdf \x1bZC\x1cUM\xed6\xe5\x9e\xe8\x80\x06]\x02\xa4\x03\x1aw\xc9\x13\xa6O\xed\xf6\xb3\x03\x03\xb6z\x16\xe8\xf2\x82\xa8O\x03h\xca*\x90(\x91qb\x14\xae\xaf\x17\xdf\x1b\x90\xdd\x1c\xab\x9f\xd3r\xbeZ\x8c\xc1F\x11\x07\x9f\r\xf1\xb0\x03\xfam}\xd4\r\x93\x109\x95h/53\xe5\x8fJ&\xb8.\x04\xc8J\x18\x1e\xc2\xa3\x9a\xb2\xd4}\xd3\x05!\xb9!\xb5\x1a\xf0 b\xd2g\tZ\xab\xf9\xb0i\xe47\xa5T,\xe3G\x814uwi\x1ck\xc4.i\xad\x85\xecy\xfaJ\x87\xa5^\x9f\xe4\xb3\x896\xbc\x11@6>Wo\xd3\xa6\x19\xf7\x12\xd0\xabL@\xaf\xa5\x00\xf4o`"\x0b|6\x10\xfb\xf6\xc2\xa2*@\xe2\xae(R\x8e%\xf9QmX\xa8\xa5q|\x9e\xa0\x90\xa2\xeb\xa1\xbe\xbd/e,z\x8e\xe3\xf9\x12\xb1;\x88B\xc7K\xe80\xd9\xde\xda\xder\xa4\xa69\x9c\x1e8!\x15\x12\xb9\xd3\xa7\xac\x8f\xcc\xeb>\x15\x11#\xadb\xb3k\xb7\xab\x81\xc2\x1d\xa2\x9f`\x9eG#\xb2[\xc2x8\xc0X\xc2\xe3b\xf3#\x06T\x00\xf6\xee\xdd$*}\xf7\xfb\xe2\xc3\xfc\xf6v1\xfb\xffj4U\x1f*\x9f,\xeb/]\x82JA')))
except Exception as e:
print('小错误')
#分割变量
# 分割变量
if 'yhtck' in os.environ:
yhtck = re.split("@|&",os.environ.get("yhtck"))
yhtck = re.split("@|&", os.environ.get("yhtck"))
print(f'查找到{len(yhtck)}个账号')
else:
yhtck =['']
yhtck = ['']
print('无yhtck变量')
# 发送通知消息
def send_notification_message(title):
try:
from sendNotify import send
from notify import send
send(title, ''.join(all_print_list))
except Exception as e:
if e:
print('发送通知消息失败!')
def yx(ck):
headers = {'qm-user-token': ck,'User-Agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36 XWEB/1160065 MMWEBSDK/20231202 MMWEBID/2247 MicroMessenger/8.0.47.2560(0x28002F30) WeChat/arm64 Weixin NetType/5G Language/zh_CN ABI/arm64 MiniProgramEnv/android','qm-from': 'wechat'}
dl = requests.get(url='https://webapi.qmai.cn/web/catering/crm/personal-info',headers=headers).json()
headers = {'qm-user-token': ck, 'User-Agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36 XWEB/1160065 MMWEBSDK/20231202 MMWEBID/2247 MicroMessenger/8.0.47.2560(0x28002F30) WeChat/arm64 Weixin NetType/5G Language/zh_CN ABI/arm64 MiniProgramEnv/android', 'qm-from': 'wechat'}
dl = requests.get(
url='https://webapi.qmai.cn/web/catering/crm/personal-info', headers=headers).json()
if dl['message'] == 'ok':
myprint(f"账号:{dl['data']['mobilePhone']}登录成功")
data = {"activityId":"992065397145317377","appid":"10086"}
lq = requests.post(url='https://webapi.qmai.cn/web/cmk-center/sign/takePartInSign',data=data,headers=headers).json()
data = {"activityId": "992065397145317377", "appid": "10086"}
lq = requests.post(
url='https://webapi.qmai.cn/web/cmk-center/sign/takePartInSign', data=data, headers=headers).json()
if lq['message'] == 'ok':
myprint(f"签到情况:获得{lq['data']['rewardDetailList'][0]['rewardName']}{lq['data']['rewardDetailList'][0]['sendNum']}")
myprint(
f"签到情况:获得{lq['data']['rewardDetailList'][0]['rewardName']}{lq['data']['rewardDetailList'][0]['sendNum']}")
else:
myprint(f"签到情况:{lq['message']}")
def rhq(ck):
myprint('--------社群优惠券领券----------')
print('只能领取一次社群优惠券')
headers = {'qm-user-token': ck,'User-Agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36 XWEB/1160065 MMWEBSDK/20231202 MMWEBID/2247 MicroMessenger/8.0.47.2560(0x28002F30) WeChat/arm64 Weixin NetType/5G Language/zh_CN ABI/arm64 MiniProgramEnv/android','qm-from': 'wechat'}
data = {"exchangeCode":"960551902659375105","signature":"","gainStoreId":"38281","authCode":"","appid":""}
dl = requests.post(url='https://webapi.qmai.cn/web/catering/coupon/exchange',data=data,headers=headers).json()
#print((dl))
headers = {'qm-user-token': ck, 'User-Agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36 XWEB/1160065 MMWEBSDK/20231202 MMWEBID/2247 MicroMessenger/8.0.47.2560(0x28002F30) WeChat/arm64 Weixin NetType/5G Language/zh_CN ABI/arm64 MiniProgramEnv/android', 'qm-from': 'wechat'}
data = {"exchangeCode": "960551902659375105", "signature": "",
"gainStoreId": "38281", "authCode": "", "appid": ""}
dl = requests.post(url='https://webapi.qmai.cn/web/catering/coupon/exchange',
data=data, headers=headers).json()
# print((dl))
if dl['message'] == 'ok':
for b in dl['data']['couponDtoList']:
myprint(f"获得优惠券:{b['templateName']}")
@ -74,16 +80,19 @@ def rhq(ck):
def zhouer(ck):
myprint('--------每周二优惠券领券----------')
headers = {'qm-user-token': ck,'User-Agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36 XWEB/1160065 MMWEBSDK/20231202 MMWEBID/2247 MicroMessenger/8.0.47.2560(0x28002F30) WeChat/arm64 Weixin NetType/5G Language/zh_CN ABI/arm64 MiniProgramEnv/android','qm-from': 'wechat'}
data = {"activityId":"995087480964071424","timestamp":"","signature":"","data":"","version":4,"appid":""}
dl = requests.post(url='https://webapi.qmai.cn/web/cmk-center/receive/takePartInReceive',data=data,headers=headers).json()
#print((dl))
headers = {'qm-user-token': ck, 'User-Agent': 'Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36 XWEB/1160065 MMWEBSDK/20231202 MMWEBID/2247 MicroMessenger/8.0.47.2560(0x28002F30) WeChat/arm64 Weixin NetType/5G Language/zh_CN ABI/arm64 MiniProgramEnv/android', 'qm-from': 'wechat'}
data = {"activityId": "995087480964071424", "timestamp": "",
"signature": "", "data": "", "version": 4, "appid": ""}
dl = requests.post(url='https://webapi.qmai.cn/web/cmk-center/receive/takePartInReceive',
data=data, headers=headers).json()
# print((dl))
if dl['message'] == 'ok':
myprint('领取每周二会员优惠券成功')
else:
myprint(f"获得情况:{dl['message']}")
myprint('----------------------')
def main():
z = 1
for ck in yhtck:
@ -98,6 +107,7 @@ def main():
except Exception as e:
print('未知错误')
if __name__ == '__main__':
try:
main()
@ -107,4 +117,3 @@ if __name__ == '__main__':
send_notification_message(title='益禾堂') # 发送通知
except Exception as e:
print('小错误')