{ "info": { "author": "Taras Lehinevych", "author_email": "mediawikiapi@taraslehinevych.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries" ], "description": "MediaWikiAPI\n===================\n\n[![PyPI version](https://img.shields.io/pypi/v/mediawikiapi.svg)](https://pypi.python.org/pypi/mediawikiapi)\n[![Version](https://img.shields.io/pypi/pyversions/mediawikiapi.svg)](https://pypi.python.org/pypi/mediawikiapi)\n[![Build Status](https://travis-ci.org/lehinevych/MediaWikiAPI.svg?branch=master)](https://travis-ci.org/lehinevych/MediaWikiAPI)\n[![GitHub Issues](https://img.shields.io/github/issues/lehinevych/MediaWikiAPI.svg)](https://github.com/lehinevych/MediaWikiAPI/issues)\n[![License](https://img.shields.io/badge/license-MIT%20License-brightgreen.svg)](https://opensource.org/licenses/MIT)\n[![Docs](https://readthedocs.org/projects/mediawikiapi/badge/?version=latest)\n\n\n**MediaWikiAPI** is a Python library that makes it easy to access and parse\ndata from Wikipedia.\n\nSearch Wikipedia, get article summaries, get data like links and images\nfrom a page, and more. Wikipedia wraps the `MediaWiki\nAPI `__ so you can focus on using\nWikipedia data, not getting it.\n\n``` python\n>>> from mediawikiapi import MediaWikiAPI\n>>> mediawikiapi = MediaWikiAPI()\n>>> print mediawikiapi.summary(\"Wikipedia\")\n# Wikipedia (/\u02ccw\u026ak\u0268\u02c8pi\u02d0di\u0259/ or /\u02ccw\u026aki\u02c8pi\u02d0di\u0259/ WIK-i-PEE-dee-\u0259) is a collaboratively edited, multilingual, free Internet encyclopedia supported by the non-profit Wikimedia Foundation...\n\n>>> mediawikiapi.search(\"Barack\")\n# [u'Barak (given name)', u'Barack Obama', u'Barack (brandy)', u'Presidency of Barack Obama', u'Family of Barack Obama', u'First inauguration of Barack Obama', u'Barack Obama presidential campaign, 2008', u'Barack Obama, Sr.', u'Barack Obama citizenship conspiracy theories', u'Presidential transition of Barack Obama']\n\n>>> ny = mediawikiapi.page(\"New York (state)\")\n>>> ny.title\n# u'New York (state)'\n>>> ny.url\n# u'http://en.wikipedia.org/wiki/New_York_(state)'\n>>> ny.content\n# u'New York is a state in the northeastern United States. New York was one of the original thir'...\n>>> ny.links[0]\n# u'1790 United States Census'\n\n>>> mediawikiapi.config.language = \"fr\"\n>>> mediawikiapi.summary(\"Facebook\", sentences=1)\n# Facebook est un service de r\u00e9seautage social en ligne sur Internet permettant d'y publier des informations (photographies, liens, textes, etc.) en contr\u00f4lant leur visibilit\u00e9 par diff\u00e9rentes cat\u00e9gories de personnes.\n```\n\nInstallation\n------------\n\nTo install MediaWikiAPI, simply run:\n\n``` bash\npip install mediawikiapi\n```\nMediaWikiAPI is compatible with Python 3 and Python 2.7.\n\n\nChangelog\n-------------\n[Changelog](http://mediawikiapi.readthedocs.io/en/latest/changelog.html) could be find in the documentation.\n\n\nDocumentation\n-------------\nThe documentation is available [here](http://mediawikiapi.readthedocs.io/en/latest/)\n\n\nTo run tests, clone the `repository on GitHub `__, then run:\n\n```bash\npip install -r requirements.txt\nbash runtests # will run tests for python and python3\npython -m unittest discover tests/ '*test.py' # manual style\n```\nin the root project directory.\n\nTo build the documentation yourself, after installing requirements.txt, run:\n\n``` bash\npip install sphinx\ncd docs/\nmake html\n```\n\nLicense\n-------\n\nMIT licensed. See the `LICENSE\nfile `__ for\nfull details.\n\nCredits\n-------\n- @goldsmith for making such a fantastic library to fork", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lehinevych/MediaWikiAPI", "keywords": "python wikipedia API mediawiki", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mediawikiapi", "package_url": "https://pypi.org/project/mediawikiapi/", "platform": "", "project_url": "https://pypi.org/project/mediawikiapi/", "project_urls": { "Homepage": "https://github.com/lehinevych/MediaWikiAPI" }, "release_url": "https://pypi.org/project/mediawikiapi/1.1.4.1/", "requires_dist": null, "requires_python": "", "summary": "Wikipedia API on Python", "version": "1.1.4.1" }, "last_serial": 5944670, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "b9a0059a460e328b6a301e9d7fe8dad9", "sha256": "273e45b89fb77e3a698673d67ec51f8e96fe61fb752f1a63bf931453939b1200" }, "downloads": -1, "filename": "mediawikiapi-1.0.tar.gz", "has_sig": false, "md5_digest": "b9a0059a460e328b6a301e9d7fe8dad9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11404, "upload_time": "2017-01-27T22:21:59", "url": "https://files.pythonhosted.org/packages/46/4f/8c39726596fb1aca0ad5293fe5c295ef65869291bc3bbadc52f1193df8ee/mediawikiapi-1.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "515d7df09e78986570d9e6eda63d0717", "sha256": "9bc868756783f9813f6f234feb34df33a3c923834ac273864a619a0522c18266" }, "downloads": -1, "filename": "mediawikiapi-1.1.0.tar.gz", "has_sig": false, "md5_digest": "515d7df09e78986570d9e6eda63d0717", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12533, "upload_time": "2018-01-14T15:17:55", "url": "https://files.pythonhosted.org/packages/86/5b/4a3ebb548a7a65d5d89d2c24ada48601e5b9d196f7d268c5d37ab4889824/mediawikiapi-1.1.0.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "9d2b92cbecebf6a32669d9f15b942b0e", "sha256": "0301471fba560c7b7e5639e629b87161194052697dd346ce47e266938323588a" }, "downloads": -1, "filename": "mediawikiapi-1.1.3.tar.gz", "has_sig": false, "md5_digest": "9d2b92cbecebf6a32669d9f15b942b0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12836, "upload_time": "2018-07-13T10:20:56", "url": "https://files.pythonhosted.org/packages/a9/5f/342cc8fc813ebc9c2ff3f8128b149afa59c9180cbabc107e893a8ef271d0/mediawikiapi-1.1.3.tar.gz" } ], "1.1.4.1": [ { "comment_text": "", "digests": { "md5": "af19f00bb2761767fc41391f9926f7a7", "sha256": "34aac384b1dbac054a4236ffc382db9bb2696f7084fc2dcd2bd8a855c80ae329" }, "downloads": -1, "filename": "mediawikiapi-1.1.4.1.tar.gz", "has_sig": false, "md5_digest": "af19f00bb2761767fc41391f9926f7a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14649, "upload_time": "2019-10-08T12:53:08", "url": "https://files.pythonhosted.org/packages/0d/af/63d57a0a6eb0783e1d2e3f15c27ff625f6505053c19b34b5423177901db0/mediawikiapi-1.1.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af19f00bb2761767fc41391f9926f7a7", "sha256": "34aac384b1dbac054a4236ffc382db9bb2696f7084fc2dcd2bd8a855c80ae329" }, "downloads": -1, "filename": "mediawikiapi-1.1.4.1.tar.gz", "has_sig": false, "md5_digest": "af19f00bb2761767fc41391f9926f7a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14649, "upload_time": "2019-10-08T12:53:08", "url": "https://files.pythonhosted.org/packages/0d/af/63d57a0a6eb0783e1d2e3f15c27ff625f6505053c19b34b5423177901db0/mediawikiapi-1.1.4.1.tar.gz" } ] }