Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running main #18

Open
algobot95 opened this issue Jul 26, 2023 · 3 comments
Open

Error while running main #18

algobot95 opened this issue Jul 26, 2023 · 3 comments

Comments

@algobot95
Copy link

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
Copy link
Author

Issue was with my python version

@devopslondon2021
Copy link

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.

@algobot95
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants