What Peter highlighted is that the mediawiki API pages results, when you
make a request you should page thru all results
On Monday, May 2, 2016, Petr Onderka <gsvick(a)gmail.com> wrote:
No, it's not about paging in your app, it's
about paging of the API
results. [1]
In the case of this specific query, it's enough just to raise the
limit by adding imlimit=max to the query [2],
but in general, you should specify the limit and also follow continue.
Petr Onderka
User:Svick
[1]:
https://www.mediawiki.org/wiki/API:Query#Continuing_queries
[2]:
https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids…
On Mon, May 2, 2016 at 3:25 PM, sherry.ummen(a)gmail.com <javascript:;>
<sherry.ummen(a)gmail.com <javascript:;>> wrote:
Hi John,
I have not decided yet whether to do any paging logic in my app (if thats
what you are asking).
But I want to get the whole list of images from all the pages in the
query
and then I need to do some filtration.
-Sherry
On Mon, 2 May 2016 at 15:01 <mediawiki-api-request(a)lists.wikimedia.org
<javascript:;>>
wrote:
>
> Send Mediawiki-api mailing list submissions to
> mediawiki-api(a)lists.wikimedia.org <javascript:;>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
> or, via email, send a message with subject or body 'help' to
> mediawiki-api-request(a)lists.wikimedia.org <javascript:;>
>
> You can reach the person managing the list at
> mediawiki-api-owner(a)lists.wikimedia.org <javascript:;>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mediawiki-api digest..."
>
>
> Today's Topics:
>
> 1. Wrong result (sherry.ummen(a)gmail.com <javascript:;>)
> 2. Re: Wrong result (John)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 01 May 2016 20:38:10 +0000
> From: "sherry.ummen(a)gmail.com <javascript:;>"
<sherry.ummen(a)gmail.com
<javascript:;>>
> To: "mediawiki-api(a)lists.wikimedia.org
<javascript:;>"
> <mediawiki-api(a)lists.wikimedia.org <javascript:;>>
> Subject: [Mediawiki-api] Wrong result
> Message-ID:
>
> <CABKw4GEpYpT4dw=GdeCw5G=SNN7vn2eeGhgtQr48MiCLBvQ2Vg(a)mail.gmail.com
<javascript:;>>
> Content-Type: text/plain;
charset="utf-8"
>
> hello,
>
> if i run following query :
>
>
>
https://en.wikipedia.org/w/api.php?action=query&prop=images&pageids…
>>
>> I do not get images for all the pageids. I am not sure what is worn in
>> this
>> query.
>>
>> If I use single pageid then I get expected result.
>>
>> Please suggest or help!
>>
>> -Sherry
>>