Wikipedia:Bots/Requests for approval/ChristieBot


 * 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

ChristieBot
Operator:

Time filed: 13:11, Monday, October 3, 2022 (UTC)

Function overview: Create a sortable table of GA nominations to allow GA reviewers to more easily choose which nominations to review.

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python

Source code available: I will make it available if the bot is approved. I haven't written a bot before and was unsure if I should write or test any code at all before requesting permission here, so I have done no more than make notes on what would be needed yet.

Links to relevant discussions (where appropriate): Discussed here, where a couple of people indicated interest in the idea; if more consensus is needed I will start another discussion there specifically to get agreement.

Edit period(s): Same time frame as Legobot's GA edits -- every twenty minutes.

Estimated number of pages affected: One page.

Namespace(s): A user space page that is a subpage of the bot's user page.

Exclusion compliant (Yes/No): Not applicable.

Function details: See User:Mike Christie/Sandbox15 for the proposed layout of the page the bot would create; that page has two entries, but the bot would create a page with one row for each GANentry template on the WP:GAN page. I am proposing to use Pywikibot, and will probably borrow much code from WugBot task 1 (see here). (Pinging as a courtesy; I considered asking them to add this as a task but they did not respond to an earlier ping so I am proposing to write this myself.)

The logic would be to parse the WP:GAN page, looping through each section and subsection and GANentry, building a list of the GANentry templates. Then WP:WBGAN and User:GA bot/Stats would be read and parsed into lists (dictionaries). The bot would loop through the list of GANentry records and add the nominator's number of reviews and number of promoted GAs to each list element, by looking them up in these two dictionaries. Two additional fields would be calculated for each list element: the ratio of number of reviews to number of promoted GAs, and the difference between the number of reviews and number of promoted GAs. This data would then be written to User:ChristieBot/SortableGANoms.

Legobot updates WP:GAN every twenty minutes or so, so the bot would run every twenty minutes, in-between Legobot runs. If the last update to WP:GAN was older than the last update to User:ChristieBot/SortableGANoms the bot would exit without doing anything. Mike Christie (talk - contribs - library) 13:11, 3 October 2022 (UTC)

Discussion
This bot is only editing one page in the WP space. Primefac (talk) 14:00, 3 October 2022 (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.