This is an old revision of this page, as edited by Rick Block (talk | contribs) at 15:56, 20 August 2005 (→your question at []: fix formatting). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 15:56, 20 August 2005 by Rick Block (talk | contribs) (→your question at []: fix formatting)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)Hey please feel free to drop me a note :)
your question at user talk:kate
Hi - I happened to see your question on user:kate's talk page about getting edit counts for lots of anonymous users. If you have access to a Linux, Unix, or Mac machine, or can install a Unix emulator like cygwin on a Windows machine, you can run a shell script that could run commands that would fetch the data and put it in a single file. I think you could also do this fairly easily in Perl (if you know a Perl programmer to ask). Assuming the list of users is in a file called "anons", one per line, the following shell commands create another file called "counts" containing an HTML line with the total edit counts. From there, you could manipulate the counts file (using, say, a word processor) into a CSV format acceptable for entry to excel. The basic idea is that there are scriptable commands (wget or curl) that can be used to fetch web pages.
WGET="wget -q -O -" # on a linux box with wget # WGET="/usr/bin/curl" # on a mac OS X
cat anons | while read ANON; do $WGET "http://kohl.wikimedia.org/~kate/cgi-bin/count_edits.cgi?user=$ANON&dbname=enwiki" 2>&1 | grep "Total edits" done >counts
-- Rick Block (talk) 15:50, August 20, 2005 (UTC)