Wikipedia:Bots/Requests for approval/C1MM-bot 2

C1MM-bot 2
Operator:

Time filed: 00:56, Tuesday, June 25, 2024 (UTC)

Function overview: Would add constituency numbers in addition to constituency maps

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python

Source code available:

Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/C1MM-bot

Edit period(s): occasionally run, would edit all pages in one fell swoop

Estimated number of pages affected: ~4000

Namespace(s): Articles

Exclusion compliant (Yes/No): No

Function details: I already have approval for running my bot to add image maps to infoboxes of Indian state legislative assembly constituency pages. I would like to add constituency numbers as well, which are listed in the filenames for the image maps. These numbers are obtained from Election Commission of India (must have an Indian IP address to access). My bot loops through all the pages in a given category where is present. Where there is already a constituency number the page would be skipped, just as it is skipped if there is already an image in the image_map section. Otherwise the constituency number would be added preserving infobox formatting (if any). This is in addition to adding the map in the same manner. This is editing pages which are not generally sufficiently important to have the Bots template.

Discussion

 * (not-BAG) if the page already has a value in the relevant field, will the bot log/change it if it doesn't match the value produced by the map? This is probably worth trying to do. Mdann52 (talk) 18:05, 28 June 2024 (UTC)
 * I can easily add that function to the bot. C1MM (talk) 13:16, 29 June 2024 (UTC)
 * Primefac (talk) 17:53, 5 July 2024 (UTC)