{ "info": { "author": "Attila Ol\u00e1h", "author_email": "attilaolah@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries" ], "description": "Python Diffbot_ API\n===================\n\n.. image:: https://d2weczhvl823v0.cloudfront.net/attilaolah/diffbot.py/trend.png\n :target: https://bitdeli.com/free\n :alt: Bitdeli\n.. image:: https://travis-ci.org/attilaolah/diffbot.py.png?branch=master\n :target: https://travis-ci.org/attilaolah/diffbot.py\n :alt: Build Status\n.. image:: https://coveralls.io/repos/attilaolah/diffbot.py/badge.png?branch=master\n :target: https://coveralls.io/r/attilaolah/diffbot.py\n :alt: Coverage Status\n\nHow to use it:\n--------------\n\n.. code:: python\n\n >>> import diffbot\n >>> json_result = diffbot.article('https://github.com', token='\u2026')\n\nThe above simple example is a shortcut for using the ``diffbot.Client``\nclass.\n\n.. code:: python\n\n >>> import diffbot\n >>> client = diffbot.Client(token='\u2026')\n >>> json_result = client.article('https://github.com')\n\nThe above calls are shortcuts for using the ``diffbot.api()`` function\nand the ``diffbot.Client.api`` method:\n\n.. code:: python\n\n >>> import diffbot\n >>> client = diffbot.Client(token='\u2026')\n >>> json_result = client.api('article', 'https://github.com')\n\nTo ``POST`` data (text or HTML) to the API, use the ``text`` or ``html``\narguments:\n\n.. code:: python\n\n >>> import diffbot\n >>> client = diffbot.Client(token='\u2026')\n >>> json_result = client.api('article', 'https://github.com', html='''\n ...
We want to kick off 2014 with a bang, so today we're happy to launch\n ... traffic analytics!
\n ... ''')\n\nCommand line interface:\n-----------------------\n\n.. code:: sh\n\n $ python diffbot.py -h\n usage: diffbot.py [-h] [-a] [-f FILE] api url token\n\n positional arguments:\n api API to call. One one of 'article', 'frontpage',\n 'product', 'image', 'analyze' or 'discussion'.\n url URL to pass as the 'url' parameter.\n token API key (token). Get one at https://www.diffbot.com/.\n\n optional arguments:\n -h, --help show this help message and exit\n -a, --all Request all fields.\n -f FILE, --file FILE File to read data from. Use '-' to read from STDIN.\n\n $ python diffbot.py article https://github.com TOKEN\n\nOutput of the above example:\n\n.. code:: json\n\n {\n \"icon\": \"https://github.com:443/apple-touch-icon-144.png\",\n \"sections\": [\n \u2026\n ],\n \"title\": \"Build software better, together.\",\n \"url\": \"https://github.com/\"\n }\n\nFeatures:\n---------\n\n- Python 2+3 support\n- Google App Engine support\n- Requests_ support (but no dependency)\n- Passes ``pyflakes``, ``pep8``, ``flake8``, ``pylint`` score 10/10\n- Simple & small (1 file, <200 LOC)\n- Command line interface\n\n.. _Diffbot: https://www.diffbot.com\n.. _Requests: http://docs.python-requests.org\n.. _`100% test coverage`: https://coveralls.io/r/attilaolah/diffbot.py", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/attilaolah/diffbot.py", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "diffbot", "package_url": "https://pypi.org/project/diffbot/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/diffbot/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/attilaolah/diffbot.py" }, "release_url": "https://pypi.org/project/diffbot/2.0.0/", "requires_dist": null, "requires_python": null, "summary": "Python client for the Diffbot API.", "version": "2.0.0" }, "last_serial": 1547114, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "45037aa10dc44470744067a11e34e5a1", "sha256": "f1abf1092184eef60f55b68393a151d33f5c827b283440d8a8751a3f589ca789" }, "downloads": -1, "filename": "diffbot-0.1.tar.gz", "has_sig": false, "md5_digest": "45037aa10dc44470744067a11e34e5a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1479, "upload_time": "2012-07-21T17:34:54", "url": "https://files.pythonhosted.org/packages/71/ee/edf82d4b52fab25ff46fffa6a969cb581db335dd13cfbe3c6864ca6ae399/diffbot-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "33c7ab2588113a3faf9f4fe542895b58", "sha256": "f0b0371b7273bdbcec1040a7e8a1f8c596c971f2eacc7aefd5f774ec61956491" }, "downloads": -1, "filename": "diffbot-0.2.tar.gz", "has_sig": false, "md5_digest": "33c7ab2588113a3faf9f4fe542895b58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1745, "upload_time": "2012-08-01T14:58:49", "url": "https://files.pythonhosted.org/packages/d9/54/292fc063a660ac383f83a1e2345d15faff97c374492dd34e77a44fb77600/diffbot-0.2.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "1c127b7245277360a898cb6b57ab482a", "sha256": "4611ac1285bf9dad3c3fe4529f820d7737f3b68f5879f82dba639ac749a169b9" }, "downloads": -1, "filename": "diffbot-1.1.2.tar.gz", "has_sig": false, "md5_digest": "1c127b7245277360a898cb6b57ab482a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4345, "upload_time": "2014-02-20T08:29:49", "url": "https://files.pythonhosted.org/packages/a3/12/e48a3912ab6270316008d7b45b26b5d575c34cc9c300b2430146cb10413d/diffbot-1.1.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "69579a9f5a1ec507b1133465ee30d8ff", "sha256": "4595e8ab49f3ec83371393a3830b71079ea3f44dc3425960fb6941cb2a87121b" }, "downloads": -1, "filename": "diffbot-2.0.0.tar.gz", "has_sig": false, "md5_digest": "69579a9f5a1ec507b1133465ee30d8ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5081, "upload_time": "2015-05-14T14:35:58", "url": "https://files.pythonhosted.org/packages/58/2a/1ce67e6c321c3747994eef325afe433641baacd9071cbe7a6902fb147890/diffbot-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "69579a9f5a1ec507b1133465ee30d8ff", "sha256": "4595e8ab49f3ec83371393a3830b71079ea3f44dc3425960fb6941cb2a87121b" }, "downloads": -1, "filename": "diffbot-2.0.0.tar.gz", "has_sig": false, "md5_digest": "69579a9f5a1ec507b1133465ee30d8ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5081, "upload_time": "2015-05-14T14:35:58", "url": "https://files.pythonhosted.org/packages/58/2a/1ce67e6c321c3747994eef325afe433641baacd9071cbe7a6902fb147890/diffbot-2.0.0.tar.gz" } ] }