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 Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
Operator: Qwerfjkl (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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): Wikipedia:Bot requests#Gutenberg author IDs
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
[edit]- Here's a few replacements the code would make:with https://www.gutenberg.org/ebooks/author/2717
- https://www.gutenberg.org/ebooks/authors/search/?query=Sankaracarya with https://www.gutenberg.org/ebooks/author/38496
- https://www.gutenberg.org/ebooks/authors/search/?query=Albert_Einstein with https://www.gutenberg.org/ebooks/author/1630
- https://www.gutenberg.org/ebooks/authors/search/?query=Magnus,+Albertus with https://www.gutenberg.org/ebooks/author/38247
- https://www.gutenberg.org/ebooks/authors/search/?query=Albrecht+D%C3%BCrer with https://www.gutenberg.org/ebooks/author/1135
- https://www.gutenberg.org/ebooks/authors/search/?query=Pope,_Alexander with https://www.gutenberg.org/ebooks/author/907
- https://www.gutenberg.org/ebooks/authors/search/?query=Aleksandr+Sergeevich+Pushkin with https://www.gutenberg.org/ebooks/author/1457
- https://www.gutenberg.org/ebooks/authors/search/?query=Alexis+de+Tocqueville with https://www.gutenberg.org/ebooks/author/424
- https://www.gutenberg.org/ebooks/authors/search/?query=Alfred+Lord+Tennyson with https://www.gutenberg.org/ebooks/author/2987
- https://www.gutenberg.org/ebooks/authors/search/?query=Wallace,+Alfred+Russel with https://www.gutenberg.org/ebooks/author/955
- https://www.gutenberg.org/ebooks/authors/search/?query=Ambrose,+Saint,+Bishop+of+Milan with https://www.gutenberg.org/ebooks/author/25543
- 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. -- GreenC 00:01, 9 September 2023 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.
- @@Primefac, Trial complete. See these 50 contribs. — Qwerfjkltalk 17:37, 13 September 2023 (UTC)[reply]
- 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. -- GreenC 17:55, 13 September 2023 (UTC)[reply]
- I've been having some issues querying gutenberg org, that's why this thing took a few days to complete. — Qwerfjkltalk 17:58, 13 September 2023 (UTC)[reply]
- Is it bot blocking, or just slow/intermittent response? It was responding slow for me via browser. -- GreenC 16:47, 14 September 2023 (UTC)[reply]
- @GreenC, the latter. — Qwerfjkltalk 16:59, 14 September 2023 (UTC)[reply]
- Approved. Primefac (talk) 09:50, 20 September 2023 (UTC)[reply]
- @GreenC, the latter. — Qwerfjkltalk 16:59, 14 September 2023 (UTC)[reply]
- Is it bot blocking, or just slow/intermittent response? It was responding slow for me via browser. -- GreenC 16:47, 14 September 2023 (UTC)[reply]
- I've been having some issues querying gutenberg org, that's why this thing took a few days to complete. — Qwerfjkltalk 17:58, 13 September 2023 (UTC)[reply]
- 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. -- GreenC 17:55, 13 September 2023 (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.