Skip to main content

MediaWiki API for Python

Project description

mediawiki is a python wrapper for the MediaWiki API. The goal is to allow users to quickly and efficiently pull data from the MediaWiki site of their choice instead of worrying about dealing directly with the API. As such, it does not force the use of a particular MediaWiki site. It defaults to Wikipedia but other MediaWiki sites can also be used.

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, advanced rate limiting, and other features so we may be considerate of the MediaWiki infrastructure.

Installation

To installing mediawiki, simply clone the repository on GitHub, then run from the folder:

$ python setup.py install

mediawiki supports python versions 2.7 and 3.3 - 3.5

In the future, it would be great if mediawiki were available to install using pip!

Automated Tests

To run automated tests, one must simply run the following command from the downloaded folder:

$ python setup.py test

Documentation

To build the documentation yourself run:

$ pip install sphinx
$ cd docs/
$ make html

Changelog

Please see the changelog for a list of all changes.

License

MIT licensed. See the LICENSE file for full details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymediawiki-0.3.4-py2.py3-none-any.whl (16.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pymediawiki-0.3.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pymediawiki-0.3.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9031ff37d8000b595d84405056f2578fb2063b9aaada952490499077e882b50d
MD5 c4a8a4bc23ac691b90abbad6c0e03218
BLAKE2b-256 a6fa55bdbfa36f20a4d541a4978d786e459040b8b7059aecdf56461c0a3ac0e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page