{ "info": { "author": "Evan Sherlock", "author_email": "egsherlock@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "===========\nnytimesarticle\n===========\n\nnytimesarticle is a fully-functional Python wrapper for the New York Times Article Search API. \n\n\nInstallation\n=========\n\nWith pip::\n\n $ pip install nytimesarticle\n\nor easy_install::\n\n $ easy_install nytimesarticle\n\n\nDependencies\n=========\n\nnytimesarticle requires the `requests `_ package.\n\n\nUsage\n=========\n\nSimply import and initialize the API with your developer key::\n\n $ from nytimesarticle import articleAPI\n $ api = articleAPI('*Your Key*')\n\nAnd call the 'search' function with your desired search parameters/values::\n\n $ articles = api.search( q = 'Obama', fq = {'headline':'Obama', 'source':['Reuters','AP', 'The New York Times']}, begin_date = 20111231, facet_field = ['source','day_of_week'], facet_filter = True )\n\nThe search function returns a dictionary of the search results.\n\nYou can specify multiple filters by using a dictionary::\n fq = {'headline':'Obama', 'source':['Reuters','AP', 'The New York Times']}\n\nAnd multiple values by using a list::\n facet_field = ['source','day_of_week']\n\nMore examples::\n\n $ articles = api.search( q = 'Obama' )\n\n $ articles = api.search( q = 'Obama', begin_date = 20111231, page=2 )\n\n\nFor a complete overview of the available search parameters, please refer to the NYTimes Article Search API `Documentation `_.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/evansherlock/nytimesarticle", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "nytimesarticle", "package_url": "https://pypi.org/project/nytimesarticle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nytimesarticle/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/evansherlock/nytimesarticle" }, "release_url": "https://pypi.org/project/nytimesarticle/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Fully-functional Python wrapper for the New York Times Article Search API", "version": "0.1.0" }, "last_serial": 960762, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a5cec1cea641edc1824d301756a07f17", "sha256": "ddda8e843f7ae63df9f6352bcb3ac5775543bc8518abc7140ca9be5b4fc9d21d" }, "downloads": -1, "filename": "nytimesarticle-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a5cec1cea641edc1824d301756a07f17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3207, "upload_time": "2014-01-04T22:55:58", "url": "https://files.pythonhosted.org/packages/7f/50/39166f22eef593bae07415d11976c2c4e7bc6fdfcbc6bdf2d42b4a088b7a/nytimesarticle-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a5cec1cea641edc1824d301756a07f17", "sha256": "ddda8e843f7ae63df9f6352bcb3ac5775543bc8518abc7140ca9be5b4fc9d21d" }, "downloads": -1, "filename": "nytimesarticle-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a5cec1cea641edc1824d301756a07f17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3207, "upload_time": "2014-01-04T22:55:58", "url": "https://files.pythonhosted.org/packages/7f/50/39166f22eef593bae07415d11976c2c4e7bc6fdfcbc6bdf2d42b4a088b7a/nytimesarticle-0.1.0.tar.gz" } ] }