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

查看:141
本文介绍了以编程方式获取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天全站免登陆