From Wikimedia Commons, the free media repository
Jump to: navigation, search
Bot This user account is a pywiki-based bot operated by Rybec (talk).

It is not a sock puppet, but rather an automated or semi-automated account for making repetitive edits that would be extremely tedious to do manually.
Administrators: if this bot is malfunctioning or causing harm, please block it.

taskscontribscountlogspage moves block userblock logflag logglobal contribs flag bot

File:TOSY DiscoRobo 04.JPG
This is a bot account. Its operator can be reached at User_talk:Rybec.


Removal of irrelevant categories[edit]

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

Watermark removal[edit]

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 script with no changes, and the script with the following changes to allow unattended re-uploading:

---      2011-11-29 20:00:13.000000000 +0000
+++  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 @@
         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