Skip to content

valentijn7/GoogleFloodHub-data-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoogleFloodHub-data-extractor

This repository contains a script to query the Google FloodHub (beta) API. As of October 2024, the API is focused on real-time forecasts and grants access to data issued at the earliest in July of 2024. Later, this is expected to be complemented with historical data spanning several decades.

When encountering a bug (or when the API itself is updated), please contact [email protected].

Set-up

  1. Clone the repository
    git clone [repo URL]
    cd GoogleFloodHub-data-extractor
  2. (Optional) Install the required dependencies
    pip install -r requirements.txt
  3. Add a .txt with your API key
    echo "[YOUR_KEY]" > key.txt
    

When not in possession of a valid key, contact [email protected] or, perhaps preferably, [email protected].

Manual

To run, navigate to src/ and execute main.py with arguments:

  • country: the country name of interest;
  • starting date: the first issue date of interest; and
  • ending date: the final issue date of interest.

The data is subsequently stored in the data/ folder.

Example usage:

python3 main.py Mali 01-10-2024 07-10-2024

Dependencies

See requirements.txt. Note: only very basic functionality is used.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages