Closed WayneRose-95 closed 2 years ago
The timeout issue no longer occurs thanks to a simple try/except statement around the problematic line of code.
However, this has opened up some new issues.
Most notably, some records are being missed:
And the last page is no longer being scraped
For reference, here is the method, sample_scraper, which is responsible for combining the other methods together to scrape pages.
The timeout exception along with the page switching method have been dealt with, however this raises another issues with dealing with the missing values present within the dataset.
Whilst running the scraper, the scraper can timeout occasionally, and show this error message.
A potential solution is either import TimeoutException from selenium.common.exceptions.
Pagination was also a suggestion on how to solve this.
Both answers need to be researched and tested to successfully debug this error.