On Fri, Apr 29, 2011 at 10:32 PM, Siteshwar Vashisht siteshwar@gmail.com wrote:
Hi all,
I'm trying to fetch list of all images from an article. I'm using this query:
http://en.wikipedia.org/w/api.php?action=parse&page=Norway&prop=imag...
This query works; however as you can see in the result; first image item is an .ogg file. Is it a bug in MediaWiki ?
No. MediaWiki does not distinguish between images, videos, PDFs and other files.
What's the preferred query to fetch list of images from an article ?
http://en.wikipedia.org/w/api.php?action=query&titles=Norway&prop=im...
Also list of images contains logos of Wiki sites like Wikimedia commons. It may be expected; but is there a way to remove them ?
Filter them out by hand?
Roan Kattouw (Catrope)