How do I search for a given keyword in major search engines (or defdind sites) and then capture the links only from the search result page.

I dont want to show the entire result page, but only the links returned in my page.

Thanx in advance for any help.
Pls give code.