How to use Wikipedia api in android [closed]

2019-07-17 19:18发布

I'm developing an app to get Location name then put it into a googlemap and display that location wiki page . I tied to search but There is some phonegap android app .

My question is : Is there any Wiki API for android native app to get and search information ? and how to implement it ?

2条回答
戒情不戒烟
2楼-- · 2019-07-17 19:40

If you can not find a usable api, you can use JSoup to parse wikipedia and return relevant information or you can build a url based on user's input and implement a webview

查看更多
该账号已被封号
3楼-- · 2019-07-17 19:42

I did a Google search for wiki API and it brought me here:

http://www.mediawiki.org/wiki/API:Main_page

It is not specifically for android but it should be able to work for you. An example:

http://en.wikipedia.org/w/api.php?format=json&action=query&titles=API&prop=revisions&rvprop=content

查看更多
登录 后发表回答