For-The-Wolf / zwift-scrape

Scrape race results from www.zwiftpower.com, also includes a score calculator for WTRL time trials.
GNU General Public License v3.0
9 stars 2 forks source link

Problem with scraping all of a sudden #8

Open hermannatorii opened 1 year ago

hermannatorii commented 1 year ago

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