On Thu, Feb 17, 2011 at 5:46 AM, Andrew Chapman hatmandu@gmail.com wrote:
I'm trying to work out how to get a list of all categories a page is in, including the sizes of those categories.
If I do this:
http://en.wikipedia.org/w/api.php?action=query&prop=categories&cllim...
I get all the categories, but no info about their size. But if I do this:
http://en.wikipedia.org/w/api.php?action=query&generator=categories&...
I get all the size info, but only the first 10 categories.
It looks like the answer is to use the continue option (cicontinue?) but I don't understand how to do that. Sorry if this is a dumb question - can someone clarify. Thanks! Andrew
you put whatever is in the continue as a parameter, so:
http://en.wikipedia.org/w/api.php?action=query&generator=categories&...