Wikipedia:Bots/Requests for approval/PotatoBot 3


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Symbol keep vote.svg Approved.

PotatoBot 3
Operator:

Automatic or Manually assisted: Automatic, unsupervised

Programming language(s): Python, PyWikipedia

Source code available: Yes

Function overview: Creates redirects from ATC codes to drug pages (ATC code A01AA01 → Sodium fluoride). Adds anchors to section headers in ATC lists (ATC code A01 etc.) and creates redirects to them (ATC code A01A → ATC code A01).

Links to relevant discussions (where appropriate): Wikipedia talk:WikiProject Pharmacology/Archive 3, no opposition at Wikipedia talk:WikiProject Pharmacology

Edit period(s): Once a year (after the ATC code updates); additional runs if necessary

Estimated number of pages affected: Edits ~115 ATC lists; creates ~9460 redirects (initially)

Exclusion compliant (Y/N): Yes

Already has a bot flag (Y/N): Yes

Function details: ATC codes are obtained from the ATC lists. Only lines of the type  and   are processed at the moment, but I intend to use the output of the initial run for refining the search logic. ATCvet code redirects are created as well if applicable (ATCvet code QA01AA01 → Sodium fluoride). Anchors are added like so:.

A template R from ATC code is placed in the redirects. I will create it (along with the Category:Redirects from ATC codes) before starting the bot. Double redirects are resolved; redirects to nonexistent pages are omitted; no existing pages are overwritten.

The bot also cross-checks the ATC codes from the lists against those in drugboxes and chemboxes, and logs differences to its user space.

Discussion
BAGAssistanceNeeded --ἀνυπόδητος (talk) 13:31, 21 June 2010 (UTC)
 * This looks like a safe task to run. I don't see a reason not to trial it tomorrow.  MBisanz  talk 03:04, 16 June 2010 (UTC)

&mdash; The Earwig   (talk)  20:14, 21 June 2010 (UTC)
 * See Special:Contributions/PotatoBot and Category:Redirects from ATC codes. Looks okay. --ἀνυπόδητος (talk) 17:22, 22 June 2010 (UTC)
 *  MBisanz  talk 02:29, 23 June 2010 (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 WT:BRFA.