YADC icon indicating copy to clipboard operation
YADC copied to clipboard

Error while running main

Open algobot95 opened this issue 1 year ago • 3 comments

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") ] )

algobot95 avatar Jul 26 '23 18:07 algobot95

Issue was with my python version

algobot95 avatar Jul 26 '23 20:07 algobot95

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.

devopslondon2021 avatar Jul 27 '23 18:07 devopslondon2021

Are you using TOR? can you share the revised script youre using please?

algobot95 avatar Jul 27 '23 19:07 algobot95