Jump to content

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

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Script

[edit]

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.
#!/bin/bash

URL=en.wikipedia.org
dbname=enwiki

# Note, this doesn't work if an admin has "> in their user name.  Probably not worth worrying about.
# 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 "<li>" | sed 's/^.*<li><a href="\/wiki\/User://' | 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]] ([http://tools.wikimedia.de/~kate/cgi-bin/count_edits?user=$urlname&dbname=$dbname" >> 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
# rm unsorted.file

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

Old account

[edit]

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)[reply]

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)[reply]

wierd..

[edit]

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)[reply]

Cache issue, perhaps? It's not linked now. Mindspillage (spill yours?) 21:53, 11 August 2006 (UTC)[reply]
Did a null edit and nuked it a while ago. Titoxd(?!?) 05:18, 12 August 2006 (UTC)[reply]

Update?

[edit]

Any chance we can get an update on this list? :) --Firsfron of Ronchester 11:14, 16 August 2006 (UTC)[reply]

A live one too? Sr13 08:21, 2 June 2007 (UTC)[reply]

My restoration of this page

[edit]

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