jwiki is a simple Java client library wrapping the MediaWiki Web API. It can be used by developers to create bots and tools, or to perform analytics on just about any Wiki.
- Perform actions, such as edit, delete, and upload (using chunked uploads).
- Perform queries, such as getting category members, getting links on a page, and getting template transclusions.
- Support for popular MediaWiki extensions, including CentralAuth and GlobalUsage.
- Main class: Wiki.java
- Recipe Book/Cheatsheet
- Javadocs
jwiki is available via bintray/jcenter
Maven:
<dependency>
<groupId>fastily</groupId>
<artifactId>jwiki</artifactId>
<version>1.3.0</version>
<type>pom</type>
</dependency>
Gradle:
compile 'fastily:jwiki:1.3.0'
jwiki is intended to be a simple, reliable, and low-overhead framework for anybody seeking to make use of the MediaWiki API. Emphasis is placed on:
- Simplicity - Complex objects and functions are abstracted into the background so that anybody, regardless of Java experience, will be able to use jwiki.
- Speed - Network calls, local computation, and memory usage are optimized and kept at a minimum, so as to enhance performance and reduce overhead.
- Succinctness - Most complex API actions can be performed in jwiki using one line of local code consisting of simple objects and primitive types.