【发布时间】:2012-01-05 06:00:20
【问题描述】:
我如何使用 Google 搜索 api 在 google 引擎、网站标题、简短描述和 URL 上获得喜欢。可能吗? 我尝试了 api,但它只给了我一些没有网址或网站标题的信息。
【问题讨论】:
我如何使用 Google 搜索 api 在 google 引擎、网站标题、简短描述和 URL 上获得喜欢。可能吗? 我尝试了 api,但它只给了我一些没有网址或网站标题的信息。
【问题讨论】:
使用 Google 购物 API,您可以检索标题、简短描述和网址。我在一个 c# 应用程序中实现了这一点,它从下面的 url 返回一个 json 文件并对其进行解析。
您需要一个apiId 才能开始。
使用这个url,你可以在q之后添加搜索参数,在这个例子中只是搜索数码相机。
https://www.googleapis.com/shopping/search/v1/public/products?key=key&country=US&q=digital+camera
见http://code.google.com/apis/shopping/search/v1/getting_started.html 更多详情
【讨论】:
我不确定我是否有足够的信息,但我发现 Google 自定义搜索 API 参考页面有参考 JSON/ATOM 示例:
https://code.google.com/apis/customsearch/v1/reference.html
此查询将帮助您入门:
https://www.googleapis.com/customsearch/v1?key={YOURAPIKEY}&cx={cx?}&cref={cref?}&q=st%20olaf
这能让你开始吗?
保重! 速度
【讨论】:
t use it how it needs,but this is what i am getting and it doesnt 帮了我很多