Wikipedia talk:Historical archive/List of administrators by edit count

Script
Here is the script I use to update this list. I know of two bugs:
 * 1) There's a hardcoded limit on the number of administrators, currently 1000.  Should fix that eventually.
 * 2) It doesn't work for admins with "> in their user name.  This bug is probably not worth worrying about.


 * 1) !/bin/bash

URL=en.wikipedia.org dbname=enwiki


 * 1) Note, this doesn't work if an admin has "> in their user name.  Probably not worth worrying about.
 * 2) Note, this doesn't work when there are more than 1000 admins!

rm -f unsorted.file

wget -q -O - "http://$URL/w/index.php?title=Special:Listusers&group=sysop&limit=1000&offset=0" | grep -F "" | sed 's/^.*.*//' | tr _ + | while read line; do

urlname=${line%%\" title=\"User:*} realname=${line##*\" title=\"User:}

edits=`wget -q -O - "http://tools.wikimedia.de/~kate/cgi-bin/count_edits?user=$urlname&dbname=$dbname" | grep "Total edits" | sed 's/.*>\(digit:*\)<\/td><\/tr>/\1/'`

echo "$edits	# User:$realname (>> unsorted.file done sort -rg unsorted.file | sed "s/^\(.*\)	\(.*\)$/\2 \1)/" > output.file chmod go+r output.file mv output.file ~/public_html/List_of_administrators_by_edit_count
 * 1) rm unsorted.file

dbenbenn | talk 5 July 2005 15:58 (UTC)

Old account
Can someone factor in my old account into the script? I had over 17,000 edits on it and I was an administrator on that account from September 2004 until I left it and had my admin status put on my new account, in June 2005. User:TheCustomOfLife was the old account. Mike H. I did "That's hot" first! 06:55, 29 May 2006 (UTC)


 * I see User:Bookofjude did a manual note of it in the April list, so I just reattributed the edits in the list myself for the May list. Mike H. I did "That's hot" first! 07:02, 29 May 2006 (UTC)

wierd..
Apparently there is a link from this article to Image:Human_female_anus.jpeg, but I'm darned if I can see it. --Shiroi Hane 01:56, 9 August 2006 (UTC)
 * Cache issue, perhaps? It's not linked now. Mindspillage (spill yours?) 21:53, 11 August 2006 (UTC)
 * Did a null edit and nuked it a while ago. Tito xd (?!?) 05:18, 12 August 2006 (UTC)

Update?
Any chance we can get an update on this list? :) -- Firsfron of Ronchester 11:14, 16 August 2006 (UTC)
 * A live one too? Sr13 08:21, 2 June 2007 (UTC)

My restoration of this page
My restoration of this page was inspired by this discussion at Wikipedia talk:Wikipedia records. Graham87 (talk) 07:53, 28 October 2023 (UTC)