JeanExtreme002 / FlightRadarAPI

:airplane: Unofficial SDK for FlightRadar24 for Python 3 and NodeJS
https://pypi.org/project/FlightRadarAPI/
MIT License
296 stars 60 forks source link

Limit when retrieving departures and arrivals #64

Closed eduardolfULPGC2003 closed 7 months ago

eduardolfULPGC2003 commented 7 months ago

First of all thank you for the library, it is very useful. But I would like to ask why there is a limit of 100 flights when retrieving the departures or arrivals for a given airport. I would therefore suggest the possibility for this number being higher or at least the option (I sincerely do not know whether if it is even posible) to have a kind of offset so that if you cannot retrieve all the information at once you could eventually get it by doing several requests with different offsets (please let me know if I am not explaining myself).

Thank you again and kind regards.

JeanExtreme002 commented 7 months ago

Hi Eduardo!

The limit is set by the internal api of flightradar24 website, this SDK just retrives the data from there. For this reason, there is nothing we can do for now but doing several requests. But you can retrive all information by changing the page, such as:

for page in range(number_of_pages):
    details = fr_api.get_airport_details(airport_icao, page = page)
    # Your code ...

Best regards.