Hi Brad,
You're searching for the continue parameter as "apfrom", but this was
changed to "apcontinue" a while back. Changing line 162 to something
like this should probably do it:
m = re.findall(r'<allpages (?:apfrom|apcontinue)="([^>]+)" />', xml)
Note that for full correctness, you probably should omit both apfrom
and apcontinue entirely from params the first time around, and send
back whichever of the two is found by the above line in subsequent
queries.
Also, why in the world aren't you using an XML parser (or a JSON
parser with format=json) to process the API response instead of trying
to parse the XML using regular expressions?!
> It's completely broken:_______________________________________________
> https://code.google.com/p/wikiteam/issues/detail?id=56
> It will download only a fraction of the wiki, 500 pages at most per
> namespace.
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api