Wikipedia:Bots/Requests for approval/Mr.Z-bot 4


 * 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 Symbol keep vote.svg Approved.

Mr.Z-bot 4
Operator: Mr.Z-man

Automatic or Manually Assisted: Automatic

Programming Language(s): Pywikipedia

Function Summary: Compiling pageview statistics pages for projects like 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. 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 AV, but I'd be willing to do this for any project that doesn't have an unreasonable number of pages in its scope.
 * 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

Discussion
I've already run a version of the script for AV using my main account, the table is at 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)


 * Go ahead and do a full run - not sure if you have one project or many, but don't go too far above 10 edits. --uǝʌǝsʎʇɹoɟʇs (st47) 01:34, 31 July 2008 (UTC)

You're using Henrik's API, right? --MZMcBride (talk) 02:25, 3 August 2008 (UTC)
 * Yes. And I've just run it for WPMI, at 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)
 * Also WikiProject Utah State Highways/Popular pages. Mr.Z-man 15:45, 3 August 2008 (UTC)


 * Okay, I'm running it now for 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)

Is the trial complete? – Quadell (talk) 13:34, 6 August 2008 (UTC)
 * Its only done 3 edits (4 if you count the one done under my account), 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)


 * It looks like this bot has made just 2 edits recently, although those edits seem to have gone well. I'm not familiar with Henrik's API, so I'm unclear whether you're waiting on it or not. The edits I've seen seem fine... are you ready to go live if approved? – Quadell (talk) 13:01, 18 August 2008 (UTC)
 * The problem is that Henrik seems to have gone on an indefinite vacation, 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)
 * 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)
 * Trial ✅. Mr.Z-man 03:32, 7 September 2008 (UTC)
 * This looks like it went very, very well, to me, and is very non-controversial.  SQL Query me!  05:50, 7 September 2008 (UTC)


 * 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.