Programmatically get Google search results

后端 未结 5 2067
刺人心
刺人心 2020-12-16 04:12

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

5条回答
  •  有刺的猬
    2020-12-16 04:28

    Google offers Ajax API for JavaScript programmers and a poor documentation for Python, PHP and Flash.By the way, If you are able to connect to remote http server with any other c++ library, you can do it. just change the url you are using and point it to: http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q={My_CPP_Query} You will get JSON data stream, that you will be able to work with.

提交回复
热议问题