The United State Bureau of Transportation Statistics provides an API that developers can use to query flight data for their projects.
In this project we want get a list of flights going from one airport to another. We'll use the United State Bureau of Transportation Statistics API to receive flight data, parse the data, and then get a list of flights that go from one airport to another.
You'll need to install:
airport_and_carrier.html- HTML File of Airports and Carriersfl-atl.html- HTML file of flights from Florida to Atlantavirgin_and_logan_airport.html- HTML file of Virgin flights from Logan Airport
airports.py- Provides a list of aiport codes available through the APIcarriers.py- Provides a list of airline carrier codes available through the APItranstats_api.py- Returns an html file of all flights out an aiport on a specific carrierflights.py- Outputs a CSV of flights from one aiport to another
airports.csv- A CSV file of Airportscarriers.csv- A CSV file of Carriersview_state.txt- API field needed to query transtats APIevent_validation.txt- API field needed to query transtats APIfights.csv- A CSV file of flights from one airport to another