Browse Source

add longer delays

David 9 years atrás
parent
commit
3f11076b86
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tati.py

+ 2 - 2
tati.py

@@ -29,7 +29,7 @@ def despegar():
     driver = setup_driver()
     WEB = 'https://www.despegar.com.ar/shop/flights/results/roundtrip/BUE/SCL/2017-12-15/2018-01-17/2/0/0?from=SB'
     driver.get(WEB)
-    time.sleep(1)
+    time.sleep(5)
     css = ".fare-price .amount.price-amount"
     prices = driver.find_elements_by_css_selector(css)
     ret = set()
@@ -43,7 +43,7 @@ def almundo():
     driver = setup_driver()
     WEB = 'https://almundo.com.ar/flights/results?from=BUE,SCL&to=SCL,BUE&date=2017-12-15,2018-01-17&adults=2#stops=0'
     driver.get(WEB)
-    time.sleep(1)
+    time.sleep(5)
     css = ".bigger"
     prices = driver.find_elements_by_css_selector(css)
     ret = set()