Hello all,
I'm looking to get imageinfo type information for two different revisions of the same page.
I'm thought the following would work: (revids are both for the page on Yogi Berra)
http://en.wikipedia.org/w/api.php?action=query&format=xml&prop=image...
http://en.wikipedia.org/w/api.php?action=query&format=xml&prop=image...
However both these queries give me the same response. Something I'm doing wrong? How should I go about doing this?
Abhishek ------------ http://abhishek.mit.edu
Hi,
the prop=images query uses the imagelinks table[1] that doesn't store information about old revisions.
The only place where the information you want is still present is the actual text of the old revision. I think your only chance is to retrieve that text and parse it yourself, looking for the images.
[1]: http://www.mediawiki.org/wiki/Manual:Imagelinks_table
Petr Onderka [[User:Svick]]
On Sun, Jan 8, 2012 at 12:44, Abhishek abhishek.nagaraj@gmail.com wrote:
Hello all,
I'm looking to get imageinfo type information for two different revisions of the same page.
I'm thought the following would work: (revids are both for the page on Yogi Berra)
http://en.wikipedia.org/w/api.php?action=query&format=xml&prop=image...
http://en.wikipedia.org/w/api.php?action=query&format=xml&prop=image...
However both these queries give me the same response. Something I'm doing wrong? How should I go about doing this?
Abhishek
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On 08/01/12 13:07, Petr Onderka wrote:
Hi,
the prop=images query uses the imagelinks table[1] that doesn't store information about old revisions.
The only place where the information you want is still present is the actual text of the old revision. I think your only chance is to retrieve that text and parse it yourself, looking for the images.
Actually, he could request the API to parse it for him and return the images: * http://en.wikipedia.org/w/api.php?action=parse&format=xml&prop=image... * http://en.wikipedia.org/w/api.php?action=parse&format=xml&prop=image...
Note however that this is an expensive operation for the servers.
mediawiki-api@lists.wikimedia.org