共有 0 个贴子
没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > gsearch-java-client |
gsearch-java-client
|
0 | 0 | 49 |
贡献者 | 讨论 | 代码提交 |
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);