A tool to download and archive collections from the Library of Congress (LoC). Inspired by https://www.tiktok.com/@annelisethearchaeologist/video/7436133360868822318.
npm install archive-loc-collection
npx archive-loc-collection https://www.loc.gov/collections/ansel-adams-manzanar .
Navigate to https://www.loc.gov/collections/, find a collection you wish to archive, then use the tool to enter the URL and the file path to save the collection. The tool will download all media files (images, audio, video) from the collection, as well as the About page for the collection and a file containing all archival data for each media file (Title, Other Title, Summary, Names, Notes, Call Number, Format, and Filename).
Example archival data file:
Title | Other Title | Summary | Names | Notes | Call Number | Format | Filename |
---|---|---|---|---|---|---|---|
Henry Hanawa, mechanic, Manzanar Relocation Center, California | Henry Hanawa, bust portrait, facing front. | Adams, Ansel, 1902-1984, photographer |
|
LC-A35-4-M-21-A [P&P] | image | 00027v.jpg |