ok, thanks. Will try that. Do you have any suggestions on improving the performance of action=render? I found that the first call for Einstein's page took several seconds (subsequent calls, of course, were cached and were faster)...

Thanks
Anand

On Fri, Mar 12, 2010 at 4:58 PM, Roan Kattouw <roan.kattouw@gmail.com> wrote:
2010/3/13 Anand Ramanathan <rcanand@gmail.com>:
> Sorry, that didnt really work - I got a set of results, the first of which
> is an image of Einstein's house in Princeton:
> http://en.wikipedia.org/w/api.php?action=query&prop=images&titles=Albert%20Einstein&format=xml
> I want the first result to be the one in the infobox on the Einstein page,
> which does appear before the image of his house. Is there a way to sort
> images based on location in the page? Maybe that is to use action=render,
> with blacklist dictionary for standard images?
The results on prop=images are not sorted by appearance (presumably
they're sorted by title or page ID), so yes, you should probably use
action=render for that. Grabbing the first image after <div
id="column-content"> should also help.

Roan Kattouw (Catrope)

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api