如何使用java代码在谷歌搜索? [英] How to search in google by using java code?
本文介绍了如何使用java代码在谷歌搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用java代码在google中搜索? 我会告诉你使用其中一个 API 。不幸的是,似乎并没有一个用于搜索。因此,您必须使用 HtmlUnit 模拟浏览器并查看其结果(显然,你可以用更难的方法,自己做一些HTTP查询,但是谁会那么做?)。
How to search in google by using java code?
解决方案
I would have told you to use one of their API. Unfortunatly, there does not seems to exist one for search. As a consequence, you'll have to use HtmlUnit to emulate a browser and go see their results (obviously, you can go the harder way and do some HTTP queries by yourself. But who would do that ?).
这篇关于如何使用java代码在谷歌搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文