Another script: goog-love.pl

A quick hack –

goog-love.pl - find out where your site’s google juice comes from

This script will grind through your web site’s “access.log” file (which must be
in the “combined” log format). It’ll pick out the top 100 Google searches
found in the referer field, re-run those searches, and determine which ones are
giving your website all the linky Google love — in other words, the searches
that your site ‘wins’ on.

The output is in plain text and a chunk of HTML.

usage:

goog-love.pl sitehost google-api-key < access.log > out.html

e.g.

cat /var/www/logs/taint.org.* | goog-love.pl \
  taint.org 0xb0bd0bb5yourgoogleapikeyhere0xdeadbeef | tee out.html

NOTE: this script requires the SOAP::Lite module be installed. Install
it using apt-get install libsoap-lite-perl or cpan SOAP::Lite.
It also requires a Google API key.

For example, here are the current results for this
site
. You can immediately see some interesting stuff that’s not
immediately obvious otherwise, such as my site being the top hit for [beardy
justin
] ;)

Download here (4 KiB perl script).

This post was written by Justin, source: Another script: goog-love.pl

Comments are closed.

Creative Commons License
This work is licensed under a Creative Commons License.