Skip to main content

Requests wrapper to log onto

Project description

Requests-NBER is a custom Requests class to log onto, the website of the National Bureau of Economic Research.


$ pip install requests_nber


Detailed documentation available at


The NBER class logs onto and establishes a connection with the host. Contains a session attribute that returns a Request Session object with all the methods of the main Requests API.

>>> import requests_nber

# Establish NBER connection object.
>>> deets = {'username': 'someuser', 'password': 'XXXX'}
>>> conn = requests_nber.NBER(login=deets)

# Download the HTML of the paper with document id t1.
>>> doc_id = 't1'
>>> html = conn.html(id=doc_id)

# Download the document PDF.
>>> pdf = conn.pdf(id=doc_id, file='article.pdf')

# Download the bibliographic information.
>>> biblio = conn.ref(id=doc_id)
>>> biblio['doi']
>>> biblio['author']
'Seppo Honkapohja and Takatoshi Ito'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for requests-nber, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size requests-nber-0.0.1.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page