All Projects → bluedazzle → Wechat_sender

bluedazzle / Wechat_sender

Licence: bsd-2-clause
随时随地发送消息到微信

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Wechat sender

Pageslider
朋友圈广告 - 移动端滑屏翻页插件
Stars: ✭ 442 (-6.75%)
Mutual labels:  wechat, weixin
Wechat Bot
带二次开发接口的PC微信聊天机器人
Stars: ✭ 458 (-3.38%)
Mutual labels:  wechat, weixin
Wemall
wemall7 开源版本 (不含商城)
Stars: ✭ 315 (-33.54%)
Mutual labels:  wechat, weixin
Weixin Spider
微信公众号爬虫,公众号历史文章,文章评论,文章阅读及在看数据,可视化web页面,可部署于Windows服务器。基于Python3之flask/mysql/redis/mitmproxy/pywin32等实现,高效微信爬虫,微信公众号爬虫,历史文章,文章评论,数据更新。
Stars: ✭ 287 (-39.45%)
Mutual labels:  wechat, weixin
Wechat kit
flutter版微信登录/分享/支付
Stars: ✭ 347 (-26.79%)
Mutual labels:  wechat, weixin
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 294 (-37.97%)
Mutual labels:  wechat, weixin
Wecheat
开箱即用的微信公众平台API模拟服务器,帮助你开发与调试微信公众平台应用
Stars: ✭ 440 (-7.17%)
Mutual labels:  wechat, weixin
Lin Ui
🌈 简洁、易用、灵活的微信小程序组件库
Stars: ✭ 3,264 (+588.61%)
Mutual labels:  wechat, weixin
Wuss Weapp
🐳wuss-weapp 一款高质量,组件齐全,高自定义的微信小程序UI组件库
Stars: ✭ 338 (-28.69%)
Mutual labels:  wechat, weixin
Vbot
💬The best wechat robot base on web api!
Stars: ✭ 3,301 (+596.41%)
Mutual labels:  wechat, weixin
Weapp Demo Breadtrip
基于面包旅行 API 制作的微信小程序示例
Stars: ✭ 282 (-40.51%)
Mutual labels:  wechat, weixin
Werobot
WeRoBot 是一个微信公众号开发框架
Stars: ✭ 3,973 (+738.19%)
Mutual labels:  wechat, weixin
Weixinresource
微信开发资源汇总 | WeChat Development Resources Summary
Stars: ✭ 279 (-41.14%)
Mutual labels:  wechat, weixin
Wepy Mall
微信小程序--基于wepy 商城(微店)微信小程序 欢迎学习交流
Stars: ✭ 3,224 (+580.17%)
Mutual labels:  wechat, weixin
Wechatpy
WeChat SDK for Python
Stars: ✭ 3,016 (+536.29%)
Mutual labels:  wechat, weixin
Pay
可能是我用过的最优雅的 Alipay 和 WeChat 的支付 SDK 扩展包了
Stars: ✭ 4,176 (+781.01%)
Mutual labels:  wechat, weixin
Think Wechat
easywechat for thinkphp support
Stars: ✭ 250 (-47.26%)
Mutual labels:  wechat, weixin
Wechatkit
一款快速实现微信第三方登录的框架(Swift版) SDK 1.8.5
Stars: ✭ 249 (-47.47%)
Mutual labels:  wechat, weixin
Wechat App Issues
💥 微信小程序踩坑集合
Stars: ✭ 318 (-32.91%)
Mutual labels:  wechat, weixin
Lykchat
便捷、稳定(7*24不间断服务)、安全、支持发送多媒体的信息发送系统,为系统管理人员提供一个基于个人微信号的信息发送工具。
Stars: ✭ 353 (-25.53%)
Mutual labels:  wechat, weixin

Wechat_Sender

随时随地发送消息到微信

http://wechat-sender.readthedocs.io/zh_CN/latest/

简介

wechat_sender 是基于 wxpytornado 实现的一个可以将你的网站、爬虫、脚本等其他应用中各种消息 (日志、报警、运行结果等) 发给到微信的工具

初衷

wxpy 基于 itchat 提供了较为完备的微信个人号 API ,而我想使用个人微信来接收我的网站的报警信息以及一些爬虫的结果,因此我写了这个工具。

安装

pip install wechat_sender

运行环境

Python 2.7 及以上 Python 3 及以上

使用

  1. 登录微信并启动 wechat_sender 服务.
   from wxpy import *
   from wechat_sender import *
   bot = Bot()
   listen(bot)
   # 之后 wechat_sender 将持续运行等待接收外部消息
  1. 在外部向微信发送消息.
   from wechat_sender import Sender
   Sender().send('Hello From Wechat Sender')
   # Hello From Wechat Sender 这条消息将通过 1 中登录微信的文件助手发送给你

如果你是 wxpy 的使用者,只需更改一句即可使用 wechat_sender:

例如这是你本来的代码:

# coding: utf-8
from __future__ import unicode_literals

from wxpy import *
bot = Bot('bot.pkl')

my_friend = bot.friends().search('xxx')[0]

my_friend.send('Hello WeChat!')

@bot.register(Friend)
def reply_test(msg):
    msg.reply('test')

bot.join()

使用 wechat_sender:

# coding: utf-8
from __future__ import unicode_literals

from wxpy import *
from wechat_sender import listen
bot = Bot('bot.pkl')

my_friend = bot.friends().search('xxx')[0]

my_friend.send('Hello WeChat!')

@bot.register(Friend)
def reply_test(msg):
    msg.reply('test')

listen(bot) # 只需改变最后一行代码

之后如果你想在其他程序或脚本中发送微信消息,只需要:

# coding: utf-8
from wechat_sender import Sender
Sender().send("test message")

文档

http://wechat-sender.readthedocs.io/zh_CN/latest/

交流

扫描二维码,验证信息输入 'wechat_sender' 或 '加群' 进入微信交流群

screenshot

TODO LIST

  • [x] 多 receiver
  • [x] log handler 支持
  • [ ] wxpy 掉线邮件通知
  • [ ] wxpy 掉线重连

历史

当前版本: 0.1.4

2017.06.12 0.1.4:

修复 Python 3 下 sender 发送成功后报错问题 #8

Sender().send_to 方法增加支持搜索群发送

Sender 支持指定多个 receivers

2017.06.07 0.1.3:

优化代码,完善文档、注释

2017.06.04 0.1.2:

修复 sender timeout 时间过短问题;

修复初始化 listen 无 receiver 报错问题

增加 LoggingSenderHandler, 提供 log handler 支持

2017.05.27 0.1.1:

增加多 receiver 支持;

2017.05.27 0.1.0:

增加延时消息;

增加周期消息;

增加指定接收方消息;

增加 wechat_sender 控制命令;

增加 wxpy 状态监测功能;

优化代码;

2017.05.17 0.0.2:

优化代码

2017.05.11 0.0.1:

发布初版

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].