wikipedia – PyPI

Wikipedia is a Python library that makes it easy to access and parsedata from Wikipedia.

Search Wikipedia, get article summaries, get data like links and imagesfrom a page, and more. Wikipedia wraps the MediaWikiAPI so you can focus on usingWikipedia data, not getting it.

Note: this library was designed for ease of use and simplicity, not for advanced use. If you plan on doing serious scraping or automated requests, please use Pywikipediabot (or one of the other more advanced Python MediaWiki API wrappers), which has a larger API, rate limiting, and other features so we can be considerate of the MediaWiki infrastructure.

To install Wikipedia, simply run:

Wikipedia is compatible with Python 2.6+ (2.7+ to run unittest discover) and Python 3.3+.

Read the docs at https://wikipedia.readthedocs.org/en/latest/.

To run tests, clone the respository on GitHub, then run:

in the root project directory.

To build the documentation yourself, after installing requirements.txt, run:

MIT licensed. See the LICENSEfile forfull details.

Here is the original post:
wikipedia - PyPI

Related Posts

Comments are closed.