• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Wikipedia:Bots/Requests for approval/EarwigBot 4

  • Project page
  • Talk
  • Language
  • Watch
  • Edit
< Wikipedia:Bots | Requests for approval
(Redirected from Wikipedia:Bots/Requests for approval/EarwigBot I)


The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Approved.

EarwigBot I

edit
  • (BRFA
  • Approved BRFAs
  • talk
  • contribs
  • count
  • SUL
  • logs
  • page moves
  • block log
  • rights log
  • flag)

Operator: The Earwig (Talk | Contributions)

Automatic or Manually Assisted: Automatic, unsupervised

Programming Language(s): Python and Pywikipedia

Function Overview: The bot finds and removes all duplicate instances of the template {{WikiProject Russian History}}, per this BOTREQ.

Edit period(s): One time run

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

Function Details: This bot is in response to this bot request, brought up because of the recent merger between WikiProject Russian History and WikiProject Russia. This merger, accompanied by making the previously-used template {{WikiProject Russian History}} now redirect to {{WikiProject Russia}}, caused a large number of articles with both templates to have the same template twice. This bot's purpose, using a manually-compiled file, is to remove all instances of {{WikiProject Russian History}} unless the page doesn't have {{WikiProject Russia}}, in which case it does nothing. This is to avoid removing the WikiProject from the page altogether.

The bot functions by using a slightly-modified version of the replace.py (source) Pywikipedia module with the following regex:

$python RussianWikiprojectRemoval.py -file:RussianWikiprojectRemoval.txt -regex -nocase "{{WikiProject Russian (H|h)istory(.*)}}" "" -excepttext:"{{WikiProject Russia[^n]}}"

Thus, the bot will remove all instances of the template unless the other template is not there.

Discussion

edit

Update: The bot's pages list has been compiled. View it here. The Earwig (Talk | Contributions) 16:23, 9 May 2009 (UTC)[reply]

Shouldn't the regex be: "{{WikiProject Russian (H|h)istory(.*?)}}" so that it isn't greedy? LegoKontribsTalkM 03:23, 10 May 2009 (UTC)[reply]
Shouldn't it also add the {{WikiProject Russia}} tag? Pages such as Talk:Okrug will be left without a template. Xclamation point 03:33, 10 May 2009 (UTC)[reply]
Lego, nice catch there. X!, that's the whole point of this bot! Pages like Talk:Okrug will be skipped because they only have one template on them. The point of the bot is not to fix un-broken template transclusions, but rather to remove the double-instance of one template on the same page, such as with Talk:Khrushchev Thaw. The Earwig (Talk | Contributions) 03:43, 10 May 2009 (UTC)[reply]
Ah yes, I misread. Xclamation point 03:48, 10 May 2009 (UTC)[reply]

About how many pages do we expect it to change? – Quadell (talk) 15:35, 10 May 2009 (UTC)[reply]

It's probably between 300 and 500. I can't get a specific estimate because I haven't finished compiling the list yet, but I'll have it pretty soon. The Earwig (Talk | Contributions) 16:28, 10 May 2009 (UTC)[reply]

Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Let's see her go. – Quadell (talk) 12:07, 11 May 2009 (UTC)[reply]

I'll have to run the bot tomorrow, the database lag is preventing the bot from running. It has to pause between edits for that huge number of seconds (built-in pywikipedia feature). Isn't that just wonderful? It keeps climbing, too! The Earwig (Talk | Contributions) 21:59, 11 May 2009 (UTC)[reply]
It's better now. Trial in progress. Standby as the results come in. See Special:Contributions/EarwigBot I for a live feed. The Earwig (Talk | Contributions) 00:47, 12 May 2009 (UTC)[reply]

Trial complete. This was a fast trial because it was fifty edits made in quick succession. My greatest apologies for forgetting to change replace.py's default edit summary. That will be fixed for the next trial/approval. The Earwig (Talk | Contributions) 01:11, 12 May 2009 (UTC)[reply]

EarwigBot I Task 3 Logs — Trial 1

Last updated: 01:11, 12 May 2009 (UTC)

Edits completed: 48


  1. 20:56, May 11, 2009 (hist) (diff) m Talk:Communist Party of the Soviet Union ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  2. 20:56, May 11, 2009 (hist) (diff) m Talk:Vladimir-Suzdal ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  3. 20:56, May 11, 2009 (hist) (diff) m Talk:Red Square ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  4. 20:56, May 11, 2009 (hist) (diff) m Talk:Cossacks ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  5. 20:55, May 11, 2009 (hist) (diff) m Talk:Constantin Stanislavski ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  6. 20:55, May 11, 2009 (hist) (diff) m Talk:Great Purge ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  7. 20:55, May 11, 2009 (hist) (diff) m Talk:Battle of Port Arthur ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  8. 20:55, May 11, 2009 (hist) (diff) m Talk:Pogrom ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  9. 20:55, May 11, 2009 (hist) (diff) m Talk:Mikhail Kalinin ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  10. 20:55, May 11, 2009 (hist) (diff) m Talk:Russian Civil War ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  11. 20:54, May 11, 2009 (hist) (diff) m Talk:Ivan Turgenev ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  12. 20:54, May 11, 2009 (hist) (diff) m Talk:Alexander III of Russia ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  13. 20:54, May 11, 2009 (hist) (diff) m Talk:Sakhalin ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  14. 20:54, May 11, 2009 (hist) (diff) m Talk:Samizdat ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  15. 20:54, May 11, 2009 (hist) (diff) m Talk:Sergei Prokofiev ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  16. 20:53, May 11, 2009 (hist) (diff) m Talk:History of post-Soviet Russia ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  17. 20:53, May 11, 2009 (hist) (diff) m Talk:Nicholas I of Russia ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  18. 20:53, May 11, 2009 (hist) (diff) m Talk:Alexander II of Russia‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  19. 20:53, May 11, 2009 (hist) (diff) m Talk:Peter I of Russia ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  20. 20:53, May 11, 2009 (hist) (diff) m Talk:History of the Jews in Russia ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  21. 20:53, May 11, 2009 (hist) (diff) m Talk:Great Northern War ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  22. 20:52, May 11, 2009 (hist) (diff) m Talk:Nikolai Bukharin ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  23. 20:52, May 11, 2009 (hist) (diff) m Talk:Mikhail Bulgakov ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  24. 20:52, May 11, 2009 (hist) (diff) m Talk:Second Chechen War ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  25. 20:52, May 11, 2009 (hist) (diff) m Talk:Foreign relations of Russia ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  26. 20:52, May 11, 2009 (hist) (diff) m Talk:Nikita Khrushchev ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  27. 20:51, May 11, 2009 (hist) (diff) m Talk:Anna Karenina ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  28. 20:51, May 11, 2009 (hist) (diff) m Talk:Molotov–Ribbentrop Pact ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  29. 20:51, May 11, 2009 (hist) (diff) m Talk:Mikhail Lomonosov ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  30. 20:50, May 11, 2009 (hist) (diff) m Talk:Moscow theatre hostage crisis ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  31. 20:49, May 11, 2009 (hist) (diff) m Talk:Sviatoslav Richter ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  32. 20:49, May 11, 2009 (hist) (diff) m Talk:Mikhail Bakunin ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  33. 20:49, May 11, 2009 (hist) (diff) m Talk:Grand Duchess Anastasia Nikolaevna of Russia ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  34. 20:48, May 11, 2009 (hist) (diff) m Talk:The Gulag Archipelago ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  35. 20:48, May 11, 2009 (hist) (diff) m Talk:Crimean War ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  36. 20:48, May 11, 2009 (hist) (diff) m Talk:Saint Petersburg ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  37. 20:48, May 11, 2009 (hist) (diff) m Talk:Russo-Japanese War ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  38. 20:47, May 11, 2009 (hist) (diff) m Talk:Catherine II of Russia‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  39. 20:47, May 11, 2009 (hist) (diff) m Talk:Primary Chronicle ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  40. 20:47, May 11, 2009 (hist) (diff) m Talk:Mongol invasion of Rus' ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  41. 20:47, May 11, 2009 (hist) (diff) m Talk:History of Russia ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  42. 20:45, May 11, 2009 (hist) (diff) m Talk:Tsar ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  43. 20:45, May 11, 2009 (hist) (diff) m Talk:Vladimir I of Kiev ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  44. 20:45, May 11, 2009 (hist) (diff) m Talk:Russian Revolution (1917) ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  45. 20:45, May 11, 2009 (hist) (diff) m Talk:Operation Barbarossa ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  46. 20:43, May 11, 2009 (hist) (diff) m Talk:Königsberg ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  47. 20:43, May 11, 2009 (hist) (diff) m Talk:Gulag ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))
  48. 20:42, May 11, 2009 (hist) (diff) m Talk:Alexandra Feodorovna (Alix of Hesse) ‎ (Robot: Automated text replacement (-{{WikiProject Russian (H|h)istory(.*?)}} +))

 Approved. That was a pretty boring trial. Nothing to grouse about at all. :) – Quadell (talk) 01:20, 12 May 2009 (UTC)[reply]


The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Bots/Requests_for_approval/EarwigBot_4&oldid=1138380344"
Last edited on 9 February 2023, at 10:32

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 9 February 2023, at 10:32 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop