Automation tools for simple web accounts operations. Currently supports:
- Daily XiaMi check-ins
- Monthly No-IP free hostname refreshes
- Semi-automatic advancing for taking online defensive driver's course (DDC) at New York Safety Council
Please make sure the following non-python dependencies are installed:
Firefox
: forselenium
's headful operation (or feel free to change the code to use your preferredselenium
-compatible browser),PhantomJS
: forselenium
's headless operation, andPostfix
(or other smtp server): forsmtplib
to be able to send notification emails upon errors.
Use flag --help
or -h
for general usage help.
For command-line password input (with flag --password-now
), do not start the script in background; consider using screen
instead.
For GUI password input (with flag --no-password-now
), starting in background is fine.
Because the DDC mode is more of a quick hack where real-time human intervention is needed every now and then, the following settings will be automatically set regardless of user inputs:
headless
mode: disabledpersistent_session
mode: enablednotification_method
: set tobeep
(i.e. the ascii'\a'
character)
The flag --force
can be used to override them.