Tuesday, October 27, 2009

StackOverflow Reputation Tracker

Did I say that I've gotten addicted to StackOverflow? Here is a snippet of shell script to check your StackOverflow reputation from the comfort of your Linux console. Replace 165297 with your user ID.
json=$(curl -s http://stackoverflow.com/users/flair/165297.json) 
echo $json | sed 's/.*"reputation":"\([0-9,]\{1,\}\)".*/\1/' | sed s/,//
Haven't tested this for other sites in the trilogy, but I believe this would work for all the three sites and also the meta. Now onto writing an AIR app that would track reps and alert about new questions with your favorite tags... :)

No comments:

Post a Comment