程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

[Python] use meow code to realize alarm wechat reminder, and provide code and detailed comments

編輯:Python

Catalog

    • Running effect
    • How to get meow code
    • Run code
    • The official reminder of meow API file
    • summary


Welcome to your attention 『 I found you far away 』 Blog , Ongoing update
Welcome to your attention 『 I found you far away 』 Blog , Ongoing update

Running effect


How to get meow code

Follow the official account reminded by meow


Run code

# @Time : 2022/6/19 15:10
# @Author : Nanli 
# @FileName: Meow reminder send wechat reminder .py
import time
import requests
id = ' Your meow size ' #string, Meow code . Specify the reminder to send , A reminder corresponds to a meow code .( Required )
text ='XX Data exception ' #string, Remind additional content . When you receive a reminder , This content will be displayed after the title wraps , The default is empty. .
ts=str(time.time())# Time stamp 
print(ts)
type='json' # Return content format 
request_url="http://miaotixing.com/trigger?"
# Camouflage a browser to send a request ( A habitual operation of reverse climbing , In fact, it can be used without the disguise of request header )
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.47'}
result=requests.post(request_url+"id="+id+"&text="+text+"&ts="+ts+"&type="+type,headers=headers)
print(result)

The official reminder of meow API file

This section is from https://mp.weixin.qq.com/s?__biz=MzIxNjQ1NzU2Mw==&mid=2247484435&idx=1&sn=9bc6a487b040552608150c3b4dce593d&scene=19#wechat_redirect


summary

If you like , Give me one , Pay attention to ! Let's share more ways for computer majors to study !

Copyright notice :

I found you far away @mzh Original works , Reprint must be marked with the original link

Copyright 2022 mzh

Crated:2022-2-1

Welcome to your attention 『 I found you far away 』 Blog , Ongoing update
Welcome to your attention 『 I found you far away 』 Blog , Ongoing update



  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved