import pywikibot from pywikibot import pagegenerators s = pywikibot.getSite('no', 'wiktionary') gen = pagegenerators.RandomPageGenerator(number=100, site=s) for p in gen: print p
If number > 10, max 10 pages are returned.
"query-continue" is not supported by random query, as assumed by QueryGenerator.iter() [see https://www.mediawiki.org/wiki/API:Random]
Version: core-(2.0)
Severity: normal