https://bugzilla.wikimedia.org/show_bug.cgi?id=55028
Web browser: --- Bug ID: 55028 Summary: adding bot varable for NewpagesPageGenerator() Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/316/ Reported by: reza1615 Created on: 2012-09-25 14:04:52 Subject: adding bot varable for NewpagesPageGenerator() Original description: I don't have developer acount In pagegenerator.NewpagesPageGenerator() llike wikipedia.newpages() please add bot variable In pagegenerator.py it need replace line 562-571 with this code
def NewpagesPageGenerator(number=100, repeat=False, site=None, namespace=0,bot=True): """ Iterate Page objects for all new titles in a single namespace. """ # defaults to namespace 0 because that's how Special:Newpages defaults if site is None: site = pywikibot.getSite() if bot: for item in site.newpages(number=number, repeat=repeat, namespace=namespace, rcshow=['!redirect']): yield item[0] else: for item in site.newpages(number=number, repeat=repeat, namespace=namespace, rcshow=['!bot','!redirect']): yield item[0]
https://bugzilla.wikimedia.org/show_bug.cgi?id=55028
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/316
https://bugzilla.wikimedia.org/show_bug.cgi?id=55028
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |info@gno.de Component|General |pagegenerators
https://bugzilla.wikimedia.org/show_bug.cgi?id=55028
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|adding bot varable for |adding 'bot' argument for |NewpagesPageGenerator() |NewpagesPageGenerator()
pywikipedia-bugs@lists.wikimedia.org