Skip to content

Instantly share code, notes, and snippets.

@ericevenchick
Last active December 2, 2015 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericevenchick/ed74c8128c8122dd2876 to your computer and use it in GitHub Desktop.
Save ericevenchick/ed74c8128c8122dd2876 to your computer and use it in GitHub Desktop.
payload = {'l': 'en',
'TsiCCode': 'VIA',
'TsiTrainNumber': train_number,
'DepartureDate': trip_date,
'ArrivalDate': trip_date,
'TrainInstanceDate': trip_date}
r = requests.get('http://reservia.viarail.ca/tsi/GetTrainStatus.aspx',
params=payload)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment