/wiki-java

A MediaWiki bot framework in Java

Primary LanguageJavaGNU Affero General Public License v3.0AGPL-3.0

Wiki.java

codecov.io

A Java wiki bot framework that is only one file -- org/wikipedia/Wiki.java. Some functionality provided by MediaWiki extensions deployed on Wikimedia sites is available in org/wikipedia/WMFWiki.java. This project also contains the source code to the tools hosted at https://wikipediatools.appspot.com and other Wikipedia-related bits and pieces. Requires JDK >= 21. For those using modules, only the java.base, java.net.http and java.logging modules are required.

Latest stable version: 0.38 -- MediaWiki versions 1.39+

Dependencies

Class/Package Java MediaWiki extensions
org.wikipedia.Wiki None None
org.wikipedia.WMFWiki(Farm) None As indicated. Works on WMF sites.
org.wikipedia.*Utils None None
org.wikipedia.tools.* None See below.
org.wikipedia.servlets.* javax.servlet See below.

Note: Some tools and all servlets are hardcoded to work on WMF sites only, and in some cases for just the English Wikipedia. (Some tools solve en.wp specific problems). They should all work on WMF sites. If you would like tool coverage for your wiki, please file a bug report.

Bug reports

Bug reports may be filed in the Issue tracker or at my talk page. Please read this essay on filing bug reports effectively if you are not already familiar with its contents. Bugs regarding bot things should have a short test case that demonstrates the problem. Before reporting character encoding problems, please display the output in a JOptionPane to isolate your development environment.

Licenses

Documentation