- Python3 (dev with 3.7.4)
- pip
Run pip install -r requirements.txt to install required components.
- Copy
include/config.example.pytoinclude/config.py. - Fill
TG_BOT_TOKEN,TG_BOT_MASTERininclude/config.pywith your own bot token and administrator's telegram userid. - Run
python main.py --initdbonce to initialize SQLite database (my_app.db). - Run
python main.pyto start the bot.
By default, the bot will checkin all the normal accounts at 0:10 UTC+8, and retry the failed ones at 0:25.
You can change this behavior in include/config.py.
Following step are proceed when checkin.
- Extracts
oldInfoanddeffrom web page. - Replace
id,uid,date, andcreatedinoldInfoby the ones indef. - Sanitize these properties using default values:
ismoved,jhfjrq,jhfjjtgj,jhfjhbcc,sfxk,xkqq,sfsfbh,ismoved,xjzd,bztcyy. - Pick
address,city,province,areaout fromgeo_api_infoif they are empty. - Post final data to saving API.
Pull requests and issues are always welcome.
Special thanks to ipid/bupt-ncov-report.