Commons:Bots/Requests/wmr-bot

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

Wmr-bot (talk · contribs)

Operator: 維基小霸王 (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought:

  • I will upload 8000+ images from Imperial Encyclopaedia plus vector rendering of some of the images. The bot will create description of the images using pagefromfile.py.
  • In the long run, I am planning to a missive number of Chinese classic books. The bot will be responsible for that.


Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): Sometimes.

Maximum edit rate (e.g. edits per minute): 10?

Bot flag requested: (Y/N): Y

Programming language(s): Python 維基小霸王 (talk) 03:24, 4 November 2016 (UTC)[reply]

Discussion

  • Though I have done some of these uploads on request, I believe it is much more useful to have a volunteer that can understand Chinese manage these sources and create meaningful image text pages. So it's great to see this bot request being made. -- (talk) 08:34, 4 November 2016 (UTC)[reply]
        try:
            description_file_name = re.sub(r"\.[^.]+", ".description", original_file_path)
            description_file = open(description_file_name, mode="r")
            text = description_file.read()
            description_file.close()
            self.description = text
        except:
            pass
Now, I can add <filename>.description to the uploading folder and the text it contained will be used when uploading the images.
I will upload with the final descriptions when I upload the bitmap version of the those images.--維基小霸王 (talk) 05:06, 14 November 2016 (UTC)[reply]
@Krd: I have run some example uploads with the correct descriptions. Please check.--維基小霸王 (talk) 13:46, 15 November 2016 (UTC)[reply]
Looks good for me. To be approved in a few days if no objection arises. --Krd 14:23, 15 November 2016 (UTC)[reply]

Approved. --Krd 08:22, 17 November 2016 (UTC)[reply]