Wikipedia:Bots/Requests for approval/C1MM-bot: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
queries
Line 14: Line 14:
'''Function overview:'''
'''Function overview:'''
This bot uploads images of assembly constituencies in Indian states to their Wikipedia pages.
This bot uploads images of assembly constituencies in Indian states to their Wikipedia pages.

<!-- Automatic: edits are not reviewed, except when issues arise -->
<!-- Automatic: edits are not reviewed, except when issues arise -->
<!-- Supervised: all edits are reviewed soon after being made -->
<!-- Supervised: all edits are reviewed soon after being made -->
Line 31: Line 32:
'''Edit period(s):'''
'''Edit period(s):'''
Runs as requested
Runs as requested

<!-- Should be a reasonable guess as to how many distinct pages you'll be editing. For open-ended tasks, estimate pages per some reasonable time period.-->
<!-- Should be a reasonable guess as to how many distinct pages you'll be editing. For open-ended tasks, estimate pages per some reasonable time period.-->
'''Estimated number of pages affected:'''
'''Estimated number of pages affected:'''
30-400/run, depends by specific category
30-400/run, depends by specific category

<!-- Which namespace(s) will the bot edit? Mainspace/Articles, Categories, Files, ...-->
<!-- Which namespace(s) will the bot edit? Mainspace/Articles, Categories, Files, ...-->
'''Namespace(s):'''
'''Namespace(s):'''
Articles
Articles

<!-- Whether the bot skips articles and other pages with the {{bots}} template. If "no", please provide a reason in the Function details or Discussion.-->
<!-- Whether the bot skips articles and other pages with the {{bots}} template. If "no", please provide a reason in the Function details or Discussion.-->
'''[[Template:bots|Exclusion compliant]]''' ''No''''':'''
'''[[Template:bots|Exclusion compliant]]''' ''No''''':'''
Line 49: Line 53:
===Discussion===
===Discussion===
<!-- This is not a vote. It is a discussion -->
<!-- This is not a vote. It is a discussion -->
Few questions: this reads like a one-time run, but you say "as necessary"; once the maps are in place, they should stay static, yes? Second, you say {{tq|if an image file is already present, it changes the current image file to the locator map}} - is this desired behaviour, and is there a discussion saying that a user-determined image is better than a bot-supplied map? Third (and I suppose somewhat importantly) - where was this task requested, discussed, or otherwise determined to be a "good idea"? I'm not necessarily saying it's not useful, but if this is just something you've decided to do because ''you'' think it's a good idea, then you should probably get consensus somewhere first. I have other questions but these should get us started. {{ppor|no}} [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 16:33, 6 August 2022 (UTC)

Revision as of 16:33, 6 August 2022

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: 17:30, Friday, August 5, 2022 (UTC)

Function overview: This bot uploads images of assembly constituencies in Indian states to their Wikipedia pages.

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python

Source code available: Standard Pywikipedia

Links to relevant discussions (where appropriate):

Edit period(s): Runs as requested

Estimated number of pages affected: 30-400/run, depends by specific category

Namespace(s): Articles

Exclusion compliant No:

Function details: This bot takes pages of assembly constituencies in an Indian state (specified by category) and would extract the text of the page, and add a Commons file with a locator map of the constituency following a predetermined naming system (Constituency name+number) to the |image section of the {{Infobox Indian state assembly constituency}} if one is already not present. If there is no infobox, the constituency is skipped. If an image file is already present, it changes the current image file to the locator map. This follows a template set by several pages such as Villavancode and Ambur among others. See Anekal or Afzalpur for an example of the bot in action (I forgot that you needed to submit for approval, but still you can see 20 pages in this bot's edit history to see it in action). This bot is currently run locally on my machine using Pywikibot, but it would be ideal for the bot to run directly on Wikipedia servers without any connection to my local machine (if anyone could help me figure out how to do this, I would be glad of the help). None of the pages this bot is run on exclude bots.

Discussion

Few questions: this reads like a one-time run, but you say "as necessary"; once the maps are in place, they should stay static, yes? Second, you say if an image file is already present, it changes the current image file to the locator map - is this desired behaviour, and is there a discussion saying that a user-determined image is better than a bot-supplied map? Third (and I suppose somewhat importantly) - where was this task requested, discussed, or otherwise determined to be a "good idea"? I'm not necessarily saying it's not useful, but if this is just something you've decided to do because you think it's a good idea, then you should probably get consensus somewhere first. I have other questions but these should get us started. (please do not ping on reply) Primefac (talk) 16:33, 6 August 2022 (UTC)[reply]