The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Speedily Approved.

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

Time filed: 01:15, Wednesday, December 12, 2018 (UTC)

Function overview: Generate a page containing a table of recent TFAs

Automatic, Supervised, or Manual: Automatic and manual. When run in manual node, it generates the month requested on the call line. When run in Bot mode, it generates a report for the previous month.

Programming language(s): Perl

Source code available: User:FACBot/tfa stats.pl

Links to relevant discussions (where appropriate): Wikipedia:Bot requests#Automated creation of subpages of Wikipedia:Today's featured article/recent TFAs


Edit period(s): Monthly.

Estimated number of pages affected: 1 per month

Namespace(s): Wikipedia

Exclusion compliant (Yes/No):

Function details: Bot runs a few days after the first of the month to allow the page view stats to be collected.

  1. Goes through the previous month's TFAs (in Wikipedia:Today's featured article/$date) and extracts the articles involved
  2. Looks them up in Wikipedia:Featured articles to determine their FAC category
  3. Goes to their talk pages, and extracts the promotion date from the ArticleHistory template
  4. Obtains the page views from the //wikimedia.org/api/rest_v1/metrics/pageviews/per-article JSON API
  5. Generates a wiki table and writes it to Wikipedia:Today's featured article/recent TFAs/$month

Results of a test run can be found at Wikipedia:Today's featured article/recent TFAs/August 2018

Discussion

[edit]
Speedily Approved. - speedily approving as this is very low, non reader impacting, requested task. Am confident that the operator will make any minor adjustments or corrections that could arise. — xaosflux Talk 15:38, 12 December 2018 (UTC)[reply]
The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.