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

Problem with scraping all of a sudden #8

Open
hermannatorii opened this issue Oct 15, 2023 · 0 comments
Open

Problem with scraping all of a sudden #8

hermannatorii opened this issue Oct 15, 2023 · 0 comments

Comments

@hermannatorii
Copy link

Hello

Has something changed with the layout of the tabels when scraping?
I am getting rerrors at the moment

Collecting finish data for all riders...
Found 288 riders.
Traceback (most recent call last):
File "C:\Users\herma\Documents\ZWIFT Coding\zwift_scrape.py", line 320, in
main()
File "C:\Users\herma\Documents\ZWIFT Coding\zwift_scrape.py", line 311, in main
results = scrape(settings.URL)
File "C:\Users\herma\Documents\ZWIFT Coding\zwift_scrape.py", line 111, in scrape
primeResults = driver.find_element(
File "C:\Users\herma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\webdriver.py", line 861, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
File "C:\Users\herma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "C:\Users\herma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //*[@id="table_event_primes"]/tbody
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5
NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:507:5
dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:132:16

CHEERS

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

1 participant