{"id":23140620,"url":"https://github.com/WolfgangFahl/Mediawiki-Japi","last_synced_at":"2025-08-17T13:31:30.893Z","repository":{"id":25259937,"uuid":"28685091","full_name":"WolfgangFahl/Mediawiki-Japi","owner":"WolfgangFahl","description":"Client for Mediawiki Api","archived":false,"fork":false,"pushed_at":"2022-01-04T16:39:08.000Z","size":3643,"stargazers_count":11,"open_issues_count":6,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-09T16:25:38.592Z","etag":null,"topics":["java","mediawiki","mediawiki-api","mediawiki-api-wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WolfgangFahl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-01T11:02:48.000Z","updated_at":"2024-06-06T17:11:38.000Z","dependencies_parsed_at":"2022-08-23T22:10:19.081Z","dependency_job_id":null,"html_url":"https://github.com/WolfgangFahl/Mediawiki-Japi","commit_stats":null,"previous_names":["wolfgangfahl/jmediawiki"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolfgangFahl%2FMediawiki-Japi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolfgangFahl%2FMediawiki-Japi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolfgangFahl%2FMediawiki-Japi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolfgangFahl%2FMediawiki-Japi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WolfgangFahl","download_url":"https://codeload.github.com/WolfgangFahl/Mediawiki-Japi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230128501,"owners_count":18177599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","mediawiki","mediawiki-api","mediawiki-api-wrapper"],"created_at":"2024-12-17T14:10:49.066Z","updated_at":"2024-12-17T14:10:50.102Z","avatar_url":"https://github.com/WolfgangFahl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Mediawiki-Japi\n[Java library to call Mediawiki API described at http://www.mediawiki.org/wiki/API:Main_page](http://mediawiki-japi.bitplan.com/index.php/Main_Page)\n\n[![Travis (.org)](https://img.shields.io/travis/WolfgangFahl/Mediawiki-Japi.svg)](https://travis-ci.org/WolfgangFahl/Mediawiki-Japi)\n[![Maven Central](https://img.shields.io/maven-central/v/com.bitplan/mediawiki-japi.svg)](https://search.maven.org/artifact/com.bitplan/mediawiki-japi/0.2.3/jar)\n[![codecov](https://codecov.io/gh/WolfgangFahl/Mediawiki-Japi/branch/master/graph/badge.svg)](https://codecov.io/gh/WolfgangFahl/Mediawiki-Japi)\n[![GitHub issues](https://img.shields.io/github/issues/WolfgangFahl/Mediawiki-Japi.svg)](https://github.com/WolfgangFahl/Mediawiki-Japi/issues)\n[![GitHub issues](https://img.shields.io/github/issues-closed/WolfgangFahl/Mediawiki-Japi.svg)](https://github.com/WolfgangFahl/Mediawiki-Japi/issues/?q=is%3Aissue+is%3Aclosed)\n[![GitHub](https://img.shields.io/github/license/WolfgangFahl/Mediawiki-Japi.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![BITPlan](http://wiki.bitplan.com/images/wiki/thumb/3/38/BITPlanLogoFontLessTransparent.png/198px-BITPlanLogoFontLessTransparent.png)](http://www.bitplan.com)\n\n### Documentation\n* [Wiki](http://mediawiki-japi.bitplan.com/index.php/Main_Page)\n* [Mediawiki-Japi Project pages](https://WolfgangFahl.github.io/Mediawiki-Japi)\n* [Javadoc](https://WolfgangFahl.github.io/Mediawiki-Japi/apidocs/index.html)\n* [Test-Report](https://WolfgangFahl.github.io/Mediawiki-Japi/surefire-report.html)\n### Maven dependency\n\nMaven dependency\n```xml\n\u003c!-- Java library to call Mediawiki API described at http://www.mediawiki.org/wiki/API:Main_page http://mediawiki-japi.bitplan.com/index.php/Main_Page --\u003e\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.bitplan\u003c/groupId\u003e\n  \u003cartifactId\u003emediawiki-japi\u003c/artifactId\u003e\n  \u003cversion\u003e0.2.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n[Current release at repo1.maven.org](https://repo1.maven.org/maven2/com/bitplan/mediawiki-japi/0.2.3/)\n\n### How to build\n```\ngit clone https://github.com/WolfgangFahl/Mediawiki-Japi\ncd Mediawiki-Japi\nmvn install\n```\n### Status\n- Implemented Features are limited to what the test cases of the current version check\n- tests run against current wikipedia installations as well as 1.23.17,1.25.6,1.27.3 and 1.29.1 test wikis \n\n## Examples\nSee also [Examples](http://mediawiki-japi.bitplan.com/index.php/Examples) on the Mediawiki-Japi Wiki\n\n### Sample query:get a single page\nhttp://www.mediawiki.org/wiki/API:Query#Sample_query\n\n```java\n\tMediawiki wiki=new Mediawiki(\"http://en.wikipedia.org\");\n\tString content=wiki.getPageContent(\"Main Page\");\n```\n\n#### junit test\n```java\n  /**\n   * http://www.mediawiki.org/wiki/API:Query#Sample_query\n   * http://en.wikipedia.org/w/api.php?action=query\u0026prop=revisions\u0026rvprop=content\u0026titles=Main%20Page\u0026format=xml\n   * @throws Exception \n   */\n\t@Test\n\tpublic void testSampleQuery() throws Exception {\n\t\tMediawiki wiki=new Mediawiki(\"http://en.wikipedia.org\");\n\t\tString content=wiki.getPageContent(\"Main Page\");\n\t\tassertTrue(content.contains(\"Wikipedia\"));\n\t}\n```\n\n### login/logout\nhttp://www.mediawiki.org/wiki/API:Login\n\n```java\nLogin login=wiki.login(\"scott\",\"tiger\");\nwiki.logout();\n```\n\n#### junit test\n```java\n  /**\n\t * test Login and logout \n\t * see \u003ca href='http://www.mediawiki.org/wiki/API:Login'\u003eAPI:Login\u003c/a\u003e\n\t * @throws Exception\n\t */\n\t@Test\n\tpublic void testLogin() throws Exception {\n\t\tWikiUser wuser=WikiUser.getUser(\"mediawiki_org\");\n\t\tLogin login=wiki.login(wuser.getUsername(),wuser.getPassword());\n\t\tassertEquals(\"Success\",login.getResult());\n\t\tassertNotNull(login.getLguserid());\n\t\tassertEquals(wuser.getUsername(),login.getLgusername());\n\t\tassertNotNull(login.getLgtoken());\n\t\twiki.logout();\n\t}\n```\n## Design decisions\n[Jaxb-Generator](http://mediawiki-japi.bitplan.com/mediawiki-japi/index.php/Jaxbgenerator)\n\nThis is a semi-automatic process. The resulting java code needs to be adapted to be workable. For a start\n18 Java classes have been generated that allow some 19 JUnit tests to pass (to a total of 43 including the 24\nunit tests supplied with Wiki.java).\n\n## Version history\n* 0.0.1  - 2015-01-01: first version as JMediawiki\n* 0.0.2  - 2015-01-18: fixes issues #1 - #7\n* 0.0.3  - 2015-01-20: fixes issue #8 refactors to multi implementation approach with guice\n* 0.0.4  - 2015-04-05: adds section handling\n* 0.0.5  - 2015-06-14: improves section handling\n                       handles uploads in copyToWiki\n\t\t\t\t\t   fixes issue with test on en.wikipedia.org\n* 0.0.6  - 2015-07-02: fixes revprop handling\t\t\t\t\t\t\t\t\t\t\t\n* 0.0.7  - 2015-07-08: fixes #14 namespace handling in copy\n                       adds #15 - delete function\n* 0.0.8  - 2015-08-26: fixes #16 allImages support (timestamp based for the time being)  \n* 0.0.9  - 2015-10-10: fixes #17 to #18 and #19: ignore superfluous newlines in xml api results (if any)\n* 0.0.10 - 2015-10-12: fixes #20\n* 0.0.11 - 2015-11-09: fixes #21\n* 0.0.12 - 2016-01-09: fixes issues #21 to #24\n* 0.0.13 - 2016-01-19: fixes #25\n* 0.0.14 - 2016-03-12: fixes #26,#27\n* 0.0.15 - 2016-10-22: fixes #30,#31\n* 0.0.16 - 2016-11-16: fixes #32\n* 0.0.17 - 2016-11-16: fixes #33\n* 0.0.18 - 2016-11-17: fixes #34 upgrades to Jersey 1.19.3\n* 0.0.19 - 2017-05-30: pr #37 login to domain support\n           2017-08-24: adds travis build check\n* 0.0.20 - 2017-09-13: fixes #38\n* 0.0.21 - 2017-09-16: fixes #39\n* 0.1.01 - 2018-01-25: Java 8 and first steps for json support\n* 0.1.02 - 2018-08-20: fixes #40,#41  \n* 0.1.03 - 2019-03-20: merges #43\n* 0.1.04 - 2019      : not released to maven central\n* 0.1.05 - 2020-03-16: fixes #49 - adds command line mode and upgrades some dependencies\n* 0.2.0  - 2021      : not released to maven central\n* 0.2.1  - 2021-12-16: failed sonatype release\n* 0.2.2  - 2021-12-17: fixes log4j upgrade to 2.16.0\n* 0.2.3  - 2021-12-19: fixes log4j upgrade to 2.17.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWolfgangFahl%2FMediawiki-Japi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWolfgangFahl%2FMediawiki-Japi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWolfgangFahl%2FMediawiki-Japi/lists"}