/simple-dpla-data-gathering-script

A simple Python script that uses a SQLite database of Menu Link IDs (MLIDs) 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.

Primary LanguagePythonOtherNOASSERTION

DPLA Data Gathering Script

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.

Getting Started

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.

Prerequisites

Authors

License

This project is licensed under the Apache 2.0 license - see the LICENSE.md file for details