A simple Python script that uses a SQLite database of Menu Link IDs (MLID) and names to retrieve information from the Digital Public Library of America (DPLA) using the DPLA API. The script exports found data into a CSV.
An example SQLite database and CSV output file are given.
The script uses a SQLite3 database (dpla.sqlite3) for incoming data. It uses one table (dpla
) with two columns (mlid
, and name
). A free GUI-based SQLite3 editor is available at http://sqlitebrowser.org.
The script also requires a DPLA API key. This can be used by either modifying the line in the script that begins with dp_api_key =
or by adding the key to an environmental variable named DP_API_KEY
.
- Python >= version 2.0
- SQLite3
- SQLite3 Python Library
- Jacob Reed - development
- Anna Neatrour - planning and testing
This project is licensed under the Apache 2.0 license - see the LICENSE.md file for details