https://bugzilla.wikimedia.org/show_bug.cgi?id=56347
Web browser: --- Bug ID: 56347 Summary: RandomPageGenerator returns max 10 pages Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: mpaa.wiki@gmail.com Classification: Unclassified Mobile Platform: ---
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]
https://bugzilla.wikimedia.org/show_bug.cgi?id=56347
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |info@gno.de
https://bugzilla.wikimedia.org/show_bug.cgi?id=56347
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|Pywikipedia-bugs@lists.wiki |info@gno.de |media.org |
pywikipedia-bugs@lists.wikimedia.org