Utente:Sirbot/Script: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
→monitoraggioimmagini.py modificato: sistemo.. |
→monitoraggioimmagini.py modificato: dimenticavo |
||
Riga 46:
continue
newTalkText = re.sub('\|\n? *?[Ii]mmagini= *?\n', '|[Ii]mmagini=d\n', talkText)
if not always:
choice = wikipedia.inputChoice(u"Apply the changes?", ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') else:
choice = 'y'
if choice in ['A', 'a']:
always = True
choice = 'y'
if choice in ['Y', 'y']:
try:
page.put(newTalkText, u'Bot: Non ci sono immagini: valutazione "d"')
except Wikipedia.Error, e:
wikipedia.output(e) # Print the error and skip
continue
if __name__ == "__main__":
|