【问题标题】:Google search results in an iframeiframe 中的 Google 搜索结果
【发布时间】:2016-06-08 16:04:48
【问题描述】:

在我的研究范围内,Google 不再允许其页面显示在 iframe 中。曾经有一个 URL (http://gog.is) 显示 Google 结果并允许在 iframe 中显示。那个网站最近下线了。

我想知道现在有没有办法在 iframe 中显示 Google 搜索结果?在 iframe 中显示搜索结果的最佳解决方案/替代方案是什么?

谢谢!

【问题讨论】:

  • 好吧,谷歌不希望被陷害,所以唯一的解决方法是删除标题的代理
  • @epascarello 好的,我们可以这样做,但问题也在于结果链接。他们首先指向谷歌,然后重定向到生成的网站。如果该重定向部分通过浏览器(iframe)发生,它将失败。不知道点击后结果会不会正常显示?
  • 您没有使用他们的自定义搜索或 API 的原因是什么?
  • @epascarello 告诉我更多相关信息
  • @epascarello 请注意,我想在整个网络上搜索某些内容,而不是在我的应用程序/网站中进行自定义搜索

标签: javascript html iframe google-search


【解决方案1】:

你可以用这个链接代替https://google.com/,效果很好:

https://www.google.com/search?igu=1

具体的词你可以使用这个链接:

https://www.google.com/search?igu=1&ei=&q=YOUR+WORD

iframe 应该是这样的:

<iframe src="https://www.google.com/search?igu=1"></iframe>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-07-13
    • 1970-01-01
    • 2011-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多