Skip to content

Instantly share code, notes, and snippets.

@SivaArwin
Forked from fnneves/flight_scraper_5.py
Created December 27, 2019 15:21
Show Gist options
  • Save SivaArwin/62b89872fc02222f3a58e7497682dc81 to your computer and use it in GitHub Desktop.
Save SivaArwin/62b89872fc02222f3a58e7497682dc81 to your computer and use it in GitHub Desktop.
city_from = input('From which city? ')
city_to = input('Where to? ')
date_start = input('Search around which departure date? Please use YYYY-MM-DD format only ')
date_end = input('Return when? Please use YYYY-MM-DD format only ')
# city_from = 'LIS'
# city_to = 'SIN'
# date_start = '2019-08-21'
# date_end = '2019-09-07'
for n in range(0,5):
start_kayak(city_from, city_to, date_start, date_end)
print('iteration {} was complete @ {}'.format(n, strftime("%Y%m%d-%H%M")))
# Wait 4 hours
sleep(60*60*4)
print('sleep finished.....')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment