pip install -e ./ -v
python ceac_tracker/db/sqlite_store.py
It will generate a SQLite file db/data.db
.
Use SQLite client to insert application_id to the application
table manually. See db/ddl.sql
for the schema.
cp ceac_tracker/config/keys_template.json ceac_tracker/config/keys.json
Then edit keys.json
, no need to fill ding_talk_key
if you don't want to use DingTalk notification.
python ceac_tracker/refresh_once.py
# The number indicates interval in seconds
python ceac_tracker/refresh_periodically.py 3600
# Run in background. `-u` means disable output buffer
# or nohup.out will have no log.
nohup python -u ceac_tracker/refresh_periodically.py 3600&
I use 2captcha to resolve captcha. And use email to send the notification.
You probably need to replace it if you don't want to use this service.
To replace captcha resolving service, you need to implement another resolve_captcha(image_base64)
function similar to what in two_captcha_resolve.py
,
and replace all resolve_captcha
to your own function.
def resolve_captcha(image_base64: str) -> str:
pass
Sorry for the unplugable code, but it's only for my own use now. Welcome for pull requests to make it better.