Wikipedia:Bots/Requests for approval/Usernamekiran BOT 2

This is an old revision of this page, as edited by Usernamekiran (talk | contribs) at 19:41, 5 March 2018 (→‎Discussion: re). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

Time filed: 04:00, Wednesday, February 7, 2018 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): WP:AWB

Source code available: Yes.

Function overview: Insert banner on the talkpages of pages that come under the scope of wikiproject organised crime.

Links to relevant discussions (where appropriate):

Edit period(s): 3-4 times a week.

Estimated number of pages affected: around 2 to 3000.

Namespace(s): artcile talk, category talk, file talk, template talk.

Exclusion compliant (Yes/No): No.

Function details: Since last few months, I have been using my other account (Usernamekiran (AWB)) for inserting {{WikiProject Organized crime}} on the talkpages that fall under the scope of wikiproject. So far I have inserted banner on thousands pages, and there has been no mistake, nobody has objected yet. I can sort the targets properly (Wikipedia:WikiProject Organized crime/Bot tagging categories). The bot will not do any other changes other than adding this banner. And basic things like adding banner shell if banners exceed 3, old ProD.

Discussion

Is your only estimate that this will be 6 to 12000 edits per week? — xaosflux Talk 02:10, 8 February 2018 (UTC)[reply]

@Xaosflux: No. At max, there are around 4 thousand pages remaining that needs to be tagged with the organised crime banner. I think, using the bot, I will rag around 3 thousand pages. The ones that need human judgement, will be done semi automatically from non-bot a/c. I meant, I will run the bot 3-4 times a week. Given if i get done 1000 pages done in one day/session, then the entire task will be done in like 4 days. If not, Iwill be using bot like 3-4 times a week. I think this task will take 2 weeks to finish. I apologise for the confusion. —usernamekiran(talk) 08:11, 8 February 2018 (UTC)[reply]

If necessary, I have been using this module since months. I mean, I created the module a long time ago, but I barely used it till the discussion with Primefac special:diff/824201270.

  public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
        {
            Regex header = new Regex(@"\{\{{WikiProject Organized crime|{{WikiProject Organized Crime|{{WikiProject Fictional characters|{{Comicsproj|{{WikiProject Film|{{Film|{{WikiProject Video games|{{WikiProject Television|{{WPTV|{{WP Fictional|{{WikiProject Novels|{{WikiProject Anime|{{TelevisionWikiProject|{{WPFILM|{{WikiProject Songs|{{Songs|{{album|{{WikiProject Hip hop|{{WP film|{{WPBooks", RegexOptions.IgnoreCase);
            Summary = "Added banner for [[WP:WikiProject Organized Crime]]";
            Skip = (header.Match(ArticleText).Success || !Namespace.IsTalk(ArticleTitle));
            if (!Skip)
                ArticleText = "{{WikiProject Organized Crime}} \r" + ArticleText;
            return ArticleText;
        }

Also, I re-checked. I can't be sure about exact number of pages to be tagged with banner, but they appear to be more than 7000. In previous calculations, I had not included the terrorist organisations. —usernamekiran(talk) 13:27, 12 February 2018 (UTC)[reply]

{{BAG assistance needed}}