[Mediawiki-api] Retrieving image URLs?
Kelly Jones
kelly.terry.jones at gmail.com
Sun Jan 20 18:22:50 UTC 2008
When I retrieve this page:
http://wiki.lspace.org/api.php?action=query&prop=revisions&titles=Image:Cover_The_Last_Hero.jpg&rvprop=timestamp|content&format=xml
I get this:
<?xml version="1.0" encoding="utf-8"?><api><query><normalized><n
from="Image:Cover_The_Last_Hero.jpg" to="Image:Cover The Last
Hero.jpg" /></normalized><pages><page pageid="4963" ns="6"
title="Image:Cover The Last
Hero.jpg"><revisions><revtimestamp="2008-01-20T13:54:58Z">Illustrated
by Paul Kidby
In other words, even though I requested the 'content' of the page, I
don't get the URL to the image itself.
By visiting the page normally:
http://wiki.lspace.org/wiki/Image:Cover_The_Last_Hero.jpg
I learned that the image URL is
"http://wiki.lspace.org/uploads/4/4e/Cover_The_Last_Hero.jpg".
Is there any way to obtain that URL using the Mediawiki API?
--
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
More information about the Mediawiki-api
mailing list