Commons:Bots/Requests/SchlurcherBot5

SchlurcherBot (talk · contribs)

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

Bot's tasks for which permission is being sought: Remove duplicate transclusions from all pages linked under User:SchlurcherBot/Monitor

Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): One time run on old deletion request summary pages, then continuous monitoring of pages given under User:SchlurcherBot/Monitor

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

Bot flag requested: (Y/N): N (Bot has flag already)

Programming language(s): Pywikibot

Schlurcher (talk) 21:19, 22 November 2017 (UTC)[reply]

Discussion

  • This request started as a work request, please see: [1]. Example edits for a one time run on the most recent deletion requests are given here: [2] [3] [4] [5] [6]
I would like to discuss the pages in scope. :@Incnis Mrsi: suggested to monitor the most recent deletion request pages. The bot is setup to monitor all pages given under User:SchlurcherBot/Monitor. Currently, this is limited to the most recent deletion request pages; but the list can be extended.
I would also like to discuss the monitoring frequency. The current suggestion is every 5 Minutes. This seems faily frequent to me. My initial guess was more once every hour. Please advise --Schlurcher (talk) 15:19, 12 January 2019 (UTC)[reply]
Krdbot currently does most (if not all) archiving of closed deletion request. I think it doesn't cost me much to removes dupes while during the archive process when touching the pages anyway, so without additional edits. I think this could already cover 90% of the cases. (I'm not opposed to having a different bot doing this.) --Krd 08:08, 13 January 2019 (UTC)[reply]
I have checked the recent deletion request pages. It seems Krdbot is currently performing an edit roughly every 2 hours on them (even on the one of the current day). To me this seems frequent enought and if Krd is willing to incorporate this into Krdbot, then the original intention of this request could be fulfilled.
Are there additional pages of interest, that KrdBot is not working on?
FYI, the Python-regex I am currently using is (r'(\{\{[Cc]ommons:)([^}]+\}\})(.*?)\1\2\n?' to r'\1\2\3' --Schlurcher (talk) 18:01, 13 January 2019 (UTC)[reply]
Done, see: Special:Diff/334814956. --Krd 13:50, 14 January 2019 (UTC)[reply]
That would be a very clever solution. @Krd: Could you please check, why your bot left the following 5 behind: [7]--Schlurcher (talk) 20:20, 14 January 2019 (UTC)[reply]
To save some edits (and edit conflicts) the bot currently only removes dupes when touching the page anyway. At the start this will miss one or another, but lateron I don't see this as relevant drawback. I can change it, but I'd say it's better the way it is. --Krd 20:58, 14 January 2019 (UTC)[reply]
I understood that your bot only performs changes once it touches the page. That was the reasons, why I brought the above edit to your attention. There have been no further edits between the edit of your bot and the edit I made. However, I see now from the timestamps of the edits, that the bot edit might have be before you updated the coding. I will check again later today to see if I can find another more recent example. In any case, I think we can close this request as implemented within KrdBot. I will leave the functionality implemented in my bot, but not perform further edits on this task. In case there is need for this later on, I am happy to re-open the request. --Schlurcher (talk) 11:49, 15 January 2019 (UTC)[reply]
Thank you. I think this should be closed as approved anyway, just in case. --Krd 09:03, 21 January 2019 (UTC)[reply]

Closing as approved. --Krd 12:14, 30 January 2019 (UTC)[reply]