How to search in google using java code?

How to do a google search using java code?

+3
source share
2 answers

I would tell you to use one of the APIs . Unfortunately, there seems to be no search. As a result, you will need to use HtmlUnit to emulate the browser and look for their results (obviously, you can go harder and make some HTTP requests yourself, but who will?).

+4
source

Unfortunately, the SOAP API is deprecated. But you can use the AJAX API for purposes other than JavaScript, see, for example:

http://www.ajaxlines.com/ajax/stuff/article/using_google_is_ajax_search_api_with_java.php

. StackOverflow. , , , :

+3

Source: https://habr.com/ru/post/1763479/


All Articles