Feature Requests item #3571517, was opened at 2012-09-25 07:04
Message generated for change (Tracker Item Submitted) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=357151…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: featured
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: adding bot varable for NewpagesPageGenerator()
Initial Comment:
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]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=357151…