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@lists.wikimedia.org wrote:
Send Mediawiki-api mailing list submissions to mediawiki-api@lists.wikimedia.org
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@lists.wikimedia.org
You can reach the person managing the list at mediawiki-api-owner@lists.wikimedia.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Mediawiki-api digest..."
Today's Topics:
- Wrong result (sherry.ummen@gmail.com)
- Re: Wrong result (John)
Message: 1 Date: Sun, 01 May 2016 20:38:10 +0000 From: "sherry.ummen@gmail.com" sherry.ummen@gmail.com To: "mediawiki-api@lists.wikimedia.org" mediawiki-api@lists.wikimedia.org Subject: [Mediawiki-api] Wrong result Message-ID: <CABKw4GEpYpT4dw=GdeCw5G= SNN7vn2eeGhgtQr48MiCLBvQ2Vg@mail.gmail.com> 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
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@gmail.com sherry.ummen@gmail.com 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@lists.wikimedia.org wrote:
Send Mediawiki-api mailing list submissions to mediawiki-api@lists.wikimedia.org
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@lists.wikimedia.org
You can reach the person managing the list at mediawiki-api-owner@lists.wikimedia.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Mediawiki-api digest..."
Today's Topics:
- Wrong result (sherry.ummen@gmail.com)
- Re: Wrong result (John)
Message: 1 Date: Sun, 01 May 2016 20:38:10 +0000 From: "sherry.ummen@gmail.com" sherry.ummen@gmail.com To: "mediawiki-api@lists.wikimedia.org" mediawiki-api@lists.wikimedia.org Subject: [Mediawiki-api] Wrong result Message-ID:
CABKw4GEpYpT4dw=GdeCw5G=SNN7vn2eeGhgtQr48MiCLBvQ2Vg@mail.gmail.com 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
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@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
On Mon, May 2, 2016 at 3:25 PM, sherry.ummen@gmail.com javascript:; <sherry.ummen@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@lists.wikimedia.org
wrote:
Send Mediawiki-api mailing list submissions to mediawiki-api@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@lists.wikimedia.org javascript:;
You can reach the person managing the list at mediawiki-api-owner@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:
- Wrong result (sherry.ummen@gmail.com javascript:;)
- Re: Wrong result (John)
Message: 1 Date: Sun, 01 May 2016 20:38:10 +0000 From: "sherry.ummen@gmail.com javascript:;" <sherry.ummen@gmail.com
To: "mediawiki-api@lists.wikimedia.org javascript:;" <mediawiki-api@lists.wikimedia.org javascript:;> Subject: [Mediawiki-api] Wrong result Message-ID:
<CABKw4GEpYpT4dw=GdeCw5G=SNN7vn2eeGhgtQr48MiCLBvQ2Vg@mail.gmail.com
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
mediawiki-api@lists.wikimedia.org