Code to download data from the Dictionary of American Naval Fighting Ships to a sqlite database.
Running
$ python danfs.py
creates a sqlite3 database named danfs.sqlite3
with two tables: danfs_ships
with all ships in the DANFS, and confederate_ships
with all ships in the Confederate ships histories.
You can download a SQLite version of the DANFS database from https://s3.amazonaws.com/data.jrnold.me/danfs/danfs.sqlite3 .