Usage
Last updated
Last updated
You can easily import this library using:
Then you can simply add your API key (get your API key from The New York Times Dev Portal):
Make sure that if you commit your code to GitHub you don't accidentially commit your API key.
The following parameters can be set, only the key
parameter is required.
key
The API key from
str
True
None
https
Use
bool
False
True
session
Optionally set your own request.session
requests.sessions.Session
False
requests.Session()
backoff
Enable
bool
False
True
user_agent
Set the
str
False
pynytimes/[version]
parse_dates
Enable the parsing of dates into datetime.datetime
or datetime.date
objects
bool
False
False