This Python script allows you to retrieve ORCA alerts from Hyperscaler Database (HSDB). The script can save the retrieved data in JSON or CSV format based on your choice.
Before running the script, you need to set the following environment variables:
- For HSDB:
HSDB_BASE_URL
: The base URL of HSDB.HSDB_USERNAME
: Your HSDB username.HSDB_PASSWORD
: Your HSDB password.
-
Clone or download this repository to your local PC.
-
Set the required environment variables with your HSDB.
-
Open a terminal and navigate to the directory containing the script.
-
Run the script using the following command:
python3 genet_all_hsdb_orca_alerts.py
-
Depending on your choice, the script will retrieve ORCA alerts from the selected source and save them in a file with a timestamp in the filename.
-
You can find the saved file in the same directory as the script.
-
If you choose the JSON format, the file will have a
.json
extension (e.g.,orca_alerts_20231027_003849.json
). -
If you choose the CSV format, the file will have a
.csv
extension (e.g.,orca_alerts_20231027_003849.csv
). -
The script retrieves all available data from the selected source.
- v1.0.0 (2024-04-18):
- Initial release.