Progetto:Bot/Programmi in Python per i bot/CategorieAutoriPer.py: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Creata nuova pagina: <syntaxhighlight lang="python"> #!/usr/bin/python # -*- coding: utf-8 -*- import pywikibot as wikipedia, re from pywikibot import pagegenera...
 
Nessun oggetto della modifica
 
Riga 24:
if not cat.exists():
#print u'creo categoria: ' + catname + '_______' + testo
cat.put(testo, comment=u'Bot - CategorieAutoriPer.py: creo categoria')
else:
if not auto:
Riga 32:
choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No'], ['y', 'N'], 'y')
if choice == 'y':
cat.put(testo, comment=u'Bot - CategorieAutoriPer.py (manual mode): aggiorno categoria')
return True
 
 
def main():