Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically get Google search results

How can I get Google search results from inside a program? I need to get an array of search results for a specified string.

like image 869
nonpolynomial237 Avatar asked Sep 09 '09 02:09

nonpolynomial237


2 Answers

C++ requires a little more work then other languages. You will need to connect to Google's REST Search API and then use a JSON parser to parse out the search results. Json.org has a collection of JSON parsers in various languages.

like image 188
Brandon Bodnar Avatar answered Oct 12 '22 23:10

Brandon Bodnar


Use their javascript search API http://code.google.com/apis/ajaxsearch/

They no longer support their SOAP search api unfortunately

like image 41
Charles Ma Avatar answered Oct 12 '22 23:10

Charles Ma