skip to navigation
skip to content

nytfrontpage 0.1.2

An API for downloading frontpages from the New York Times.

A small library to retrieve cover pages of the New York Times as images. Turns out the NYT hosts them and they’re all just sitting there. Who would have thought?


$ pip install nytfrontpage


Here’s an example, runnable from the included file:

#!/usr/bin/env python
# coding: utf-8
import sys
from datetime import date

import nytfrontpage

if __name__ == '__main__':
  today =
  print 'Fetching image contents...'
  image_contents = nytfrontpage.get_image_data(today)
  if image_contents:
    with open('frontpage.jpg', 'w') as f:
    print 'Successfully downloaded the frontpage.'
    print 'The frontpage image has not been posted yet.'
$ ./
$ open frontpage.jpg
File Type Py Version Uploaded on Size
nytfrontpage-0.1.2.tar.gz (md5) Source 2014-04-27 3KB
  • Downloads (All Versions):
  • 14 downloads in the last day
  • 49 downloads in the last week
  • 222 downloads in the last month