Kirill Kupriyanov 48a9d1bc31 Change time interval to [11.04 - 1.05]. | %!s(int64=6) %!d(string=hai) anos | |
---|---|---|
.gitignore | %!s(int64=6) %!d(string=hai) anos | |
README.md | %!s(int64=6) %!d(string=hai) anos | |
daemon_process.py | %!s(int64=6) %!d(string=hai) anos | |
date.json | %!s(int64=6) %!d(string=hai) anos | |
driver_spider.py | %!s(int64=6) %!d(string=hai) anos | |
email_login | %!s(int64=6) %!d(string=hai) anos | |
email_password | %!s(int64=6) %!d(string=hai) anos | |
notify.py | %!s(int64=6) %!d(string=hai) anos | |
password | %!s(int64=6) %!d(string=hai) anos | |
run_spider.sh | %!s(int64=6) %!d(string=hai) anos | |
send_to | %!s(int64=6) %!d(string=hai) anos | |
username | %!s(int64=6) %!d(string=hai) anos |
A tool for notifications about new available dates for driving tests in the UK.
Dependencies: scrapy
pip install scrapy
It crawls https://driverpracticaltest.direct.gov.uk/login sending FormRequests, and
collects the earliest available date. Puts it into date.json
.
./run_spider.sh
script./daemon_process.py
script. It crawles one time per 30 min (1800 sec) and updates file date.json
. If there is a change, the email notification is sent to address from send_to
fileusername
, password
, email_login
, email_password
and send_to
are empty not to exploit personal info and should be filled locallyWhat are those files?
username
is your driving licence number in driverpracticaltest.direct.gov.ukpassword
is your driving test reference numberemail_login
is your login in GMAIL. From this address the notification will be sentemail_password
is password from that GMAIL accountsend_to
is the destination email addressNo line breaks should be in the files above, just a single line w/ necessary text.