INTRODUCTION:
Hello ladies and gentlemen. Back with another exciting project of Python programming language. This is an aviation program-based on AviationStack API that generates real-time flight data and other essential data.
This application is also built on the concept of data science's data extraction methodology. I am also working on an advanced version of this application and will soon upload it!
TOOLS:
PROGRAM FLOW AND LOGIC:
This application contains two Python files, main.py and parse.py.
main.py:
In this file, we design the logic to extract raw JSON data using an API Key. First, we import suitable libraries like 'urllib' and 'JSON' to work with. Then we generate an API Key and the base URL of the API platform to make the connection with web data and extract it. When we design the entire code using suitable parameters, we run it and raw JSON data is displayed of hundreds of flights on the output screen.
parse.py:
After analysing the extracted data, we designed the parsed file to parse the data so that it is presented to the user in a clean and optimised manner. From the main file we extract the IATA (International Air Transport Association) or the ICAO (International Civil Aviation Organization) code to track a specific flight. We take this code as a user input in the parsed file and the most suitable and important data about the specific flight is displayed on the output screen.
OTHER DATA:
We can also extract other types of data by simply modifying the parameters of the URL according to API documentation. Some of the types are mentioned below:
I hope that you enjoy this simple yet powerful program made by a beginner-level student hoping to learn from professionals in this community.
GitHub Link:
https://github.com/h2005mirza/Aviation_Data
Aviationstack API Link:
https://aviationstack.com/
There are no models linked
There are no models linked
There are no datasets linked
There are no datasets linked