Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanExtreme002 committed Mar 23, 2024
2 parents f4d50dc + c4df6c0 commit 42660c1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ See more information at: https://www.flightradar24.com/terms-and-conditions
[![License](https://img.shields.io/pypi/l/FlightRadarAPI)](https://github.com/JeanExtreme002/FlightRadarAPI)
[![Python Version](https://img.shields.io/badge/python-3.7+-8A2BE2)](https://pypi.org/project/FlightRadarAPI/)
[![Npm](https://img.shields.io/npm/v/flightradarapi?logo=npm&color=red)](https://www.npmjs.com/package/flightradarapi)
[![Downloads](https://static.pepy.tech/personalized-badge/flightradarapi?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads)](https://pypi.org/project/FlightRadarAPI/)

[![Downloads](https://static.pepy.tech/personalized-badge/flightradarapi?period=total&units=international_system&left_color=grey&right_color=orange&left_text=downloads)](https://pypi.org/project/FlightRadarAPI/)
[![Frequency](https://img.shields.io/pypi/dm/flightradarapi?style=flat&label=frequency)](https://pypi.org/project/FlightRadarAPI/)
## Installing FlightRadarAPI
**For Python with pip:**
```
Expand Down
4 changes: 2 additions & 2 deletions nodejs/FlightRadar24/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class APIRequest {

if (this.getStatusCode() == 520) {
throw new CloudflareError(
message = "An unexpected error has occurred. Perhaps you are making too many calls?",
response = this.__response,
"An unexpected error has occurred. Perhaps you are making too many calls?",
this.__response,
);
}

Expand Down
3 changes: 2 additions & 1 deletion nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ See more information at: https://www.flightradar24.com/terms-and-conditions
[![License](https://img.shields.io/pypi/l/FlightRadarAPI)](https://github.com/JeanExtreme002/FlightRadarAPI)
[![Python Version](https://img.shields.io/badge/python-3.7+-8A2BE2)](https://pypi.org/project/FlightRadarAPI/)
[![Npm](https://img.shields.io/npm/v/flightradarapi?logo=npm&color=red)](https://www.npmjs.com/package/flightradarapi)
[![Downloads](https://static.pepy.tech/personalized-badge/flightradarapi?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads)](https://pypi.org/project/FlightRadarAPI/)
[![Downloads](https://static.pepy.tech/personalized-badge/flightradarapi?period=total&units=international_system&left_color=grey&right_color=orange&left_text=downloads)](https://pypi.org/project/FlightRadarAPI/)
[![Frequency](https://img.shields.io/pypi/dm/flightradarapi?style=flat&label=frequency)](https://pypi.org/project/FlightRadarAPI/)

## Installing FlightRadarAPI:

Expand Down
9 changes: 5 additions & 4 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ See more information at: https://www.flightradar24.com/terms-and-conditions
[![License](https://img.shields.io/pypi/l/FlightRadarAPI)](https://github.com/JeanExtreme002/FlightRadarAPI)
[![Python Version](https://img.shields.io/badge/python-3.7+-8A2BE2)](https://pypi.org/project/FlightRadarAPI/)
[![Npm](https://img.shields.io/npm/v/flightradarapi?logo=npm&color=red)](https://www.npmjs.com/package/flightradarapi)
[![Downloads](https://static.pepy.tech/personalized-badge/flightradarapi?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads)](https://pypi.org/project/FlightRadarAPI/)
[![downloads](https://static.pepy.tech/personalized-badge/flightradarapi?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads)](https://pypi.org/project/FlightRadarAPI/)
[![Frequency](https://img.shields.io/pypi/dm/flightradarapi?style=flat&label=frequency)](https://pypi.org/project/FlightRadarAPI/)

## Installing FlightRadarAPI:
```
Expand Down Expand Up @@ -107,10 +108,10 @@ print(f"The flight is {distance} km away from the airport.")
*Note*: This requires a premium subscription and for you to be logged in.

```py
history_data = fr_api.get_history_data(flight_id='33ca11c4', file_type='csv', time=1706529600)
history_data = fr_api.get_history_data(flight, file_type="csv", time=1706529600)

with open('history_data.csv', 'w') as f:
f.write(history_data)
with open("history_data.csv", "w") as file:
file.write(history_data)
```

`flight_id` - The ID of the flight. Can be gotten from any other function that returns flight details.
Expand Down

0 comments on commit 42660c1

Please sign in to comment.