On 2 January 2013 16:42, BinĂ¡ris <[email protected]> wrote:
> Or do we have any part of it, e.g. determining the size of a picture?

I think you will need to parse the parsed wikitext for this, e.g.

http://nl.wikipedia.org/w/api.php?action=parse&page=1600/1800_(locomotieftype)&format=jsonfm

which gives you
<img alt="Locomotief 1604 &quot;Dordrecht&quot; van Railion te Utrecht
Centraal" 
src="//upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Railion_1604.jpg/266px-Railion_1604.jpg"
width="266" height="200"
srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Railion_1604.jpg/399px-Railion_1604.jpg
1.5x, 
//upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Railion_1604.jpg/532px-Railion_1604.jpg
2x" /></a></td>\n</tr>\n<tr>\n<td align="center" colspan="3">

then you have to re-parse the URL to an image name, and get the data
for that image.

Merlijn

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to