gsearch-java-client


Java client library for Google's Ajax Search API

Java client library for Google's Ajax Search API

Example: searching Google News

```

import gsearch.*;

Client client = new Client();

List portland = c.searchNewsByLocation("97202");

List yankees = c.searchNews("Yankees", "New York, NY", null);

List boston = c.searchNews(null, "Boston, MA", NewsTopic.BUSINESS);

```

Example: Google Local search

```

import gsearch.*;

Client client = new Client();

double lat = 45.521694;

double lon = -122.691806;

List coffee = c.searchLocal(lat, lon, "coffee");

```

Example: Google web search

```

import gsearch.*;

Client client = new Client();

List ajax = c.searchWeb("google ajax search");

```

Example: Google book search

```

import gsearch.*;

Client client = new Client();

List books = c.searchBooks("economy");

```

Example: Google image search

```

import gsearch.*;

Client client = new Client();

List lolcats = c.searchImages("lolcats");

```

Example: Google blog search

```

import gsearch.*;

Client client = new Client();

List lolcats = c.searchBlogs("lolcats");

```

Example: Google video search

```

import gsearch.*;

Client client = new Client();

List video = c.searchVideos("bike ride", OrderBy.DATE);

```

Project Information

Labels:
java search