This script retrieves the sunrise and sunset times for a specific location using the Sunrise-Sunset API.
Retrieves sunrise and sunset times for a given location Prints the results to the console
Clone the repository or download the code. Replace my_lat and my_long with your own latitude and longitude coordinates. Run the script using Python (e.g., python script.py).
Python 3.x requests library (install with pip install requests) datetime library (built-in)