Retrieve more data from fr24
This commit is contained in:
parent
55b6d565b0
commit
00baa4a2f2
|
@ -27,7 +27,7 @@ def remote_fr24() -> T.Text:
|
|||
"""
|
||||
Returns the url to retrieve data from flightradar24.
|
||||
"""
|
||||
yesterday_ts = int((datetime.now() - timedelta(hours=12)).timestamp())
|
||||
yesterday_ts = int((datetime.now() - timedelta(hours=6)).timestamp())
|
||||
url = f"https://api.flightradar24.com/common/v1/airport.json?code=cia&plugin[]=&plugin-setting[schedule][mode]=arrivals&plugin-setting[schedule][timestamp]={yesterday_ts}&page=-1&limit=100&fleet=&token=" # noqa: E501
|
||||
return url
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user