Skip to main content
Version: v5

publication_documents

Download one, or more, USDA ERS publication Full Report PDFs.

This command returns only the results portion of the OBBject response. It contains a list of dictionaries where the base64 encoded content of the document is under the 'content' key.

Examples​

from openbb import obb
obb.usda.publication_documents(provider='usda', urls=['https://www.ers.usda.gov/publications/115092'])
# Download the latest Livestock, Dairy, and Poultry Outlook.
rows = obb.usda.publications(series='LDPM').to_df()
pdfs = obb.usda.publication_documents(urls=[rows.iloc[0]['url']])

Parameters​


Returns​

Any​

Data​