User:Commons fair use upload bot

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

Shortcut: COM:FUUB

This account takes over the task of Commons fair use upload bot (usurped), which was previously operated by Dcoetzee.

The bot has been out of action for several months after the decommissioning of the toolserver environment, and is now being migrated to WMFlabs by a volunteer. As of Jan/Feb 2015 the rewritten bot should be considered in testing, so templates referenced below can be used but may take a while be acted on by the bot.

Automated logs of transactions across projects can be found at http://tools-static.wmflabs.org/commonsfairuseupload

Scope

[edit]

This bot re-uploads files that are deleted on Commons to projects where they are in use, if those projects accept non-free files.

The procedure is that:

  1. Category:Pending fair use deletes, is checked for images.
  2. The revision histories are checked to see who added the requesting template.
  3. If the requesting user is not a current Commons admin, the template is changed to a request for an admin to apply the template and the bot stops processing that image. See Category:Requested fair use deletes.
  4. The images are uploaded to local wikis using an amended file name (using the same name would be confusing cross-wiki), then the original is marked for speedy deletion on Commons when done.
  5. Wikipedia articles using the images receive a notice that the file has now been locally uploaded as a fair use candidate. Local wikis are responsible for determining if the image is eligible for their own non-free content policy, and deleting it in a timely manner if not.
  6. If for some reason the image cannot be uploaded, an error message is added to the Commons image page and not marked for speedy deletion.

This bot will run hourly on WMFlabs, and is written using Python and using Pywikibot to use the Commons API (previously depending on Bryan's mwclient).

Two types of files are transferred by this bot:

Currently supported wikis

[edit]

supported_wikis = ['et.wikipedia.org', 'en.wikipedia.org', 'en.wikibooks.org'] pd_us_wikis = ['en.wikipedia.org', 'en.wikisource.org', 'wikisource.org']

Source code

[edit]

If you can help with translations and local fair use policy, please contact the operator.