Auto manage tool for baidu tieba .
There are still many unexcept situations unhandled , just a simple and crude demo to do basic job.
- Python3
- Requests module
- beautifulsoup4 module
- python redis module
- redis
Tested in only linux .
After you satisfy the requirements . Make sure your redis has default configure .
Clone the Repo .
$ git clone https://github.com/KIDJourney/TiebaManager
Edit config.example.ini
to add your cookie and managed bar . Then
$ mv config.example.ini config.ini
$ python3 main.py
You can use Tmux
or something similar to run it in backgroud .
You can implement your own judge method in judgemethods.py
.
There are two kind of method you can write yourself .
The method is implemented as a function . Accept a Post
object as argument .
Make sure you register your method with the post_method
decorator.
The method is implemented as a function . Accept a Reply
object as argument .
Make sure you register your method with the reply_method
decorator.
The Project is still in develop , some of code may be refactored frequently.