Requests-NBER
Requests-NBER is a custom Requests class to log onto NBER.org, the website of the National Bureau of Economic Research.
Installation
$ pip install requests_nber
Documentation
Detailed documentation available at www.erinhengel.com/software/requests-nber.
Quickstart
The NBER class logs onto NBER.org 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']
'10.3386/t0001'
>>> biblio['author']
'Seppo Honkapohja and Takatoshi Ito'
Metadata
Release files for requests-nber 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| requests-nber-0.0.1.tar.gz | 3.8 kB | Without provenance | Details for requests-nber-0.0.1.tar.gz |
Release files / requests-nber-0.0.1.tar.gz
| Download URL | requests-nber-0.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cc0b900631684ae5738fda137c6d3bc9a7a1fbdd97bc3977ed6a3da5b4b8b02
|
|
BLAKE2b-256 checksum How to use checksums |
61d15ab476780d9b68a76a0525a56d2bb568ad22667d7bcc171f85da64cd5a75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for requests-nber 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.