Skip to content

Commit

Permalink
feat:增加推送通知
Browse files Browse the repository at this point in the history
  • Loading branch information
chung1912 committed Mar 17, 2024
1 parent 8ac3c83 commit d0a2cda
Show file tree
Hide file tree
Showing 6 changed files with 741 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fg.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# const $ = new Env('富贵论坛签到');

import requests, re,time,json,time,os
import notify

# 富贵论坛签到
# export fg_cookies='配置富贵论坛cookie'
Expand All @@ -33,5 +34,6 @@
re4 = requests.post(url=url4, headers=headers2).text
result =str(re.findall('showDialog\((.*?),', re4, re.S)).replace('\'', '').replace('[', '').replace(']', '').replace('"', '')
print(result)
notify.send("富贵论坛签到", result)


3 changes: 3 additions & 0 deletions gw.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import requests
import os
import notify

'''
export gw='邮箱&密码' 多账号#号割开 机场注册地址https://balala.io/auth/register?code=dnL6
Expand All @@ -32,8 +33,10 @@ def sign_in(email, passwd):
ss = resp.post(f'https://balala.io/user/checkin').json()
if 'msg' in ss:
print(ss['msg'])
notify.send("GW树洞机场签到领流量", ss['msg'])
except:
print('账号密码错')
notify.send("GW树洞机场签到领流量", '账号密码错')
def ql_env():
if "gw" in os.environ:
token_list = os.environ['gw'].split('#')
Expand Down
3 changes: 3 additions & 0 deletions ikuuu2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import requests
import os
import notify

# export ikuuu='邮箱&密码' 多号#号隔开

Expand All @@ -38,9 +39,11 @@ def sign_in(email, passwd):
# print(ss)
if 'msg' in ss:
print(ss['msg'])
notify.send("IKuuu机场签到", ss['msg'])
break
except:
print('请检查帐号配置是否错误')
notify.send("IKuuu机场签到", '请检查帐号配置是否错误')
def ql_env():
if "ikuuu" in os.environ:
token_list = os.environ['ikuuu'].split('#')
Expand Down
2 changes: 2 additions & 0 deletions lbly.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import requests, json
import os
import notify

# 青龙变量 export blh_hd= '' 抓包https://m.mallcoo.cn/api/user/User/GetRewardList 的请求体
# 变量类似 {"MallID":11192,"Header":{"Token":"*******,16214","systemInfo":{"model":"iPhone13<iPhone14,5>","SDKVersion":"2.30.4","system":"iOS15.6","version":"8.0.34","miniVersion":"2.5.59.1"}}}
Expand All @@ -21,3 +22,4 @@
resp = requests.post(url='https://m.mallcoo.cn/api/user/User/CheckinV2', headers=headers, data=blh_hd[i])
result = json.loads(resp.text)['d']['NickName'] + '\n' + json.loads(resp.text)['d']['Msg']
print(result)
notify.send("丽宝乐园小程序签到", result)
Loading

0 comments on commit d0a2cda

Please sign in to comment.