jidanni(a)jidanni.org schreef:
Gentlemen, the challenge: produce the equivalent of
$ php dumpBackup.php --current
(or Special:Export of all the pages on the wiki)
via the API.
OK, something like
api.php?action=query&generator=allpages&gaplimit=max&export&exportnowrap
but is there a way to do all the namespaces in one query, or must we do
one query for each gapnamespace?
If you want to be sure you get everything, you have to do each
gapnamespace separately *and* omit &exportnowrap so you'll get a
query-continue (in case there's a namespace with more than 500/5000 pages).
Roan Kattouw (Catrope)