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
I think this is your best options.
What is important here is Google’s API:
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.