Open ikwtif opened 8 months ago
Not sure if it's related, but had this same error on .co.uk
when I was still logged into amazon from a previous attempt. I logged out and the error was gone
Traceback (most recent call last):
File "D:\Finance\finance-dl-master\finance_dl\scrape_lib.py", line 403, in retry
return func()
File "D:\Finance\finance-dl-master\finance_dl\scrape_lib.py", line 423, in fetch
scraper.run()
File "D:\Finance\finance-dl-master\finance_dl\amazon.py", line 585, in run
self.get_orders(
File "D:\Finance\finance-dl-master\finance_dl\amazon.py", line 472, in get_orders
(orders_link,), = self.wait_and_return(
File "D:\Finance\finance-dl-master\finance_dl\scrape_lib.py", line 239, in wait_and_return
WebDriverWait(self.driver, timeout).until(predicate, message=message)
File "D:\Finance\env-financedl\lib\site-packages\selenium\webdriver\support\wait.py", line 87, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: Waiting to match conditions
Trying to download amazon(.de) orders but doesn't seem to want to download anything, not sure what condition it was waiting on.
Also had to change
orderFilter
totimeFilter
here to get it to scrape the orders https://github.com/jbms/finance-dl/blob/4b8e28a29b8f0faf5ab3457b5cded2079e73f3fd/finance_dl/amazon.py#L449C24-L449C24