微信机器人。

gjwang 523c3e90fb fixed generate qrcode error, and update dependance 9 years ago
img ae27f8e400 Adjust image size 10 years ago
.gitignore 1b7010d027 Add README 10 years ago
LICENSE 75bfbf09db Initial commit 10 years ago
README.md 523c3e90fb fixed generate qrcode error, and update dependance 9 years ago
wxbot.py 523c3e90fb fixed generate qrcode error, and update dependance 9 years ago

README.md

wxBot star this repo fork this repo python

Python包装的网页微信API。可以很容易地实现微信机器人。

Dependencies

程序用到了Python requests 和 pyqrcode库,使用之前需要安装这两个库:

pip install requests
pip install pyqrcode
pip install pypng

Demo

配置了 图灵机器人 之后,通过测试账号发送各种消息的效果:

向机器人发送消息

后台

Run

运行程序

python wxbot.py

登录微信

程序运行之后,会在当前目录下生成二维码图片文件 qr.jpg ,用微信扫描此二维码并按操作指示确认登录网页微信。可以选择是否自动回复。

1

按照操作指示在手机微信上扫描二维码然后登录,你可以选择是否开启自动回复模式。