Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
268 views
in Technique[技术] by (71.8m points)

mediawiki - Is there any API in Java to access wikipedia data

I want to know: is there any API or a query interface through which I can access Wikipedia data?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Mediawiki, the wiki platform that wikipedia uses does have an HTTP based API. See MediaWiki API.

For example, to get pages with the title stackoverflow, you call

http://en.wikipedia.org/w/api.php?action=query&titles=Stackoverflow

There are some (incomplete) Java wrappers around the API - see the Client Code - Java section of the API page for more detail.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...