Just an alternative. Searching google and parsing the results can also be done in a generic way using any HTML Parser such as Jsoup in Java. Following is the link to the mentioned example.
https://www.codeforeach.com/java/example-how-to-search-google-using-java