Fetch excerpt from Wikipedia article?

Posted by Felix on Stack Overflow See other posts from Stack Overflow or by Felix
Published on 2010-04-01T12:28:16Z Indexed on 2010/04/02 11:33 UTC
Read the original article Hit count: 441

Filed under:
|
|

I've been up and down the Wikipedia API, but I can't figure out if there's a nice way to fetch the excerpt of an article (usually the first paragraph). It would be nice to get the HTML formatting of that paragraph, too.

The only way I currently see of getting something that resembles a snippet is by performing a fulltext search (example), but that's not really what I want (too short).

Is there any other way to fetch the first paragraph of a Wikipedia article than barbarically parsing HTML/WikiText?

© Stack Overflow or respective owner

Related posts about wikipedia

Related posts about api