Commons:Bots/Requests/Achim55Bot

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

Achim55Bot (talk · contribs)

Operator: Achim55 (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Renaming of files

Automatic or manually assisted: Automatic, supervised

Edit type: Several single runs until the job is done

Maximum edit rate: max 10/minute

Bot flag requested: Y

Programming language(s): Pywikibot

Achim (talk) 17:09, 26 October 2017 (UTC)[reply]

Discussion

There are bot- or bulk-uploaded files with bad filenames due to incorrect handling of character or entity encoding, see here 1, 2, 3, 4 for more information and examples. As there are many misspelled proper names it is not only a cosmetical problem but search engines' results are affected directly. I moved about 200 files (mainly of more complex cases) by hand, but it came out that by now about 13,000 files seem to be affected. --Achim (talk) 17:09, 26 October 2017 (UTC)[reply]

 Question: are you planning to do anything to update links to these files on other Wikimedia projects? Human filemovers can use Global Replace for this, but I don't think that's available for bots. --bjh21 (talk) 13:44, 2 November 2017 (UTC)[reply]

bjh21, yes of course. I'm intending to use two lists of file names (before and after) from which the pairslist used by movepages.py is generated. On the fly another list of entries like at User:CommonsDelinker/commands/filemovers will be generated so CDC can be fed with a list of commands renaming the links of successful moves. I think that's the simplest way to get it done. --Achim (talk) 17:41, 2 November 2017 (UTC)[reply]
Sounds good to me. --bjh21 (talk) 18:02, 2 November 2017 (UTC)[reply]

Approved. --Krd 12:53, 6 November 2017 (UTC)[reply]