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.

Operator: Mr.Z-man

Automatic or Manually Assisted: Automatic

Programming Language(s): Pywikipedia

Function Summary: Compiling pageview statistics pages for projects like Wikipedia:WikiProject Aviation/Popular pages

Edit period(s) (e.g. Continuous, daily, one time run): 1 edit per month per project

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

Function Details: It will generate lists of the 2500 most viewed articles in a project.

  1. It uses the assessment categories to get all the pages in the project, and to get the assessment rating for each without having to load the talk page
  2. It gets the hitcount from Henrik's site.
  3. The data for all the pages is stored locally in a MySQL database table, then the pages with the top 2500 hits are made into a wikitable and posted to a subpage of the project

It only needs to make one edit for each run, coupled with API queries to get the pages from the categories. Currently this is only scheduled to run for Wikipedia:AV, but I'd be willing to do this for any project that doesn't have an unreasonable number of pages in its scope.

Discussion[edit]

I've already run a version of the script for Wikipedia:AV using my main account, the table is at Wikipedia:WikiProject Aviation/Popular pages. The initial version didn't include the assessment info, that was added manually by another user, but future runs will include the assessment info. Mr.Z-man 00:01, 31 July 2008 (UTC)[reply]

You're using Henrik's API, right? --MZMcBride (talk) 02:25, 3 August 2008 (UTC)[reply]

Yes. And I've just run it for Wikipedia:WPMI, at Wikipedia:WikiProject Michigan/Popular pages. I'm thinking 2500 may be too much for smaller projects. I'll need to come up with something else. Probably either a fraction of the total number of pages or only pages with at least a certain number of hits, as long as the total is <= 2500. Mr.Z-man 03:44, 3 August 2008 (UTC)[reply]
Also Wikipedia:WikiProject Utah State Highways/Popular pages. Mr.Z-man 15:45, 3 August 2008 (UTC)[reply]
Okay, I'm running it now for Wikipedia:BIRD. It will set the limit for pages in the list at ⅛ the total number of pages or 2500, whichever is less, unless there are fewer than 500 total pages, in which case it will list all of them. Mr.Z-man 19:24, 3 August 2008 (UTC)[reply]

Is the trial complete? – Quadell (talk) 13:34, 6 August 2008 (UTC)[reply]

Its only done 3 edits (4 if you count the one done under my account), Wikipedia:WikiProject Birds/Popular pages being the latest. Once the full stats for July are available on Henrik's site I'll update all the existing lists. Mr.Z-man 19:55, 9 August 2008 (UTC)[reply]
The problem is that Henrik seems to have gone on an indefinite vacation[1], only about half of the July data is on his website. Until it gets updated or someone else takes over for it, there's really not much I can do. I don't have enough hard drive space to be able to work effectively with the raw data. Mr.Z-man 14:45, 18 August 2008 (UTC)[reply]
Henrik is back now, so I should be able to run this for August in a few days when the site is updated. Mr.Z-man 21:57, 2 September 2008 (UTC)[reply]
Trial  Done. Mr.Z-man 03:32, 7 September 2008 (UTC)[reply]
This looks like it went very, very well, to me, and is very non-controversial.  Approved. SQLQuery me! 05:50, 7 September 2008 (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.