推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
iakisey
V2EX  ›  Python

借助微信测试公众号撸了个 服务器信息推送

  •  2
     
  •   iakisey · Feb 14, 2017 · 7035 views
    This topic created in 3556 days ago, the information mentioned may be changed or developed.

    借鉴 方糖气球 的 Server 酱 实现通过测试公众号模版消息推送,能够实时获知服务器的状态

    原博主没有开源,自己就造了个轮子。

    效果图如下:

    欢迎大家围观, 具体实现方式在GitHub

    26 replies  •  2017-02-15 17:34:35 +08:00
    uzumaki
    uzumaki
    Feb 15, 2017 via Android
    1
    已围观
    grimpil
    grimpil
    Feb 15, 2017 via Android
    2
    这个好,支持
    WildCat
    WildCat
    Feb 15, 2017 via iPhone
    3
    不錯,我有個服務號可以玩玩
    iakisey
    iakisey
    OP
    Feb 15, 2017 via iPhone
    4
    @WildCat 服务号必须认证
    daiv
    daiv
    Feb 15, 2017
    5
    用 Server 酱 不是挺好的吗?
    dreammes
    dreammes
    Feb 15, 2017 via iPhone
    6
    真心不错
    archer2ee
    archer2ee
    Feb 15, 2017 via iPhone
    7
    用企业号主动推消息更爽
    ak47947
    ak47947
    Feb 15, 2017
    8
    这个不错,可以玩玩
    cnZary
    cnZary
    Feb 15, 2017
    9
    @archer2ee 普通公众号也可以主动推送
    叫 模板信息
    iakisey
    iakisey
    OP
    Feb 15, 2017
    10
    @uzumaki #1 @grimpil #2 @dreammes #6 @ak47947 #8 感谢支持

    @daiv #5 好是好,就是走别人的服务器了,还不能定制消息模版

    @archer2ee #7 想法很好,哈哈,
    archer2ee
    archer2ee
    Feb 15, 2017 via iPhone
    11
    @linzianplay 是的。可是企业号各种类型都能主动推。注册企业号也方便,类型选团队就 OK 了。
    luanluan
    luanluan
    Feb 15, 2017
    12
    LZ 个人公众号不能用吗? 我是新手哈 , 另外你这个代码 要放在 linux 的什么环境下 域名 我得绑个域名吧?
    archer2ee
    archer2ee
    Feb 15, 2017❤️1
    13
    这里有个朋友写的发企业号文本消息的 Shell 脚本, 十几行代码搞定. 需要自取.
    https://github.com/x1596357/scripts/blob/master/alert-wechat/alert-wechat.sh
    iakisey
    iakisey
    OP
    Feb 15, 2017
    14
    @archer2ee #13 感谢🙏 已注册,互粉吧。哈哈
    iakisey
    iakisey
    OP
    Feb 15, 2017
    15
    @luanluan #12 调用的是高级接口 ,个人公众号没办法用。不用绑定域名
    luanluan
    luanluan
    Feb 15, 2017
    16
    @iakisey 什么环境部署啊?
    iakisey
    iakisey
    OP
    Feb 15, 2017
    17
    @luanluan #16 python3 tornado 框架, 实现方法很简单,就是 http post 请求而已, 根据你会的语言改造呗
    ckzx
    ckzx
    Feb 15, 2017
    18
    我用 zabbix 做了个,还是不错的。
    iakisey
    iakisey
    OP
    Feb 15, 2017
    19
    @ckzx #18 Link 呢
    virusdefender
    virusdefender
    Feb 15, 2017
    20
    接口测试号除了只能自己关注以外,有其他坑么?

    如果没有的话,自用其实超级爽,各种功能都是全的。
    iakisey
    iakisey
    OP
    Feb 15, 2017
    21
    @virusdefender #20 可以多人关注,最多 100 人。 暂时没发现其它坑。
    RandomUser
    RandomUser
    Feb 15, 2017
    22
    @virusdefender 接口测试号在订阅号文件夹里的吧?好像不能像好友和服务号一样能 push ?
    iakisey
    iakisey
    OP
    Feb 15, 2017
    23
    1591 次点击 ∙ 46 人收藏 却只有 22 个回复 🤣
    jackroyal
    jackroyal
    Feb 15, 2017
    24
    测试号的有效期是多久
    iakisey
    iakisey
    OP
    Feb 15, 2017
    25
    @jackroyal #24 看麻花腾的政策,如果求稳就去注册一个 企业号
    WildCat
    WildCat
    Feb 15, 2017 via iPhone
    26
    @iakisey 当然^_^专门为此开了个公司呢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2442 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 99ms · UTC 10:58 · PVG 18:58 · LAX 02:58 · JFK 05:58
    ♥ Do have faith in what you're doing.