Commons:Bots/Requests/RileyBot 4

From Wikimedia Commons, the free media repository
< Commons:Bots‎ | Requests(Redirected from User:RileyBot/4)
Jump to: navigation, search

RileyBot (talk · contribs) 4[edit]

Operator: Riley Huntley (talk · contributions · Number of edits · recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Simple find and replace task in the file namespace;

  • Replace | Permission = See below with | Permission =
  • Regex: (?P<start>\|(\s*)[Pp]ermission\s*)=(\s*)[Ss]ee [Bb]elow([. ]+)?(?P<end>\n|\}\}) to \g<start>=\g<end>
  • Examples: Normal Capitals Period

Automatic or manually assisted: Automatic

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

Maximum edit rate (eg edits per minute): 20epm maxlag:5

Bot flag requested: (Y/N): N

Programming language(s): AWB Python (Pywikipedia)

Riley Huntley (talk) 01:05, 10 March 2013 (UTC)

Discussion[edit]

Looks OK for me. But I think will be good idea to combine such clean up with others, like section headers internationalization. --EugeneZelenko (talk) 14:57, 10 March 2013 (UTC)
I am currently writing a bot for another cleanup task like this but in regards to section headers internationalization, there are bots that currently do that task. (I found that out in RileyBot 3) Riley Huntley (talk) 20:16, 10 March 2013 (UTC)
Even if we have dedicated bot for this task, it's still good idea to make one clean up edit instead of two. --EugeneZelenko (talk) 14:43, 11 March 2013 (UTC)
  • I'm sorry to say this but I created this task page for this task, nothing more. And as a volunteer, that is all I am comfortable with doing at the moment. Thus, I am asking that you take this task into consideration, and not other tasks that I have not coded or have figured out (Commons:Template i18n/bot replacements is a mess, almost impossible to see who is doing what and what is already done. It definitely needs to be updated.) :) Riley Huntley (talk) 14:57, 11 March 2013 (UTC)
  • How do you find pages with Permission = See below? --Dschwen (talk) 15:08, 12 March 2013 (UTC)
  • I search dumps, put all the files into one text file and then have the bot run off that. Riley Huntley (talk) 15:11, 12 March 2013 (UTC)
  • Ok, that sounds very reasonable. While I agree with Eugene that consolidation of bot tasks would be nice to keep the overall bot edit frequency down it is true that such a coordination seems very difficult at this time. I suggest we do a role call of bot operators in the near future and get an inventory of bot activities to see who is doing what and if they are still interested in doing their tasks. In the meantime I think we should not make you wait for that to happen. Why don't you go ahead and show us some test edits. --Dschwen (talk) 16:06, 12 March 2013 (UTC)
  •  Doing… Playing around with the regex to get the best result [and no errors!] :P Riley Huntley (talk) 20:18, 12 March 2013 (UTC)
  • ✓ Trial done [1] Made the regex 10x harder aswell Clin Riley Huntley (talk) 20:55, 12 March 2013 (UTC)
  • Yikes, now i don't understand the regexp anymore. Will have to look up the <start> syntax. Anyhow. Last thing I would suggest is making the edit summary a bit more specific, since your bot performs exactly one sub task of cleaning up the file description. Namely: "Removing see below from permission data in file Information template". Then I approve, but let's give Eugene some time to comment on this first..--Dschwen (talk) 21:37, 12 March 2013 (UTC)
  • Yea, the regexp is hard to understand now but basically the only difference is that when I had the old regex it would change lets say "| Permission = See below and blahblah" to "| Permission = and blahblah". So now, it will just skip a string like that and move on. In regards to the edit summary, thank you! I find the hardest thing about bots is finding the right edit summary. :P Riley Huntley (talk) 22:31, 12 March 2013 (UTC)
  • While I still think that multiple clean-ups is better (aren't set of regular expressions could be applied), I don't want to force bot operator to do so. --EugeneZelenko (talk) 14:49, 17 March 2013 (UTC)

Approved. --Dschwen (talk) 19:52, 18 March 2013 (UTC)