root/stats/google.sh

Revision 534, 331 bytes (checked in by mankoff, 2 years ago)

track google hits

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3all=`curl -s -A "Mozilla/4.0" "http://www.google.com/search?q=edgcm" | grep -o "of about <b>[0-9,]*</b> for" | sed s/[^0-9]*//g`
4edu=`curl -s -A "Mozilla/4.0" "http://www.google.com/search?q=edgcm+site:edu" | grep -o "of about <b>[0-9,]*</b> for" | sed s/[^0-9]*//g`
5
6/sw/bin/rrdtool update ./google.rrd "N:$all:$edu"
Note: See TracBrowser for help on using the browser.