{ "info": { "author": "Xolani Mazibuko", "author_email": "mazi76erx@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "==============\nMention-Python\n==============\n\n.. image:: https://img.shields.io/pypi/v/MentionAPI.svg\n :target: https://pypi.python.org/pypi/MentionAPI\n\n.. image:: https://travis-ci.org/mazi76erX2/mention-python.svg?branch=master\n :target: https://travis-ci.org/mazi76erX2/mention-python\n\n.. image:: https://codecov.io/gh/mazi76erX2/mention-python/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/mazi76erX2/mention-python\n\n.. image:: https://readthedocs.org/projects/mention-python/badge/?version=latest\n :target: https://mention-python.readthedocs.org/en/latest\n\n**A Python wrapper around the Mention API.**\n\nInstallation\n------------\n\n.. code-block:: console\n\n $ python3 -m pip install mention\n\n\n.. code-block:: python\n\n >>> from mention import FetchAMentionAPI\n >>> first_mention = FetchAMentionAPI('access_token', 'account_id', 'alert_id', 'mention_id')\n\n >>> first_mention_data = first_mention.query()\n\n >>> title = first_mention_data['title']\n\nExamples\n--------\n\n**Fetch all alerts of an account**\n\n.. code-block:: python\n\n >>> allAlerts = mention.FetchAlertsAPI(access_token, account_id)\n\n >>> data = nandosAlert.query()\n\n >>> alertsList = data['alerts']\t\n >>> alertsList[5]['alert']['name']\n 'Nandos'\t\t\t \t\t\t\n\n >>> data['alert']['query']['included_keywords']\n ['Nandos', 'Flame-grilled Chicken', 'Peri-Peri Sauce']\n\n**Fetch a mention**\n\n.. code-block:: python\n\n >>> nandosMention = mention.FetchAMentionAPI(access_token, account_id, alert_id, mention_id)\n\n >>> data = nandosMention.query()\n\n >>> data['title']\t\t\t\t\t \t\t\t\n \"Nando's launches their own food ordering app\"\n\n >>> data['description']\t\t\t\t \t\t\t\n \"Nando's has launched their own app that will allow people to order their favourite meal from the comfort \n ...\tof their own home.\"\n\n >>> data['original_url']\t\t\t\t \t\t\t\n 'https:\\/\\/www.iol.co.za\\/business-report\\/technology\\/nandos-launches-their-own-food-\n ...\tordering-app-18378360'\n\n**Read More**\n\n - `Full Documentation`_\n - `Installation`_\n - `Basic Usage`_\n - `Contributing`_\n\n.. _Full Documentation: http:///mention-python.readthedocs.org/en/latest/\n.. _Installation: http://mention-python.readthedocs.org/en/latest/pages/installation.html\n.. _Basic Usage: http:///mention-python.readthedocs.org/en/latest/pages/quickstart.html\n.. _Contributing: http:///mention-python.readthedocs.org/en/latest/pages/contributing.html\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mazi76erX2/mention-python", "keywords": "mention api examples", "license": "", "maintainer": "", "maintainer_email": "", "name": "mention", "package_url": "https://pypi.org/project/mention/", "platform": "", "project_url": "https://pypi.org/project/mention/", "project_urls": { "Coverage": "https://codecov.io/gh/mazi76erX2/mention-python", "Documentation": "https://mention-python.readthedocs.io/en/latest/", "Homepage": "https://github.com/mazi76erX2/mention-python", "Source Code": "https://github.com/mazi76erX2/mention-python" }, "release_url": "https://pypi.org/project/mention/0.1/", "requires_dist": [ "requests", "requests-oauth2 (>=0.3.0)" ], "requires_python": "", "summary": "A Python wrapper around the Mention API.", "version": "0.1" }, "last_serial": 4625141, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d63c7cf7c648fc69f71dc680a0020e02", "sha256": "786cf064a982f5d9745eb8332fa7f0eef06b4e9e7cec26468c1b529fbf1482e1" }, "downloads": -1, "filename": "mention-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d63c7cf7c648fc69f71dc680a0020e02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8012, "upload_time": "2018-12-21T13:36:13", "url": "https://files.pythonhosted.org/packages/3c/7f/6d1ea6010fd86aead9ff97fbbecbe174b3bf54ed6498202e302d4f6671f3/mention-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96a2187a3846094769392685936a8109", "sha256": "998db351380060ad5ca20d844398cbf5a5eac447bd809a3abbb0c9929f034a2a" }, "downloads": -1, "filename": "mention-0.1.tar.gz", "has_sig": false, "md5_digest": "96a2187a3846094769392685936a8109", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6657, "upload_time": "2018-12-21T13:36:15", "url": "https://files.pythonhosted.org/packages/3b/87/2b44c801232d8e5f3ba057dcc97d90c5f4dad90d3480be544e826cc8d2a4/mention-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d63c7cf7c648fc69f71dc680a0020e02", "sha256": "786cf064a982f5d9745eb8332fa7f0eef06b4e9e7cec26468c1b529fbf1482e1" }, "downloads": -1, "filename": "mention-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d63c7cf7c648fc69f71dc680a0020e02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8012, "upload_time": "2018-12-21T13:36:13", "url": "https://files.pythonhosted.org/packages/3c/7f/6d1ea6010fd86aead9ff97fbbecbe174b3bf54ed6498202e302d4f6671f3/mention-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96a2187a3846094769392685936a8109", "sha256": "998db351380060ad5ca20d844398cbf5a5eac447bd809a3abbb0c9929f034a2a" }, "downloads": -1, "filename": "mention-0.1.tar.gz", "has_sig": false, "md5_digest": "96a2187a3846094769392685936a8109", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6657, "upload_time": "2018-12-21T13:36:15", "url": "https://files.pythonhosted.org/packages/3b/87/2b44c801232d8e5f3ba057dcc97d90c5f4dad90d3480be544e826cc8d2a4/mention-0.1.tar.gz" } ] }