YADC
YADC copied to clipboard
Error while running main
This is the error code
File ".......\yadc\scraper.py", line 58, in Driver centres: list[Centre]
TypeError: 'type' object is not subscriptable
Inputs used driver = Driver( licence_number="ID HERE", booking_ref="YOUR_REF", not_before=datetime(2023, 8, 24), not_after=datetime(2022, 9, 30), name="MY NAME", centres=[ # Centre(centre="Greenford", not_after=datetime(2024,1, 1)), Centre(centre="Greenford") ] )
Issue was with my python version
Did you manage to run the script @algobot95? I tried a way to refresh the booking page to check the dates but after an hour or so my request to the website was blocked.
Not sure if that is because of a long session or the same IP refreshing the page for too long or something else.
Are you using TOR? can you share the revised script youre using please?