/MediaWiki-Action-API-Code-Samples

Code snippets in Python demonstrating how to use various modules of the MediaWiki Action API

Primary LanguagePythonMIT LicenseMIT

MediaWiki Action API Code Samples

Code snippets in Python demonstrating how to use various modules of the MediaWiki Action API

Authentication

Accounts and users

Page Operations

Search

Basics

Demo apps

Installation

$ git clone https://github.com/srish/MediaWiki_Action_API_Code_Samples
$ cd MediaWiki-Action-API-Code-Samples
Install the necessary python modules with pip
$ python3 name_of_the_file.py #Enter any credentials if required in the file

Contributing code samples

First, propose an idea for a code sample, demo app, etc. by creating an issue around it in the repository. After discussing your idea with the repo contributors, start working, and then send a pull request, when you've your changes ready to be accepted/ merged! You can autogenerate python files for GET Requests demos where feasible by following the instructions below:

$ cd MediaWiki-Action-API-Code-Samples
$ Add module information to `modules.json`
$ cd python
$ python autogenerator.py
$ Make desired changes to the newly generated file(s)