how toextract links from search engine results

S

suman.tedla

Hi,

I am writing a java application which extracts the results of search
engines,( its search engines-not one search engine) on a particular
query.I know how to connect to respective search engines and get the
html data.

But,What is the efficient way to extract the links from the results
pages.How to parse the html code.I have to extract results from atleast
5 search engines.

To say exactly, I want to list the urls listed in green color, for
example in google.
Guys , please help me.

Your help is highly appreciated.
 
R

Robert Mischke

I am writing a java application which extracts the results of search
engines,( its search engines-not one search engine) on a particular
query.I know how to connect to respective search engines and get the
html data.

But,What is the efficient way to extract the links from the results
pages.How to parse the html code.I have to extract results from atleast
5 search engines.

Regular expressions. Look for "Pattern" and "Matcher" in the Java API.

Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top