Python project to list and/or visualize locations and details about recent Oklahoma earthquakes using USGS’s Earthquake Catalog (API documentation) or Oklahoma Geological Survey Earthquake Catalog Download Tool
Inspired by Oklahoma Cooling Centers Python Project
requests
pandas
folium
- Grab last
730 days of Oklahoma earthquakesas a static csvDONE- Chioma
- Read into
pandas
DataFrame DONE- Ruth/Amanda
- Clean up
- Ruth
- Pipe into
folium
- Crystal
- Deploy (Netlify? GitHub Pages? Render?)
- Crystal
- Install Python3
- Create a virtual environment and install dependencies
python3 -m venv .venv source .venv/bin/activate python3 -m pip install -r requirements.txt
- Run the script
python3 make_map.py
- Open the map in your browser
- macOS
open ./pages/index.html
- Windows and Linux
- Double-click the
index.html
file in your file manager
- Double-click the
- macOS
- Deactivate virtual environment
deactivate
- Follow the instructions above to set up your environment
- Install devbox
curl -fsSL https://get.jetpack.io/devbox | bash
- Basic commands
# install dependencies devbox install # enter devbox devbox shell # refresh devbox after making changes to devbox.json refresh # deactivate devbox exit