I am having a perplexing problem trying to retrieve a list of querypage 
results.  The problem is that when I access the API from a script, I can 
only retrieve 1000 results from the API, while if I use exactly the same 
query manually in a browser, I can retrieve up to 5000 results.  Here is an 
example of the query:

http://simple.wikipedia.org/w/api.php?action=query&list=querypage&qppage=Disambiguations&qpoffset=900&qplimit=100&format=jsonfm

When I put this query into Firefox manually, it returns the expected 100 
results, plus a "query-continue" key.  However, when I run exactly the same 
query from a Python script, it returns the same 100 results, but no 
"query-continue".  (When qpoffset is less than 900, the script *does* return 
the "query-continue" key, the problem only occurs when trying to go past 
offset 1000.)

The _only_ difference I can identify between the two queries is that the 
browser is doing an HTTP GET, while the Python script is doing an HTTP POST. 
Everything else is identical, which I have verified by logging the queries 
sent and responses received by the script and comparing them to my manual 
queries.

Should GET vs. POST make a difference in the results returned by 
list=querypage?  I've never seen this happen on any other type of API query.

If that's not it, is there any other possible explanation?





_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to