Wikipedia:Bots/Requests for approval/TolBot 11
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
Operator: Tol (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 04:46, Tuesday, December 21, 2021 (UTC)
Function overview: Remove unpaired closing paragraph tags
Automatic, Supervised, or Manual: automatic
Programming language(s): Python
Source code available: No
Links to relevant discussions (where appropriate): Wikipedia:Bot requests#Remove lone P-tags (permalink)
Edit period(s): one-time
Estimated number of pages affected: ~ 41368 (searches: pattern 1 (26099), pattern 2 (15271))
Namespace(s): User talk
Exclusion compliant (Yes/No): no
Function details: Uses a regex to do the following replacement on each page from those two searches:
- From
(\[\[File:Stop x nuvola\.svg\|40px\|left\|alt=\|link=\]\]There have been two problems with this account: the account has been used for \[\[WP:Spam\|advertising or promotion\]\], which is \[\[WP:What Wikipedia is not#Wikipedia is not a soapbox or means of promotion\|contrary\]\] to the \[\[WP:Five pillars\|purpose of Wikipedia\]\], and your username indicates that the account represents a business or other organisation or group or a web site, which is also against.*Because of those problems, the account has been.*from editing\..*?|\[\[File:Stop x nuvola.svg\|40px\|left\|alt=\|link=\]\]Your account has been '''\[\[WP:Blocking policy#Indefinite blocks\|blocked indefinitely\]\]''' from editing because of the following problems: the account has been used for \[\[WP:Spam\|advertising or promotion\]\], which is \[\[WP:What Wikipedia is not#Wikipedia is not a soapbox or means of promotion\|contrary\]\] to the \[\[WP:Five pillars\|purpose of Wikipedia\]\], and your username indicates that the account represents a business.*web site, which is against the \[\[WP:UN\|username policy\]\].) \<\/p\>
- To
\1
Discussion
[edit]- @Tol: Neither of the searches linked have any results? Is this task still needed? --TheSandDoctor Talk 22:44, 28 December 2021 (UTC)[reply]
- Hmm, the searches have results for me. You're clicking the "(searches: pattern 1 (26099), pattern 2 (15271))" links, right? Tol (talk | contribs) @ 23:30, 28 December 2021 (UTC)[reply]
- @Tol: Yes, and they both say "There were no results matching the query." Could you please link me a couple page examples in lieu then? --TheSandDoctor Talk 04:05, 29 December 2021 (UTC)[reply]
- @Tol: the search links you have show results only in article space, where these patterns are not present. Here are the search links in all namespaces - pattern 1, pattern 2. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 04:13, 29 December 2021 (UTC)[reply]
- Thank you, @ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ! I think this is because I set my search defaults to include results in all namespaces. @TheSandDoctor, do those links work for you? Tol (talk | contribs) @ 05:16, 29 December 2021 (UTC)[reply]
- There we go. Thank you @ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ and Tol:, that now works for me. Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. --TheSandDoctor Talk 07:16, 29 December 2021 (UTC)[reply]
- Thank you, @TheSandDoctor! Trial complete. Here are the diffs: (). I belatedly realised that these were all from pattern 1, so I can also do a trial with pattern 2 if you'd like. I set both bot and minor flags so that talk page notifications were not sent. Tol (talk | contribs) @ 03:34, 31 December 2021 (UTC)[reply]
- 1062908314
- 1062908315
- 1062908317
- 1062908320
- 1062908325
- 1062908326
- 1062908328
- 1062908331
- 1062908333
- 1062908337
- 1062908339
- 1062908344
- 1062908347
- 1062908350
- 1062908351
- 1062908354
- 1062908359
- 1062908362
- 1062908364
- 1062908366
- 1062908368
- 1062908370
- 1062908372
- 1062908377
- 1062908379
- 1062908381
- 1062908384
- 1062908386
- 1062908388
- 1062908390
- 1062908391
- 1062908394
- 1062908396
- 1062908398
- 1062908399
- 1062908402
- 1062908406
- 1062908410
- 1062908413
- 1062908420
- 1062908421
- 1062908422
- 1062908425
- 1062908430
- 1062908431
- 1062908432
- 1062908433
- 1062908437
- 1062908441
- 1062908446
- Also, a question: I've finally implemented maxlag in my bot code (it's almost a framework, at this point!). I've currently set it to 3, because I figure that a task like this — where speed is not needed at all — should be less urgent than the recommended maxlag of 5. Because I'll be sending out around 10,000 edits one after another (there's more, but 10k is the CirrusSearch maximum), is there anything else I should be aware of or implement to avoid slowing the server? Tol (talk | contribs) @ 03:43, 31 December 2021 (UTC)[reply]
- Thank you, @TheSandDoctor! Trial complete. Here are the diffs: (
- There we go. Thank you @ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ and Tol:, that now works for me. Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. --TheSandDoctor Talk 07:16, 29 December 2021 (UTC)[reply]
- Thank you, @ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ! I think this is because I set my search defaults to include results in all namespaces. @TheSandDoctor, do those links work for you? Tol (talk | contribs) @ 05:16, 29 December 2021 (UTC)[reply]
- @Tol: the search links you have show results only in article space, where these patterns are not present. Here are the search links in all namespaces - pattern 1, pattern 2. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 04:13, 29 December 2021 (UTC)[reply]
- @Tol: Yes, and they both say "There were no results matching the query." Could you please link me a couple page examples in lieu then? --TheSandDoctor Talk 04:05, 29 December 2021 (UTC)[reply]
- Hmm, the searches have results for me. You're clicking the "(searches: pattern 1 (26099), pattern 2 (15271))" links, right? Tol (talk | contribs) @ 23:30, 28 December 2021 (UTC)[reply]
Approved. @Tol: Under normal circumstances, I would prefer to leave the close for someone else. However, given the backlog, lack of recent BAG activity (myself included), and the fact that this task is uncontroversial and based on how well the trial went, I am inclined to make an exception for this. As per usual, if amendments to - or clarifications regarding - this approval are needed, please start a discussion on the talk page and ping. --TheSandDoctor Talk 16:25, 31 December 2021 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard.