In general, it's not possible.
Google is very very protective of its content, and (for example) it will *NOT* let you use server-side code to make a search. You can try it, and *maybe* you will succeed for a while, by "spoofing" google into thinking you are a browser, but eventually Google will find a way to shut you down. (I know; I did this 3 times and each time Google changed their browser detection and my code no longer worked.)
Google doesn't even like to show its results in an <iframe> and will "pop" itself out of the iframe.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.