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
Approved.
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.
- 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
- It gets the hitcount from Henrik's site.
- 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
editI'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]
Approved for trial (10 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. 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)[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]
- 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)[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]
- This looks like it went very, very well, to me, and is very non-controversial.
- Trial
- 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]
- 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]
- 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.