[Mediawiki-api] parse wikipedia

marco tanzi tanzi.marco at gmail.com
Fri Feb 20 17:45:22 UTC 2009


Hi folks,

I am trying to work with the wikipedia API and i am having some little  
problems :-)

I can fetch the main description of the topic i am looking for using:

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&rvsection=0&format=json&pageids=wiki_id

I received a correct json object, but the content of the revision is  
full of data I do not need like {{....}} [[...]] ecc. I would like to  
get only the clean description, only text (like the one visible from  
the wiki website).

How can I do that? there is some parser to clean my json object?

hope someone could help me out|!


kind regards
Marco



More information about the Mediawiki-api mailing list