Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/david-r-cox/nytimesarchive
Python wrapper for the New York Times Archive API
https://github.com/david-r-cox/nytimesarchive
Last synced: about 2 months ago
JSON representation
Python wrapper for the New York Times Archive API
- Host: GitHub
- URL: https://github.com/david-r-cox/nytimesarchive
- Owner: david-r-cox
- Created: 2016-11-18T02:12:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-25T00:45:20.000Z (about 3 years ago)
- Last Synced: 2023-10-20T00:39:08.227Z (about 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nytimesarchive
Python wrapper for the New York Times [Archive API](https://developer.nytimes.com/archive_api.json).## Note
As of 11/17/2016, the NYT Developers [page](https://developer.nytimes.com/) lists the Archive API as being in alpha status.
## Usage
The Archive API provides JSON format NYT articles by month.
```python
from nytimesarchive import ArchiveAPI
api = ArchiveAPI('your api key goes here')
print(api.query(2016, 11))
```Articles are available from September 1851 onward.
## Article API
For the [Article API](https://developer.nytimes.com/article_search_v2.json), see Evan Scherlock's [nytimesarticle](https://github.com/evansherlock/nytimesarticle).