Wikipedia:Bots/Requests for approval/BsoykaBot 2


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Bots/Noticeboard. The result of the discussion was

BsoykaBot 2
Operator:

Time filed: 01:30, Friday, December 29, 2023 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python (Pywikibot)

Source code available: bsoyka/wikipedia-bot on GitHub

Function overview: Replaces Wikipedia Library (TWL) proxy URLs in mainspace to allow non-qualified/registered users to access links.

Links to relevant discussions (where appropriate): Bot requests

Edit period(s): Daily

Estimated number of pages affected: ~10–15 per day from Newspapers.com links alone, and TWL offers ~70 other proxied sites

Exclusion compliant (Yes/No): Yes

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

Function details: The script searches mainspace for articles containing TWL proxy domains and performs a simple find/replace operation to use non-proxied URLs. For example, see this test edit. Currently, only the Newspapers.com proxied domain is included in the script, but assuming this request is approved, I would like to expand this to most/all of the sites TWL proxies. (I have already set up the program to be easy to expand this way.)

Discussion
I endorse this being run, per discussion at the bot requests page (which I am too on-my-phone to link to). Right now I think the main force preventing these useless proxy links (i.e. cannot even be viewed unless you're currently logged into TWL) is that I do aJWB run every once in a while -- can link to the settings if helpful. Very very simple replacement but tedious to do by hand (although can be avoided by the like ten people I have convinced to use PressPass). "the mighty arms of Atlas hold the heavens from the earth" -- great Zeppelin lyric but bad maintenance philosophy. I say: put me out of a job please! jp×g🗯️ 10:59, 29 December 2023 (UTC)
 * , JWB settings copied from JPxG's much larger JWB file. Bsoyka  (t &bull; c &bull; g) 15:52, 29 December 2023 (UTC)

Primefac (talk) 08:19, 31 December 2023 (UTC)
 * Comment I just wanted to thank you for posting the source code. I've been transitioning from R to Python and having really clean simple code makes learning a lot easier.  Dr vulpes  (Talk) 07:04, 31 December 2023 (UTC)
 * @Dr vulpes: Glad I could assist! Please reach out if there's anything else I can help with—I'm relatively new to Pywikibot but not so much to Python as a whole. Bsoyka  (t &bull; c &bull; g) 19:07, 31 December 2023 (UTC)
 * Contributions listed here. The only bump I encountered was in Streets of Rage 3 (the bot's most recent edit), where instead of the proxy URL using www-newspapers-com, it had www.newspapers.com (periods instead of hyphens). The article still appeared in the bot's search, but it didn't change anything in the source until I updated the code to support this other domain. All seems good now. Bsoyka  (t &bull; c &bull; g) 19:06, 31 December 2023 (UTC)
 * Primefac (talk) 13:31, 1 January 2024 (UTC)
 * 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 Bots/Noticeboard.