Wikipedia:Bots/Requests for approval/Qwerfjkl (bot) 22


 * 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

Qwerfjkl (bot) 22
Operator:

Time filed: 19:18, Friday, September 8, 2023 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: pywikibot

Function overview: Converting Gutenberg author IDs from strings to actual IDs

Links to relevant discussions (where appropriate): Bot requests

Edit period(s): one time run (can be run again if necessary in the future)

Estimated number of pages affected: 7000 (estimated, based on a sample of pages)

Exclusion compliant (Yes/No): No

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

Function details: It will check all pages with Gutenberg author. Then, if it has an ID parameter that is non-numeric, it will query https://www.gutenberg.org/ebooks/authors/search/?query= with it and if there is only one result from that, it will use that result's ID for Gutenberg author.

Discussion

 * Here's a few replacements the code would make:https://www.gutenberg.org/ebooks/authors/search/?query=Burr,+Aaronwith https://www.gutenberg.org/ebooks/author/2717https://www.gutenberg.org/ebooks/authors/search/?query=Sankaracarya with https://www.gutenberg.org/ebooks/author/38496https://www.gutenberg.org/ebooks/authors/search/?query=Albert_Einstein with https://www.gutenberg.org/ebooks/author/1630https://www.gutenberg.org/ebooks/authors/search/?query=Magnus,+Albertus with https://www.gutenberg.org/ebooks/author/38247https://www.gutenberg.org/ebooks/authors/search/?query=Albrecht+D%C3%BCrer with https://www.gutenberg.org/ebooks/author/1135https://www.gutenberg.org/ebooks/authors/search/?query=Pope,_Alexander with https://www.gutenberg.org/ebooks/author/907<li>https://www.gutenberg.org/ebooks/authors/search/?query=Aleksandr+Sergeevich+Pushkin with https://www.gutenberg.org/ebooks/author/1457</li><li>https://www.gutenberg.org/ebooks/authors/search/?query=Alexis+de+Tocqueville with https://www.gutenberg.org/ebooks/author/424</li><li>https://www.gutenberg.org/ebooks/authors/search/?query=Alfred+Lord+Tennyson with https://www.gutenberg.org/ebooks/author/2987</li><li>https://www.gutenberg.org/ebooks/authors/search/?query=Wallace,+Alfred+Russel with https://www.gutenberg.org/ebooks/author/955</li><li>https://www.gutenberg.org/ebooks/authors/search/?query=Ambrose,+Saint,+Bishop+of+Milan with https://www.gutenberg.org/ebooks/author/25543</li></ol>(It would actually be modifying the template, I've just used the URLs for convenience.)<span id="Qwerfjkl:1694201957364:WikipediaFTTCLNBots/Requests_for_approval/Qwerfjkl_(bot)_22" class="FTTCmt"> — Qwerfjkl  talk  19:39, 8 September 2023 (UTC)
 * Nice. Thanks for doing it! Added this RFA to my watchlist. I am the original author of Module:Gutenberg. The module can pull IDs from Wikidata, and the work here could be used to update Wikidata. Ideally we hard-code the numbers on enwiki per this RFA, it will be safer since Wikidata is more prone to vandalism and mistakes and harder for users to figure out and update.  --  Green  C  00:01, 9 September 2023 (UTC)


 * @@Primefac, See these 50 contribs.<span id="Qwerfjkl:1694626647461:WikipediaFTTCLNBots/Requests_for_approval/Qwerfjkl_(bot)_22" class="FTTCmt"> —  Qwerfjkl  talk  17:37, 13 September 2023 (UTC)
 * I checked them for syntax errors (none) and spot checked those with common names to make sure there were no disambiguation errors with multiple names and they all looked good also. -- Green  C  17:55, 13 September 2023 (UTC)
 * I've been having some issues querying gutenberg org, that's why this thing took a few days to complete.<span id="Qwerfjkl:1694627883264:WikipediaFTTCLNBots/Requests_for_approval/Qwerfjkl_(bot)_22" class="FTTCmt"> — Qwerfjkl  talk  17:58, 13 September 2023 (UTC)
 * Is it bot blocking, or just slow/intermittent response? It was responding slow for me via browser. -- Green  C  16:47, 14 September 2023 (UTC)
 * @GreenC, the latter.<span id="Qwerfjkl:1694710762067:WikipediaFTTCLNBots/Requests_for_approval/Qwerfjkl_(bot)_22" class="FTTCmt"> — Qwerfjkl  talk  16:59, 14 September 2023 (UTC)
 * Primefac (talk) 09:50, 20 September 2023 (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.