A Django application to archive real-time earthquake notifications from the U.S. Geological Survey’s Advanced National Seismic System


  • The Django web framework

  • A geospatial database like PostGIS

Getting started

Install the Python package.

pipenv install django-anss-archive

Add to Django’s INSTALLED_APPS.

INSTALLED_APPS = ("anss",)

Run migrations to create database tables.

python migrate

Run the archive command to save all earthquakes in the latest hour greater than 1.0 magnitude.

python getlatestanssfeed

Start your test server and visit the admin to see the results.

python runserver

It includes a list of all the earthquakes.


And lots of data about each one.



Install dependencies for development.

pipenv install --dev

Run tests.

pipenv run python test