Cheapest-Flights-bot icon indicating copy to clipboard operation
Cheapest-Flights-bot copied to clipboard

Timeour exception

Open fabioaraujopt opened this issue 6 years ago • 1 comments

Hello, do you have any ideia why is it happening? Thanks


TimeoutException Traceback (most recent call last) in () 267 268 date=datetime.strptime("2019-04-17","%Y-%m-%d") --> 269 df=scrape_data(date,"New York","Russia","Moscow") 270 print (task_3_dbscan(df)) 271 task_3_IQR(df)

in scrape_data(start_date, from_place, to_place, city_name) 151 driver.get('https://www.google.com/flights/explore/') 152 wait = WebDriverWait(driver, 20) --> 153 wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, "div.LJTSM3-k-b"))) 154 from_input = driver.find_element_by_xpath('//*[@id="root"]/div[3]/div[3]/div/div[2]/div/div') 155 from_input.click()

/usr/local/lib/python3.6/dist-packages/selenium/webdriver/support/wait.py in until(self, method, message) 78 if time.time() > end_time: 79 break ---> 80 raise TimeoutException(message, screen, stacktrace) 81 82 def until_not(self, method, message=''):

TimeoutException: Message:

fabioaraujopt avatar Feb 21 '19 10:02 fabioaraujopt

Hey, Since it has been quite long that I have wrote this code, you might have to figure it out by yourself. But most likely it seems that since the website has changed a lot, the automation properties might have changed, like the css attributes, button locations, etc, and that is why it's timing out as it is not able to find the items, let me know if you find anything, would appreciate it if you could build up on this. Thanks

PhoenixDD avatar Apr 13 '19 22:04 PhoenixDD