diff --git a/README.md b/README.md index 8f20ce8..dd8ef83 100644 --- a/README.md +++ b/README.md @@ -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:** ``` diff --git a/nodejs/FlightRadar24/request.js b/nodejs/FlightRadar24/request.js index da8e8e6..13db4da 100644 --- a/nodejs/FlightRadar24/request.js +++ b/nodejs/FlightRadar24/request.js @@ -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, ); } diff --git a/nodejs/README.md b/nodejs/README.md index 34f1212..cabd75f 100644 --- a/nodejs/README.md +++ b/nodejs/README.md @@ -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: diff --git a/python/README.md b/python/README.md index d0b9c68..4792e9e 100644 --- a/python/README.md +++ b/python/README.md @@ -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: ``` @@ -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.