Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/445.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript iframe中的Google搜索结果_Javascript_Html_Iframe_Google Search - Fatal编程技术网

Javascript iframe中的Google搜索结果

Javascript iframe中的Google搜索结果,javascript,html,iframe,google-search,Javascript,Html,Iframe,Google Search,在我的研究范围内,谷歌不再允许其页面显示在iframe中。以前有一个URL(),它显示Google结果,并允许在iframe中显示。那个网站最近倒闭了 我想知道现在有没有办法在iframe中使用Google搜索结果?在iframe中有搜索结果的最佳解决方案/备选方案是什么 谢谢 您可以使用此链接来代替,它工作得非常好: 对于特定单词,您可以使用此链接: 而iframe应如下所示: <iframe src="https://www.google.com/search?igu=1">

在我的研究范围内,谷歌不再允许其页面显示在iframe中。以前有一个URL(),它显示Google结果,并允许在iframe中显示。那个网站最近倒闭了

我想知道现在有没有办法在iframe中使用Google搜索结果?在iframe中有搜索结果的最佳解决方案/备选方案是什么


谢谢

您可以使用此链接来代替,它工作得非常好:

对于特定单词,您可以使用此链接:

而iframe应如下所示:

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

您可以使用此链接来代替,它工作得非常好:

对于特定单词,您可以使用此链接:

而iframe应如下所示:

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


好吧,谷歌不想被框起来,所以唯一的解决办法就是用一个代理来删除headers@epascarello好的,我们可以这样做,但问题也在于结果链接。他们首先指向谷歌,然后重定向到最终的网站。如果重定向部分通过浏览器(iframe)进行,则会失败。你知道点击后结果是否会正常显示吗?你不使用他们的自定义搜索或API的原因?@epascarello告诉我更多关于that@epascarello注意,我想在整个网页上搜索一些东西,而且不是我的应用程序/网站中的自定义搜索。谷歌不想被框起来,所以唯一的解决办法是使用代理删除headers@epascarello好的,我们可以这样做,但问题也在于结果链接。他们首先指向谷歌,然后重定向到最终的网站。如果重定向部分通过浏览器(iframe)进行,则会失败。你知道点击后结果是否会正常显示吗?你不使用他们的自定义搜索或API的原因?@epascarello告诉我更多关于that@epascarello请注意,我想在整个网站上搜索一些东西,而不是在我的应用程序/网站中进行自定义搜索