Skip to content

Instantly share code, notes, and snippets.

@fnneves
Last active July 19, 2021 12:58
Show Gist options
  • Save fnneves/a2c958e1ef329509d9291b8dec56fac6 to your computer and use it in GitHub Desktop.
Save fnneves/a2c958e1ef329509d9291b8dec56fac6 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