This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xd65e07600ae9ee2D8ca43220332C59f0b92aE01e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''You first have to install the skyscanner python sdk by 'pip install skyscanner' ''' | |
'''You also have to get an api key from skyscanner before using this''' | |
from skyscanner.skyscanner import FlightsCache | |
from urllib.request import urlopen | |
import json | |
''' Get the country codes''' | |
url = 'http://partners.api.skyscanner.net/apiservices/reference/v1.0/countries/en-US?apiKey={apikey}' |