Revision: 8601 Author: russblau Date: 2010-10-01 15:34:39 +0000 (Fri, 01 Oct 2010)
Log Message: ----------- Fix LinksearchPageGenerator
Modified Paths: -------------- branches/rewrite/pywikibot/pagegenerators.py
Modified: branches/rewrite/pywikibot/pagegenerators.py =================================================================== --- branches/rewrite/pywikibot/pagegenerators.py 2010-09-28 10:31:32 UTC (rev 8600) +++ branches/rewrite/pywikibot/pagegenerators.py 2010-10-01 15:34:39 UTC (rev 8601) @@ -878,14 +878,16 @@ for page, length in site.shortpages(number=number, repeat=repeat): yield page
-def LinksearchPageGenerator(link, limit=None, site=None): +def LinksearchPageGenerator(link, namespaces=None, step=None, total=None, + site=None): """Yields all pages that include a specified link, according to [[Special:Linksearch]].
""" if site is None: site = pywikibot.Site() - for page in site.linksearch(link, limit=limit): + for page in site.exturlusage(link, namespaces=namespaces, step=step, + total=total, content=False): yield page
def SearchPageGenerator(query, number = 100, namespaces = None, site = None):