/jwiki

📖 A library for effortlessly interacting with Wikipedia/MediaWiki

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

jwiki

Build Status JDK-1.8+ MediaWiki 1.31+ License: GPL v3 Patreon

Programmatically accessing Wikipedia/MediaWiki via the API is hard ☹️. I thought it didn't have to be, so I made it easy 😀. jwiki lets you perform all sorts of crazy API calls with 1️⃣ line of Java.

Yes, one line.

It's so easy that anyone (including your grandma 👵🏻) can write an application that works with MediaWiki.

Not convinced? Try out the examples.

Download

jwiki is on jcenter.

Maven

<dependency>
  <groupId>fastily</groupId>
  <artifactId>jwiki</artifactId>
  <version>1.6.0</version>
  <type>pom</type>
</dependency>

Gradle

compile 'fastily:jwiki:1.6.0'

Build

Build and publish jwiki on your local machine with

./gradlew build publishToMavenLocal

Logging

Using the system property: ColorLogOldMode from comand line, will be used the normal logging way, without will be used SLF4J logging.

  • -DColorLogOldMode for normal logging way
  • -Dlog4j.configuration="file:PATH\OF\FILE\log4j.properties" for slf4j logging using an external properties file

Resources

Support

If you like jwiki, then please consider becoming a patreon sponsor!

Please use issues for bug reports and/or feature requests.