Skip to content

CBMcArthur/MediaWiki-Java-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

MediaWiki-Java-API

This is a basic, partial implementation of MediaWiki.org's API in Java. It is an almost complete rewrite of the code of this project created 5+ years ago.

Functionality

  • WikiPages.java
    • getPageContent: Retrieve a specified article's content, including wiki-markup.
    • getEditPage: Retrieve article content and other data needed for editing a page.
    • saveEditPage: Save a page, using data from getEditPage() and modified page contents.
  • WikiCategories
    • In progress

Configuration

By default this API is configured to interact with Wikipedia with an user agent specific to this API. The following variables can be changed to alter this default configuration:

  • WikiPages.baseUrl: This specifies the Wiki site to interact with (Default: https://en.wikipedia.com/w)
  • WikiPages.userAgent: This specifies the user agent HTTP requests uses. This should be set to contain information about your bot and not a copy/paste of a web browser's user agent.

Dependencies

About

My (partial) implementation of MediaWiki.org's API in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages