వాడుకరి:Vyzbot/vyzreplace.py
Jump to navigation
Jump to search
#!/usr/bin/python # -*- coding: utf-8 -*- """this is Vyzbot. """ import wikipedia, pagegenerators, catlib import sys, touch, replace, string, category, login, os s=wikipedia.Site('te') login.LoginManager('xxxxx', False, s) #replace xxxxx with bot's password reptext=[(u'కృష్ణm raju', u'కృష్ణంరాజు'), (u'S. rajeswar rao', u'సాళూరి రాజేశ్వరరావు'), (u'Ghantasala', u'ఘంటసాల వెంకటేశ్వరరావు'), (u'Roja', u'రోజా'), (u'Dasari narayanarao', u'దాసరి నారాయణరావు'), (u'Dasari narayana rao', u'దాసరి నారాయణరావు'), (u'Sridevi', u'శ్రీదేవి'),] exceptions= [] acceptall = True start='!' namespace = None myPagegen=pagegenerators.AllpagesPageGenerator(start, namespace) ''' # in long comments this is another variation to get pages in a specific category reptext=[(u'Wikipedia basic information', u'వికీపీడియా మౌళిక సమాచారము'),] oldCatTitle=u'Wikipedia basic information' newCatTitle=u'వికీపీడియా మౌళిక సమాచారము' exceptions= [] acceptall = True start='!' namespace = u'Category' inPlace = False myPagegen=pagegenerators.CategorizedPageGenerator(oldCatTitle, recurse = False) ''' vyzrep=replace.ReplaceRobot(myPagegen, reptext, exceptions, acceptall) vyzrep.run() wikipedia.stopme()