You'd have to write a parser to extract the information you want from the html. It's possible but since html wasn't meant to be used like this and is often messy it can be tough going. Maybe Google offers a means to get search results in a machine friendly XML format in which case this becomes easier.
Joined: Dec 13, 2004
But what I need is not only to extract links from google,but also from few other search engines.
google offers the google api. it is verry easy to use and would avoid the parsing of html. you need to register with google, you are limited to 1000 queries a day and can not develop commercial products without asking google first (google api fag)
Joined: Oct 12, 2000
If you need more data, you need to write more code to extract it. No way around it I'm afraid. There's no magic bullet.