This Python script periodically checks the Diablo 4 Helltide report history from the Diablo 4 Life API. When it detects new reports, it prints them to the console.
- Retrieves the Helltide report history every 5 minutes.
- Converts the Unix timestamps in the report data to human-readable times.
- Prints new reports to the console, including the boss name, location, report time, spawn time, and the user who reported it.
-
Install the required Python library:
pip3 install -r requirements.txt
-
Run the script:
python3 d4_helltide_tracker.py
-
The script will run indefinitely, checking for new reports every 5 minutes. To stop the script, press Ctrl+C.
- The script uses the
requests
library to send HTTP requests to the API. - The script uses the
time.sleep()
function to wait for 5 minutes between each check. You can adjust this delay as needed, but be aware that making requests too frequently may result in your IP being blocked by the API. - The script prints new reports to the console. If you'd like to send notifications in a different way (such as by email or desktop notification), you'll need to modify the script accordingly.
This script is provided as-is, with no guarantees of functionality or correctness. Use it at your own risk. The author is not responsible for any consequences resulting from the use of this script.