This section of the guide presents a series of hands-on tutorials for making use of the Library's digital collections. If you have further questions or do not see your question represented here, get in touch with a reference librarian through Ask a Librarian.
Select any of the topics below to view expanded content for each:
One common way to represent data is to create a visualization—this can be a chart, table, graph, map, or a new form you create! Regardless of the type of data visualization you're creating, you should ask yourself these basic questions about your goal, audience, and the information you intend to display. The following tips can help you get started. Here are the basic three steps in the process:
Some examples of visualizations include: maps, timelines, networks, or frequency charts
Things to take into consideration when deciding on a visualization:
Things to take into consideration when deciding on a tool:
See a list of visualization tools in the Further Reading section of this guide.
We often receive the question: "how do I download all the images belonging to a single item on loc.gov--like the scanned pages of a book—at one time?"
Some items have a button that allows you to download all the images as a combined package, like a PDF. If you don't see that option, try using the method described below using a web browser, command line, spreadsheet software program, and a text editor.
Before you do, please note that you can only use this method for images that are made fully available on loc.gov and not under any copyright restrictions.
And if you're not sure if this method suits your needs, explore the examples included in the fifth tutorial on this page.
If you are downloading 100 or fewer images, you can use this relatively lightweight method for which all you need is:
If you are downloading more than 100 images or if the data you get back from the API is very complicated, then you may want to try the following Python script laid out in the following Jupyter Notebook lesson External on the LC for Robots website.
NOTE: if you already know the urls of the images you’d like to download, you should compile them in a single text file titled “urls.txt” and skip this step!
1. Open the csv file
2. Create a new sheet
3. Clean the image urls
This step requires using a command line interface. Two common ways of using the command line are through Windows Powershell (if operating a PC) and Linux or OS X (if operating a Mac).
Voila! Your images should all be saved in a single folder on your computer.
Voila! Your images should all be saved in a single folder on your computer.
Troubleshooting: If you are having troubles because your image URLs end with “default.jpg” take the following steps:
Voila! Your images should all be saved in a single directory on your computer.
Once you have your images saved as .jpg or .tif files in a folder on your computer, you may wish to combine them into a single file, like a PDF.
www.loc.gov/collections/abdul-hamid-ii-books/about-this-collection
323 books and periodicals of varying lengths (40-802 pages)
Rights and access: The contents of the Library of Congress Sultan Abdul-Hamid II Collection are in the public domain and are free to use and reuse. Credit Line: Library of Congress, African and Middle East Division, Sultan Abdul-Hamid II Collection.
Use this Jupyter Notebook External available on GitHub
This method works for situations in which you need a batch of images from one collection. However, if your images are from more than one collection, you might end up with files with the same name and end up overwriting them. And either way, these filenames don't tell you anything about the item. You might need to look up further metadata. So, here's an alternative approach that renames the file with the identifier used on the loc.gov website. We'll first re-fetch the image URL for each item and download the file, renaming it using the identifier.
To download and install Jupyter Notebook you need:
*Note: because you are downloading 802 larger images, the download make take several to many minutes. For example, this download of 802 images took 30 minutes.
The following items are included in the William P. Gottlieb Collection with permission as noted:
Articles from Down Beat magazine by William Gottlieb and others, Ed Enright, Editor, Down Beat magazine, 102 North Haven Road, Elmhurst, IL 60126-3370.
"The Faces of Jazz," by W. Royal Stokes, Civilization, vol. 2, no. 5, September-October 1995, Civilizaton, Attn. Managing Editor, 666 Pennsylvania Ave. SE, Suite 303, Washington, D.C. 20003. Reproduced by permission. All rights reserved.
Credit Line: William P. Gottlieb/Ira and Leonore S. Gershwin Fund Collection, Music Division, Library of Congress.
If you are searching for a specific term on loc.gov (for example: https://www.loc.gov/photos/?q=Adams+Morgan) and would like to download the first image for each result of this search, use the following instructions. They closely mirror the instructions in "How do I retrieve the urls for images corresponding to an item on LOC.gov?" with several small differences.
Please note: