Skip to content

Instantly share code, notes, and snippets.

@davidcomfort
Last active December 13, 2015 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcomfort/30a806666cbb1633ee59 to your computer and use it in GitHub Desktop.
Save davidcomfort/30a806666cbb1633ee59 to your computer and use it in GitHub Desktop.
# load nytimesarticle
from nytimesarticle import articleAPI
api = articleAPI('84560bf8f9b679d672a82dcf1a3ee2a2:9:21130963')
articles = api.search(q = 'Ben Carson',
fq = {'headline':'Ben Carson', 'source':['The New York Times']},
begin_date = '2015' + '0101',
end_date = '2015' + '1231',
sort='oldest',
page = 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment