This post originated from an RSS feed registered with Java Buzz
by dion.
Original Post: Argos: Simple Java Search Engine Wrapper API
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Nick Lothian has put up a 0.1 release of a nice Search Engine wrapper API called Argos.
About Argos
Argos is an open source (Apache licenced) Java library for accessing the search APIs provided by internet search engines. It provides a consistent, extensible and easy to use API, while supporting advanced features such as a paged request model and a simultaneous search across multiple engines.
Argos currently supports the following search engines:
Blogdigger
Del.icio.us
Feedster
Google
Google Desktop Search
MSN Search
Technorati
Yahoo
Here is an example of running a simultanous search on MSN and Blogdigger:
List<Searcher> searcherList = new LinkedList<Searcher>();
searcherList.add(new MSNWebSearcher());
searcherList.add(new BlogdiggerWebSearcher());
SimultaneousSearcher searcher = new SimultaneousSearcher(searcherList);
Iterator<SearchResult> it = searcher.search("Java");
while (it.hasNext()) {
SearchResult result = it.next();
System.out.println(result.getTitle() + " Address: " + result.getAddress());
}
A nice simple API, and one consistent one for a group of search engines.