Hi folks,
I would like to know if it is possible to retrieve from a wikipedia
page
only the main description and, if it is available, the image.
For example I would like to get only the main description and the
image
of the U2 band from
http://en.wikipedia.org/wiki/index.html?curid=52780
.
How can I do this? I looked on the Wikipedia API
(
http://en.wikipedia.org/w/api.php) but I haven't found nothing that
feet my needs.
It would be great if there is a web service that retrieve an XML/JSON
object with this data
This simply returns everything before the first == Section == header.
As for the image: there's no such thing as *the* image belonging to a
page. You can get all images on a page, of course, using
(Note that these two queries can also be combined by using
prop=revisions|images .)
Roan Kattouw (Catrope)
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org