joaoricardo000/whatsapp-bot-seed
关于
用于创建 WhatsApp 机器人的小型 Python 框架,支持通过正则表达式回调进行消息路由。
其他项目实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文whatsapp-bot-seed
A small python seed to create a Whatsapp Bot, with regex-callback routes (just like a web framework).
(practical extension of the examples on https://github.com/tgalal/yowsup)
:warning: Warning :warning:
Unfortunately, after some updates in the whatsapp servers, bots are beeing banned real quickly. Some just last a couple hours.
Whatsapp does not have an open protocol, so yowsup -- the core implementation behind this seed -- relies on reverse engineering to understand the messages exchange. Right now there is a lot of issues with this implementation.
This project had a good run, was really useful and bots prior to the server update could run for months without any trouble. Right now is very unstable and unreliable due the ban problem.
If a new library/protocol update solves this issue, the work will return. Until then, sadly, the project will be on hold.
What it does?
Basic message handling:
Automatic media (images and videos) download, and url print screens
Youtube Video Downloads, and Text to Speech
Google image and web search

Group administration

and a bit more...
Installation
- Install the image handling system dependencies on
bash opt/system-requirements.sh - Create a virtualenv and install the requirements
pip install -r opt/requirements.pip - Follow the instructions on
src/config.pyto get the whatsapp credentials. - Then just run the server with
python src/server.py
Or with Docker!
$ git clone https://github.com/joaoricardo000/whatsapp-bot-seed/
$ cd whatsapp-bot-seed
(Edit Dockerfile to include your credentials)
$ docker build -t whatsapp-bot .
$ docker run -p 0.0.0.0:9005:9005 whatsapp-bot
The server will be running. Access http://localhost:9005 (default: admin:password) for process controll and logs.
To create your own views, check out src/router.py and src/view/basic_views.py for examples.
探索相关项目
加载中…