Produces CSV & JSON files for US lake level info.
-
The source code for this project can be found in
lake_levels.py
above. -
Please check the required libraries/packages before running.
All of them should be native to Python except forbeautifulsoup4
&prompt_toolkit
.
Those can be downloaded via pip in the shell/command line:
pip install beautifulsoup4
pip install prompt_toolkit
- If you decide to fork/change this program, please don't hammer the website this program scrapes info from into oblivion.
The information doesn't update all that often anyways.
Since we're experiencing more & longer droughts, it might be useful/helpful to monitor lake levels.
This program scrapes national lake information & creates a CSV & JSON file.
The information comes from https://lakelevels.info & is already freely & publicly accessible,
but it lacks a real API to programmatically use the info.
Info can be retrieved by state (a fuzzy autocomplete for searching states exists in the program) or
all the lake levels on record can be amassed into one file each for CSV & JSON.
Unfortunately, this is not a comprehensive list of all the lakes in the US (let alone the world),
but can still be useful to get a sense of how familiar bodies of water are doing in near real time.