Giter VIP home page Giter VIP logo

wxpush's Introduction

wxpush

wxpush用于搭建个性化的微信消息推送平台。
原理是依靠微信的公众测试号的模板消息进行推送,将重要消息实时推送给自己。

安装&使用

准备环境

git clone https://github.com/ZHLHZHU/wxpush
cd wxpush
pipenv install

配置文件

  1. wxpush.ini.sample改名为wxpush.ini
  2. 微信测试号管理页面获得appid和appsecret,并填入wxpush.ini中
  3. 创建一个测试模板,模板标题随意,在模板内容中填入:
{{from.DATA}}:
{{content.DATA}}
  1. 把新建的测试模板的ID填入wxpush.ini的template_id字段中
  2. server section中的配置按需修改,token section中的配置项保持空白

运行

pipenv run python main.py

发送GET请求:

http://ip:1025/?from=Title&to=openID&content=text&redirect=url

  • openID可在微信测试号管理页面-用户列表-微信号获得
  • redirect的url为点击模板消息后跳转的地址

wxpush's People

Contributors

dependabot[bot] avatar zhlhzhu 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.