Jump to content

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

From Wikipedia, the free encyclopedia

New to bots on Wikipedia? Read these primers!

Operator: C1MM (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

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 {{Infobox Indian constituency }} 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[edit]

(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)[reply]