tags:

views:

43

answers:

2

Hi,

I need a Java library for doing web searches ( any search engine is good ). I should be able to to write code such as:

WebSearch search = new WebSearch("Apple");
System.Out.Println("Results = " + search.Results.Count); 

Does such a library/API exist ?

Regards, Sebastian

A: 

I think this is your best options.

What is important here is Google's API:

http://ajax.googleapis.com/ajax/services/search/web?start=0&rsz=large&v=1.0&q=Apple

Note the "Apple" in the query String.

With this in mind, use any Java HttpClient (URLConnection class, Apache's HttpClient, you name it) to query and get results back.

Pablo Santa Cruz
A: 

lucene is Java based search engine

GustlyWind
can one use lucene to search the world wide web ?
MadSeb