Commons:Bots/Requests/File Upload Bot (Mike Peel)

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

File Upload Bot (Mike Peel)

Operator: Mike Peel (talk)

Bot's tasks for which permission is being sought: Uploading the photographs from the Britain Loves Wikipedia competition. Users will be uploading photographs onto the custom website between now and mid-March; the plan is that they will then be transferred here automatically (using the upload API called from PHP code) once they have been approved by the museums. Uploading should be complete by the end of March, although it may continue beyond then. 560 photographs have been uploaded throughout February and March, and now need to be transferred. Some are still pending approval from the museums; others are held up in discussions with museums. Uploading should be done by the end of April.

Automatic or manually assisted: Automatic, supervised (upload is previewed before execution)

Edit type (e.g. Continuous, daily, one time run): Several runs; maximum of 560 images.

Maximum edit rate (eg edits per minute): 10

Bot flag requested: (Y/N): (Don't mind...)

Programming language(s): PHP

Mike Peel (talk) 13:00, 31 January 2010 (UTC)[reply]

Discussion

Thanks; I will do a test run as soon as I have everything set up, and some images to import. Hopefully later this week... Mike Peel (talk) 23:18, 1 February 2010 (UTC)[reply]
Just an update with this: it's rather taking longer than I hoped to get the photos cleared to upload here, which is delaying the test run. It is my intention to do a test run when I am able to... Mike Peel (talk) 08:17, 13 March 2010 (UTC)[reply]
Not yet, but soon hopefully. The delay is hearing back from the museums... sorry. Mike Peel (talk) 18:55, 30 March 2010 (UTC)[reply]

Test run uploads:

  • [1] first test, revealed some issues with wikicode formatting; subsequently fixed.
  • [2] Wikicode now works fine.
  • [3] Code did not identify that there was already a file there; edit reverted and code modified.
  • [4] Code now auto-appends a number after the title if the file already exists (iterating the number until it locates one that's valid)
  • [5]
  • [6]
  • [7]

Test run completed. Mike Peel (talk) 17:04, 3 April 2010 (UTC)[reply]

Is it possible to add categories in upload time? --EugeneZelenko (talk) 15:12, 4 April 2010 (UTC)[reply]
I'm currently categorizing them into subcats of Category:Britain Loves Wikipedia depending on the museum. I'm not sure how best to get other categories for them; is there a PHP script that can suggest categories, or an API I can feed information to and receive category suggestions from? Mike Peel (talk) 16:09, 4 April 2010 (UTC)[reply]
But how do you create files descriptions? You could add categories manually at that time. --EugeneZelenko (talk) 14:24, 5 April 2010 (UTC)[reply]
The file descriptions were entered by the people that took and uploaded the photographs, and then refined by the museums involved. The writing of those did not depend on existing content on Wikimedia sites at all, as categorization would. In hindsight, perhaps something like HotCat could have been used to add categories at the same time. Now, however, I think the best way for them to be categorized is manually here once they have been transferred. I can do some of that myself, and I could put out an appeal for others to help in the same way as that for the Wikipedia Loves Art photos from last year was done (see [8]). Mike Peel (talk) 17:15, 5 April 2010 (UTC)[reply]

Any further questions? I would like to get the bulk of the transfers done this week if possible. Thanks. Mike Peel (talk) 17:38, 7 April 2010 (UTC)[reply]

I think this looks good to approve in the next couple days, barring any objections. No bot flag is needed in my opinion. –Juliancolton | Talk 17:49, 7 April 2010 (UTC)[reply]
I also think this bot should be run without bot status, since categoriezation supposed to be done by human. --EugeneZelenko (talk) 14:42, 8 April 2010 (UTC)[reply]
Thanks for the comments. My plan is to run the bot through Saturday (10 April) uploading the bulk of the images (around 450 are currently ready to be uploaded at the present time). Please let me know if there will be any issue with this. Thanks. Mike Peel (talk) 21:55, 9 April 2010 (UTC)[reply]
Did that run get done OK? This ought to be archived as approved, no flag, I think. ++Lar: t/c 12:41, 13 April 2010 (UTC)[reply]
Yes, run went OK - at least from my point of view. I'll have at least one, probably two, smaller runs to do in the future on this project in the next few months. Thanks. Mike Peel (talk) 13:15, 13 April 2010 (UTC)[reply]
✓ approved, no bot flag. –Juliancolton | Talk 17:13, 13 April 2010 (UTC)[reply]