you could use the net.webclient class to download the html generated by your search on google. then you need to parse the html to extract the links