Git Product home page Git Product logo

freewechatpush's Introduction

免费微信推送

原理:申请免费的测试版公众号,可获得免费的模板推送功能。

视频教程

https://www.bilibili.com/video/BV1Ng4y1r7EP/

作者 技术爬爬虾 全网同名,转载请注明作者

申请公众号测试账户

使用微信扫码即可 https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login

进入页面以后我们来获取到这四个值

appID appSecret openId template_id

image

想让谁收消息,谁就用微信扫二维码,然后出现在用户列表,获取微信号(openId) image

新增测试模板获得 template_id(模板ID) image

模板标题随便填,模板内容如下,可以根据需求自己定制

模板一 天气预报:

今天:{{date.DATA}} 
地区:{{region.DATA}} 
天气:{{weather.DATA}} 
气温:{{temp.DATA}} 
风向:{{wind_dir.DATA}} 
对你说的话:{{today_note.DATA}}

模板二 课程提醒:

消息:{{message.DATA}}	

配置代码

将上面获得的几个值填入代码这几行 image

配置定时任务

修改这几行 image

安装python依赖,启动项目

pip3 install -r requirements.txt
python main.py

freewechatpush's People

Contributors

tech-shrimp avatar noobhumiliator avatar catwb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.