以编程方式获取Google搜索结果 [英] Programmatically get Google search results

查看:76
本文介绍了以编程方式获取Google搜索结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从程序内部获取Google搜索结果?我需要获取指定字符串的搜索结果数组.

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

推荐答案

C ++比其他语言需要更多的工作.您需要连接到Google的 REST搜索API ,然后使用JSON解析器以解析搜索结果. Json.org 收集了各种语言的JSON解析器.

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.

这篇关于以编程方式获取Google搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆