Last modified: 2013-11-11 05:57:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58347, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56347 - RandomPageGenerator returns max 10 pages
RandomPageGenerator returns max 10 pages
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Normal normal
: ---
Assigned To: xqt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-29 21:25 UTC by Mpaa
Modified: 2013-11-11 05:57 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mpaa 2013-10-29 21:25:57 UTC
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]
Comment 1 Gerrit Notification Bot 2013-11-02 16:34:40 UTC
Change 93167 had a related patch set uploaded by Xqt:
(Bug 56347) Enable RandomPageGenerator() and site.randompages returning more than 10 pages

https://gerrit.wikimedia.org/r/93167
Comment 2 Gerrit Notification Bot 2013-11-11 05:57:14 UTC
Change 93167 merged by jenkins-bot:
(Bug 56347) Enable RandomPageGenerator() and site.randompages returning more than 10 pages

https://gerrit.wikimedia.org/r/93167

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links