User:Ahechtbot

Category:Commons bots#Ahechtbot

Operator: Ahecht (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Task 1

Approved but inactive. See Commons:Bots/Requests/Ahechtbot

Consolidate {{YMDcat}} and {{Date navbox}}.

Task description

Bot's tasks: Many of the pages in Category:Days by day contain both {{YMDcat}} and {{Date navbox}}, both of which have been outputting the current date into the category description. {{Date navbox}} also has output a navbox, which is more useful. I have now integrated {{YMDcat}} into {{Date navbox}} so that both are no longer needed on the same page.

  1. The first task of the bot is to go through all category pages that transclude {{Date navbox}} and remove {{YMDcat}}.
    pwb.py replace -always -transcludes:Template:Date_navbox -ns:14 -log -v -summary:"Bot: Removing redundant {{[[Template:YMDcat|YMDcat]]}} template (v2)" -regex "{{YMDcat(.*?)}}\n{{Date navbox(.*?)}}|{{Date navbox(.*?)}}\n{{YMDcat(.*?)}}" "{{Date navbox\2\3}}"
  2. The second task of the bot is to then go through all the remaining category pages that transclude {{YMDcat}} and replace it with {{Date navbox}}
    pwb.py replace -always -transcludes:Template:YMDcat -ns:14 -log -v -summary:"Bot: Replacing {{[[Template:YMDcat|YMDcat]]}} with {{[[Template:Date navbox|Date navbox]]}}" -regex "{{YMDcat\|(.*?)\|(.*?)\|(.*?)\|(.*?)}}" "{{Date navbox|\1\2|\3|\4}}"

Automatic or manually assisted: Bot will be started manually. Once it is running, pywikibot will continue automatically with occasional supervision.

Edit type (e.g. Continuous, daily, one time run): One time run

Maximum edit rate (e.g. edits per minute): Pywikibot default (6 edits per minute)

Programming language(s): Pywikibot

Task 2

Proposed. See Commons:Bots/Requests/Ahechtbot 2

Tabulate pageviews.

Task description

Bot's tasks for which permission is being sought: The bot will scan the English Wikipedia (initially) and other wikipedias that may opt-in for talk pages that transclude the en:Template:Xreadership or similar templates, retrieve page view data for those pages, and upload it as tabular data to subpages of Data:Sandbox/Ahecht/pageviews/en.wikipedia.org/ (initially) or a location such as Data:Pageviews/en.wikipedia.org/ (or similar for other wikis). It will also create or update a corresponding .chart page for each .tab page it uploads. This is part of a larger effort to replace en:Template:Annual readership and en:Template:Graph:PageViews with new templates that use the new Chart extension.

Automatic or manually assisted: Automatic, sporadically supervised.

Edit type (e.g. Continuous, daily, one time run): Daily

Maximum edit rate (e.g. edits per minute): 12/minute (or slower as determined by pywikibot)

Programming language(s): Python/Pywikibot. Source at https://gitlab.wikimedia.org/toolforge-repos/tabulatepageviews

Category:Commons bots