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.2.2.zip
(7.3 kB
view details)
mwapi-0.2.2.tar.gz
(4.4 kB
view details)
Built Distribution
mwapi-0.2.2-py3.4.egg
(10.7 kB
view details)
File details
Details for the file mwapi-0.2.2.zip
.
File metadata
- Download URL: mwapi-0.2.2.zip
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a2ed807e6e478328cdb1aab5dd033baf625d6c067be98092bf7a7886d223eb |
|
MD5 | dbb46af29e29c8b12ce3907ea1faea0d |
|
BLAKE2b-256 | 84eb1e0fbbb81fab870002c28e375a6b21aa89356730e4f962f2caf1b4fc88e5 |
File details
Details for the file mwapi-0.2.2.tar.gz
.
File metadata
- Download URL: mwapi-0.2.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3c4bad0f9ea110ba3528ee9fee2035a41148fc8c62e00e7c44b7de4caffb14c |
|
MD5 | 97d24bd5d90cd5bf7d3833335756dda9 |
|
BLAKE2b-256 | e21f090de5c924dc8d73baa8b054c1100afce8de705db096ed32fb957c331685 |
File details
Details for the file mwapi-0.2.2-py3.4.egg
.
File metadata
- Download URL: mwapi-0.2.2-py3.4.egg
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.26.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c93feee01fa35c1aede0d744820675e527d6fecda0058210de785e185cea1d2 |
|
MD5 | fdc1c18bc2dfb56731511a397da5ec5e |
|
BLAKE2b-256 | 5bae05262fa42aa95ad6debaab56d6c482cc88c62026dc88273ed3154a1c061d |