Skip to content

Instantly share code, notes, and snippets.

@codersofthedark
Created August 21, 2013 12:05
Show Gist options
  • Save codersofthedark/6293633 to your computer and use it in GitHub Desktop.
Save codersofthedark/6293633 to your computer and use it in GitHub Desktop.
import requests
key = "X-CT-API-KEY"
value = "13465408b353ba36ca5fd2dfa5246ef3"
url = "http://api.staging.cleartrip.com/air/1.0/search?from=BOM&to=DEL&depart-date=2013-09-09&return-date=2013-12-12"
headers = {key: value}
r = requests.get(url, headers=headers)
print r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment