# 微信推送(先关注再使用) def WxSend(project, status, content,turl): url = "https://linxi-send.run.goorm.app/" data = { "name": "XX", # 微信昵称 "project": project, #项目名称 "status": status, # 项目状态 "content": content, # 详细内容 "url":turl # 点击访问链接 } result = requests.post(url, json=data).json() print(f"微信消息推送: {result['msg']}")import requests import time tsurl = 'https://linxi-send.run.goorm.app' def test(): result = requests.post(tsurl+"/task",json={"biz":"test","url":"http://baidu.com"}).json() WxSend("测试回调", "状态", "内容",tsurl+"/read/"+"test") for i in range(30): result = requests.get(tsurl+"/back/"+"test").json() if result['status'] == True: print("过检测成功!") break else: print("等待检测中...", end="\r", flush=True) time.sleep(1) if result['status'] == False: print("过检测失败!") # 微信推送 def WxSend(project, status, content,turl): data = { "name": "林夕", # 微信昵称 "project": project, "status": status, "content": content, "url":turl } result = requests.post(tsurl, json=data).json() print(f"微信消息推送: {result['msg']}") if __name__ == "__main__": test()
-
Notifications
You must be signed in to change notification settings - Fork 0
Yuning-lp/LinxiPush
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
基于林夕微信推送助手V1.0 的Python3 福利脚本仓库
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published