Simple wrapper for the Mediawiki API
Project description
# MediaWiki API
This MIT Licensed library provides a very simple convenience wrapper around the [MediaWiki API](http://www.mediawiki.org/wiki/API). and includes support for authenticated sessions.
See http://pythonhosted.org/mwapi for complete documentation.
## Example usage
>>> import mwapi >>> >>> session = mwapi.Session('https://en.wikipedia.org') >>> >>> print(session.get(action='query', meta='userinfo')) {'query': {'userinfo': {'anon': '', 'name': '75.72.203.28', 'id': 0}}, 'batchcomplete': ''} >>> >>> print(session.get(action='query', prop='revisions', revids=32423425)) {'query': {'pages': {'1429626': {'ns': 0, 'revisions': [{'user': 'Wknight94', 'parentid': 32276615, 'comment': '/* References */ Removing less-specific cat', 'revid': 32423425, 'timestamp': '2005-12-23T00:07:17Z'}], 'title': 'Grigol Ordzhonikidze', 'pageid': 1429626}}}, 'batchcomplete': ''}
## Authors * YuviPanda – https://github.com/yuvipanda * Aaron Halfaker – https://github.com/halfak
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
mwapi-0.3.1.zip
(9.2 kB
view details)
mwapi-0.3.1.tar.gz
(5.0 kB
view details)
File details
Details for the file mwapi-0.3.1.zip
.
File metadata
- Download URL: mwapi-0.3.1.zip
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a89222de4ef0c256a6b6c290d603e81cf6cb9bacaf34f0e0b249edc709bd22 |
|
MD5 | ea9f35ca5aff0de2a0109aad1a4e2b3b |
|
BLAKE2b-256 | 70d94f5afb7a373c64743a80414da2d83132545c9b36ae94139e23bc29d0de9e |
File details
Details for the file mwapi-0.3.1.tar.gz
.
File metadata
- Download URL: mwapi-0.3.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eecfc61203a311cd3059c17843334c837cce306d5f028c73c132a260750e5786 |
|
MD5 | f6ef99ae49e8aae2f4f23c59a3542628 |
|
BLAKE2b-256 | 6a7f3a2c0b69956b328d9adb04f3aedd51e4ecea137cfba6d213350d45f32dd9 |