Commons:Bots/Requests/Andrebot (2)

From Wikimedia Commons, the free media repository
Jump to: navigation, search


Operator:Andrei S. Talk

Bot's tasks for which permission is being sought: Massive upload of files from the Romanian language Wikipedia, in particular CC files uploaded to ro.wp by this user.

Automatic or manually assisted: Automatic, supervised by the operator.

Edit type (e.g. Continuous, daily, one time run): Intermittent run (manual start for each set of 10-50 images with similar names)

Maximum edit rate (eg edits per minute): 1-2 uploads per minute

Bot flag requested: (Y/N):Yes

Programming language(s): Python, script using the Pywikipediabot framework. Code follows:

Andrei S. Talk 07:33, 21 January 2010 (UTC)


I guess you took a look at, right? Looks good on first sight. Could you apply some logic to the author field? So if origauthor and uploader are the same produce something nicer. Also it wouldn't hurt to have {{Self|Cc-by-sa-2.5|author=the author}} to stress the author (this will also give nice a nice attribution field). Multichill (talk) 09:12, 21 January 2010 (UTC)

You're right, I did look into Pywikipediabot source code, to reuse as many parts of it as possible. I'll look into your suggestion tonight and I'll try to improve the author logic as well as the CC template.—Andrei S. Talk 10:13, 21 January 2010 (UTC)
Ok great. Please include a link to the original file somewhere. Multichill (talk) 10:23, 21 January 2010 (UTC)
I updated the code with added improvements. This is a test-file uploaded by the bot running the above code.
Image review process is done by manually analizing the file description page at ro.wikipedia. The purpose of this bot request are, in fact, the files uploaded by Utilizator:Țetcu Mircea Rareș, who appears to copy and paste the description page on those batches. All his files are licensed Cc-by-sa-2.5; if there are any exceptions, they won't be uploaded. To be sure, I'll add a bit of code to check for the Cc-by-sa-2.5 template and automatically skip the files whose description page doesn't contain it. For any other files at ro.wp, I think Commonshelper2 would do, but Mr Ţetcu's thousands of files are too many to handle one by one in a reasonable ammount of time and with a reasonable ammount of effort.
I think also will be good idea to ask authors of thumbnails/without EXIF/single upload too professional looking (which may be taken from Internet) to upload full resolution version. --EugeneZelenko (talk) 16:23, 23 January 2010 (UTC)
The script takes an argument (the third one), which is the name of a Commons category to be added to all the files. As the script will be run manually on command line for each batch of images, all the images will be from the same place and therefore can be categorized as such. The category will be added manually to the tree, as was the case with last night's test upload. This is all that the bot can do. Manually, using HotCat, I can later review and add some of them (that can be so added) to other categories, such as those in the Wooden churches in Romania subtree.
I admit that these pictures are rather poorly described, rather poorly titled and most of them are only of passable quality. We tried to talk to the uploader, but he has proven to be very touchy when it comes to any shade of a request for an improvement of his uploads. That said, the pictures are still valuable, because most of them are taken in remote villages of Romania, where people with a digital camera rarely set foot with the intent of visually documenting the place, and also most of the photos document old churches that are historical monuments. I am renaming his original filenames to a template like: RO XX Yyyyyy number.jpg, where RO means Romania, XX is the designation of the administrative division where the village is located, and Yyyyy is the name of the village. It isn't very descriptive, but I think it's the best I can do—I am open to any ideas, though.—Andrei S. Talk 15:41, 22 January 2010 (UTC)
May be you could create list of better file names during reviewing and give them for bot? I think acronyms should be replaced with full names. Will be good idea to replace numbers with subject (building, church, event, elephant (in case of African images), etc.) --EugeneZelenko (talk) 16:23, 23 January 2010 (UTC)
Sorry for the delayed answer. This enhancement needs a bit of extra coding and I don't have time at the moment. This weekend I'll be able to work on this.—Andrei S. Talk 19:33, 28 January 2010 (UTC)
OK, I put up the updated code. An example of the recent run is the files uploaded to Category:Urisiu de Sus. Now a file is read for extra wording to insert into the file name just before the number.—Andrei S. Talk 19:51, 7 February 2010 (UTC)
Thank you! Could you also replace acronyms with full name (RO -> Romania, etc.)? --EugeneZelenko (talk) 15:29, 9 February 2010 (UTC)
Yes, I'll keep that in mind. The script doesn't need to be changed for this; the new name template is provided as command line arguments.—Andrei S. Talk 17:39, 9 February 2010 (UTC)

  • If there is no objection, I think we should grant bot status. --EugeneZelenko (talk) 15:29, 10 February 2010 (UTC)