http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10453
Revision: 10453 Author: russblau Date: 2012-07-13 23:53:11 +0000 (Fri, 13 Jul 2012) Log Message: ----------- Fix SearchPageGenerator parameters.
Modified Paths: -------------- branches/rewrite/pywikibot/pagegenerators.py
Modified: branches/rewrite/pywikibot/pagegenerators.py =================================================================== --- branches/rewrite/pywikibot/pagegenerators.py 2012-07-09 13:18:08 UTC (rev 10452) +++ branches/rewrite/pywikibot/pagegenerators.py 2012-07-13 23:53:11 UTC (rev 10453) @@ -887,13 +887,13 @@ total=total, content=False): yield page
-def SearchPageGenerator(query, number = 100, namespaces = None, site = None): +def SearchPageGenerator(query, ste=None, total=None, namespaces=None, site=None): """ Provides a list of results using the internal MediaWiki search engine """ if site is None: site = pywikibot.Site() - for page in site.search(query, number=number, namespaces = namespaces): + for page in site.search(query, step=step, total=total, namespaces=namespaces): yield page
# following classes just ported from version 1 without revision; not tested
pywikipedia-svn@lists.wikimedia.org