scrapping google is against TOS, the only way to make it work properly is adding a proxy mask and a dynamic IP with a single IP per keyboard search. This is the only way to avoid getting banned for screen scraping hehe..
Here is how i implemented it with proxy but just to get page rank, serp rank with proxy will come up later on.
hsesoftware.net/pagerank.php
as soon as i get it working Ill post the source code for donwload.