Jump to content

Wikipedia:Bots/Requests for approval/BsoykaBot: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
expand
re, format to keep indents
Line 51: Line 51:
::{{re|Headbomb}} Perhaps, but on the other hand, Citation bot is manually activated every time it's run (taking at least a small amount of valuable time from human editors), and [[Special:Contributions/Smith609|its operator doesn't appear very active]] at all anymore, so I'm not sure about having it run automatically. [[User:Bsoyka|<span style="color:#fff;background:#077;padding:.2em">'''Bsoyka'''</span>]] ([[User talk:Bsoyka|<span style="color:#077">talk</span>]]) 04:26, 14 March 2022 (UTC)
::{{re|Headbomb}} Perhaps, but on the other hand, Citation bot is manually activated every time it's run (taking at least a small amount of valuable time from human editors), and [[Special:Contributions/Smith609|its operator doesn't appear very active]] at all anymore, so I'm not sure about having it run automatically. [[User:Bsoyka|<span style="color:#fff;background:#077;padding:.2em">'''Bsoyka'''</span>]] ([[User talk:Bsoyka|<span style="color:#077">talk</span>]]) 04:26, 14 March 2022 (UTC)
:::"at least a small amount of valuable time from human editors" It's literally a one-click activation once you're at [[:Category:CS1 errors: DOI]] (and similar). The full list of one-click categories is
:::"at least a small amount of valuable time from human editors" It's literally a one-click activation once you're at [[:Category:CS1 errors: DOI]] (and similar). The full list of one-click categories is
::::*[[:Category:Articles with missing Cite arXiv inputs]]
:::*[[:Category:Articles with missing Cite arXiv inputs]]
::::*[[:Category:CS1 errors: DOI]]
:::*[[:Category:CS1 errors: DOI]]
::::*[[:Category:CS1 maint: MR format]]
:::*[[:Category:CS1 maint: MR format]]
::::*[[:Category:CS1 maint: PMC embargo expired]]
:::*[[:Category:CS1 maint: PMC embargo expired]]
::::*[[:Category:CS1 maint: PMC format]]
:::*[[:Category:CS1 maint: PMC format]]
Having Citation bot automatically run would be better, sure, but manually triggering Citation bot leads to better outcomes than this bot would have. &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 21:24, 14 March 2022 (UTC)
:::Having Citation bot automatically run would be better, sure, but manually triggering Citation bot leads to better outcomes than this bot would have. &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 21:24, 14 March 2022 (UTC)
::::I'm up for getting some more formal consensus around this; I still think it'd be a good idea to automatically get these out of the way, but, of course, I'll stick with what the community wants. I'll keep going on the trial as it's approved (for now). [[User:Bsoyka|<span style="color:#fff;background:#077;padding:.2em">'''Bsoyka'''</span>]] ([[User talk:Bsoyka|<span style="color:#077">talk</span>]]) 05:31, 15 March 2022 (UTC)

Revision as of 05:31, 15 March 2022

Operator: Bsoyka (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 05:11, Sunday, February 27, 2022 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: github.com/bsoyka/wikipedia-bot/blob/main/fix_pmc_errors.py

Function overview: Fix CS1 errors due to PMC formatting

Links to relevant discussions (where appropriate):

Edit period(s): Running over the category once daily

Estimated number of pages affected: ~10-30 per day perhaps

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): No

Function details: This finds the regex \| *pmc *= *pmc and replaces it with |pmc= for each article in Category:CS1 maint: PMC format. Some examples: [1] [2] [3]

Discussion

Just commenting for curiosity, as of 13:51, 27 February 2022 (UTC) there are 3 pages in that category. "Live" count is 1. Primefac (talk) 13:51, 27 February 2022 (UTC)[reply]

The category can be cleaned out by User:Citation bot, but that bot needs to be triggered for the category manually by someone each time it's cleaned out. This new bot could take stress off of both the people manually triggering the bot and the bot itself, which is more intended for adding other information to citations. Bsoyka (talk · contribs) 14:23, 27 February 2022 (UTC)[reply]

We need to acknowledge during the BRFA that for most readers, this will be a cosmetic change, since it removes a normally hidden error message and a hidden category. I support the task, and bots are allowed to make cosmetic change with BRFA approval, but editors sometimes object to bot edits even after an approved BRFA because they don't see a change in the rendered page. – Jonesey95 (talk) 14:33, 27 February 2022 (UTC)[reply]

For sure, I agree. I'll also mention that I'm going through the BRFA process to get a flag and AWB access for my bot account so I'm not flooding any watchlists with this. Bsoyka (talk · contribs) 18:39, 27 February 2022 (UTC)[reply]
There's only one page in the category at the moment, so this might not be a high-volume task that anyone would notice. Does everyone see this message in preview though?
Script warning: One or more {{cite journal}} templates have maintenance messages; messages may be hidden (help).
I find such preview warnings for "cosmetic" issues to be quite annoying, and would be happy to have bots making them go away. Human gnomes are swamped and don't have time for messing around making edits like this. Could a bot clean out Category:CS1 maint: url-status too? wbm1058 (talk) 01:44, 28 February 2022 (UTC)[reply]
Yeah this category seems pretty regularly cleaned-out manually, my estimate above is about 10-30 pages per day. As for the other category, it probably wouldn't be a simple find/replace like this but I might be able to make something work for it at some point in the future if no one else does. Bsoyka (talk · contribs) 02:17, 28 February 2022 (UTC)[reply]

{{BAG assistance needed}} No activity in over a week. — {{u|Bsoyka}}talk 17:02, 7 March 2022 (UTC)[reply]

Now searching using the regex \| *pmc *= *pmc to catch cases with spaces — {{u|Bsoyka}}talk 04:07, 9 March 2022 (UTC), edited 16:20, 10 March 2022 (UTC)[reply]

@Bsoyka: This might be better implemented as a continuous-running bot, perhaps using Pywikibot? ― Qwerfjkltalk 20:51, 11 March 2022 (UTC)[reply]
@Qwerfjkl: Sounds good to me, done. — {{u|Bsoyka}}talk 23:05, 11 March 2022 (UTC)[reply]

Approved for trial (50 edits or 14 days, whichever happens first). Please provide a link to the relevant contributions and/or diffs when the trial is complete. This is assuming a single daily run. Primefac (talk) 13:12, 13 March 2022 (UTC)[reply]

I'm not sure this is the best way to handle this category. Having CitationBot automatically run on the category once a day would be better, because it does a lot more than cleanup |pmc=, it cleans up after the visual editor and other tools that inserted the less-than-ideal |pmc= parameter in the first place. Headbomb {t · c · p · b} 22:01, 13 March 2022 (UTC)[reply]
Compare e.g. [4], with the follow up edit by Citation bot [5]. Headbomb {t · c · p · b} 22:05, 13 March 2022 (UTC)[reply]
@Headbomb: Perhaps, but on the other hand, Citation bot is manually activated every time it's run (taking at least a small amount of valuable time from human editors), and its operator doesn't appear very active at all anymore, so I'm not sure about having it run automatically. Bsoyka (talk) 04:26, 14 March 2022 (UTC)[reply]
"at least a small amount of valuable time from human editors" It's literally a one-click activation once you're at Category:CS1 errors: DOI (and similar). The full list of one-click categories is
Having Citation bot automatically run would be better, sure, but manually triggering Citation bot leads to better outcomes than this bot would have. Headbomb {t · c · p · b} 21:24, 14 March 2022 (UTC)[reply]
I'm up for getting some more formal consensus around this; I still think it'd be a good idea to automatically get these out of the way, but, of course, I'll stick with what the community wants. I'll keep going on the trial as it's approved (for now). Bsoyka (talk) 05:31, 15 March 2022 (UTC)[reply]