hi Platonides,
Many thanks for your fast response
about the text, what I am looking for is a json response with inside
only the main description, and not all the page without css,
about the image I tried to use the first as the main one, but the
service retrieve the images on alphabetic order, from time to time the
first image is very far from the topic you search. (Es if I look for
Italy I'd like to see the fleg of the nation and not the face of some
politician)
regards
Marco
On 22 Feb 2009, at 16:05, Platonides wrote:
marco tanzi wrote:
Hi guys,
I am writing a ruby application to retrieve the wikipedia data: the
main
description and the main image (the one on the box in the left side).
As parameter I have the cruid of the wiki page, so I call the wiki
API
to get the data, now start the problems:
You're probably better asking for
http://en.wikipedia.org/w/index.php?title=Foo&action=render or
http://en.wikipedia.org/w/index.php?oldid=52780&action=render
Treat the first image as the one you want.
You can get plain text by removing anything between < > (and undoing
entitites).
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api