Mar-31-2021, 07:24 PM
(This post was last modified: Mar-31-2021, 07:24 PM by brunolelli.)
Hello guys,
I'm using the following API project in order to collect some data from Flight Radar 24.
https://pypi.org/project/FlightRadarAPI/
In the project's documentation it's written that:
You can also get more information about a specific flight such as: aircraft images, estimated time, trail, etc.
Is there any better and more 'inteligent' way of doing this?
Basically my intention is to loop through all flights of some airlines...
I'm using the following API project in order to collect some data from Flight Radar 24.
https://pypi.org/project/FlightRadarAPI/
In the project's documentation it's written that:
You can also get more information about a specific flight such as: aircraft images, estimated time, trail, etc.
details = fr_api.get_flight_details(flight.id) flight.set_flight_details(details) print("Flying to", flight.destination_airport_name)So, in order to get the value of some 'fields' I'm using the following expression:
print(details['time']['real']['departure']) print(details['time']['real']['arrival']) print(details['time']['estimated']['departure']) print(details['time']['estimated']['arrival'])My question is:
Is there any better and more 'inteligent' way of doing this?
Basically my intention is to loop through all flights of some airlines...