如何从C#中获取Google搜索结果 [英] How to get Google search results in a C# from

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

问题描述

我怎样才能从中获取谷歌搜索结果?对于我:我输入一个文本框:汤姆巡航时代?该程序从谷歌获取数据并输入列表框:54或汤姆邮轮54岁。



我尝试过:



i知道我应该从谷歌获取json数据,但我不知道怎么做! :(

Hi, How can i get google search results in a from ? for ex : i type in a text box : tom cruise age ? and the program get data from google and type in a list box : 54 or tom cruise is 54 years old.

What I have tried:

i know that i should get json data from google but i don't know how ! :(

推荐答案

他们的API详细信息可以在这里找到



自定义搜索JSON / Atom API  | 自定义搜索  |  Google Developers [ ^ ]



为了抢先你的下一个问题,没有办法免费这样做。谷歌是一个企业,他们通过在搜索结果中展示广告赚钱,所以如果你使用api你跳过该功能因此,他们会向您收取费用。没有任何其他方式可以获取不违反其条款和条件的数据。谷歌已经工作了十年来建立他们的服务,只是因为它在互联网上没有给出您有权免费使用他们的辛勤工作。
Their API details can be found here

Custom Search JSON/Atom API  |  Custom Search  |  Google Developers[^]

To pre-empt your next question, no there is no way of doing this for free. Google is a business, they make money by showing ads in their search results so if you use an api you skip that feature so they are going to charge you. There isn't any other way of getting the data that does not violate their terms and conditions. Google have worked for a decade to build their service and just because it is on the internet doesn't give you the right to use their hard work for free.


尝试使用Google:来自Google搜索的json数据 - Google搜索 [ ^ ]。
Try using Google: json data from google search - Google Search[^].


这篇关于如何从C#中获取Google搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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