[Mediawiki-api] Wikipedia - wikitext to normal text
marco tanzi
tanzi.marco at gmail.com
Fri Feb 20 18:16:25 UTC 2009
Hi Roan,
first I want to say you thank one more time for yours helpful
suggestions.
Now 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).
I'm trying to find a regex pattern but without good results...
How can I do that? there is some parser to clean my json object?
hope someone could help me out|!
kind regards
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20090220/720da4af/attachment.htm
More information about the Mediawiki-api
mailing list