Skip to content

Commit

Permalink
docs: update.
Browse files Browse the repository at this point in the history
  • Loading branch information
2e0byo committed Jan 21, 2022
1 parent c618290 commit 7e3ff3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ YADC is yet another checker for driving cancellations in the UK.
the ground up. I got the idea of the poisson sleep from [[https://github.com/birdcolour/dvsa-practicals][this repo]], although
I didn't take any code directly from anything.
- infallible
- capable of booking tests for you (This could be added, but there are
currently no tests to practice on...)
- capable of booking tests for you (thanks to @chrishat34 it will reserve them, though).
- always going to work
- properly supported

Expand Down
9 changes: 8 additions & 1 deletion yadc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def notify(msg):


# define a driver. You can define as many as you like.
# note that the code will only search for one driver at a time.
driver = Driver(
licence_number="YOUR_NUMBER",
booking_ref="YOUR_REF",
Expand All @@ -31,7 +32,13 @@ def notify(msg):

# get a scraper for a driver or drivers.
s = Scraper(
TorBrowser(buster=Path("buster"), chrome="chromium"), [driver], notify=notify
TorBrowser(
buster=Path("buster"),
chrome="chromium",
),
[driver],
notify=notify,
reserve=True, # reserve a test if we find it
)

# run the scraper. I'm a bit too addicted to callable objects...
Expand Down

0 comments on commit 7e3ff3a

Please # to comment.