How to search in google by using java code?
+4
A:
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 ?).
Riduidel
2010-09-06 15:40:13
+3
A:
Unfortunately the SOAP API has been deprecated. But you can use the AJAX API for non-JavaScript purposes as well, see for example:
http://www.ajaxlines.com/ajax/stuff/article/using_google_is_ajax_search_api_with_java.php
See also the StackOverflow questions. Actually it seems your question is a duplicate of these, so it might be closed soon:
chiccodoro
2010-09-06 15:47:45