بدون توضیح

Kirill Kupriyanov 48a9d1bc31 Change time interval to [11.04 - 1.05]. 6 سال پیش
.gitignore 718393b0a5 Edit gitignore to ignore __init__.py. 6 سال پیش
README.md 565f34b0c0 Simulate human-like behaviour. Format email. 6 سال پیش
daemon_process.py 48a9d1bc31 Change time interval to [11.04 - 1.05]. 6 سال پیش
date.json dad2688deb Use calendar to retrieve the earliest date. 6 سال پیش
driver_spider.py 565f34b0c0 Simulate human-like behaviour. Format email. 6 سال پیش
email_login 1aa2433409 Email login and password security files. 6 سال پیش
email_password 1aa2433409 Email login and password security files. 6 سال پیش
notify.py 99bcfc3873 Web spider for retrieving earliest date. 6 سال پیش
password 5d7af2a08a Username, password security files. 6 سال پیش
run_spider.sh 99bcfc3873 Web spider for retrieving earliest date. 6 سال پیش
send_to 99bcfc3873 Web spider for retrieving earliest date. 6 سال پیش
username 5d7af2a08a Username, password security files. 6 سال پیش

README.md

driverpracticaltest-uk

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 single-time crawling using ./run_spider.sh script
  • Run in background using ./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 file
  • Files username, password, email_login, email_password and send_to are empty not to exploit personal info and should be filled locally

What are those files?

  • username is your driving licence number in driverpracticaltest.direct.gov.uk
  • password is your driving test reference number
  • email_login is your login in GMAIL. From this address the notification will be sent
  • email_password is password from that GMAIL account
  • send_to is the destination email address

No line breaks should be in the files above, just a single line w/ necessary text.