User:Rybecbot

Category:Commons bots#Rybecbot Category:Commons pywikibot bots#Rybecbot Category:Commons upload bots#Rybecbot Category:Commons bots with public source code
File:TOSY DiscoRobo 04.JPG
This is a bot account. Its operator can be reached at User_talk:Rybec.

Tasks

Removal of irrelevant categories

This task will be done with the standard pywikipedia category.py or replace.py scripts.

Watermark removal

One batch of around 1400 files was edited. This task is not currently being done.

This bot is approved to automatically re-upload files which have been cropped to remove watermarks. It makes no more than two uploads or four edits per minute. It is run intermittently. It uses the pywikipediabot replace.py script with no changes, and the upload.py script with the following changes to allow unattended re-uploading:


--- upload.py.orig      2011-11-29 20:00:13.000000000 +0000
+++ upload.py.modified  2013-03-22 20:54:41.409844613 +0000
@@ -83,7 +83,7 @@
 class UploadRobot:
     def __init__(self, url, urlEncoding=None, description=u'',
                  useFilename=None, keepFilename=False, verifyDescription=True,
-                 ignoreWarning=False, targetSite=None, uploadByUrl=False):
+                 ignoreWarning=True, targetSite=None, uploadByUrl=False):
         """
         @param ignoreWarning: Set this to True if you want to upload even if
             another file would be overwritten or another mistake would be
@@ -232,13 +232,6 @@
         pywikibot.output(self.description)
         if self.verifyDescription:
             newDescription = u''
-            choice = pywikibot.inputChoice(
-                u'Do you want to change this description?',
-                ['Yes', 'No'], ['y', 'N'], 'n')
-            if choice == 'y':
-                import editarticle
-                editor = editarticle.TextEditor()
-                newDescription = editor.edit(self.description)
             # if user saved / didn't press Cancel
             if newDescription:
                 self.description = newDescription
Category:Commons bots Category:Commons bots with public source code Category:Commons pywikibot bots Category:Commons upload bots Category:User pages with broken file links