Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.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
Excel 将谷歌搜索结果的前两个URL复制到电子表格_Excel_Search Engine_Vba - Fatal编程技术网

Excel 将谷歌搜索结果的前两个URL复制到电子表格

Excel 将谷歌搜索结果的前两个URL复制到电子表格,excel,search-engine,vba,Excel,Search Engine,Vba,我正在尝试运行一个基于a列、b列和c列的搜索,在google中搜索,并将前两个URL复制到d列和e列中的同一页 将有ve个变量行,但列将是固定的 有什么帮助吗? 要使用API,请启动GET请求,如下所示: Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP") URL = "http://www.google.com/whatever_the_api_tells_you_to_use" objHTTP.Open "GET", URL, F

我正在尝试运行一个基于a列、b列和c列的搜索,在google中搜索,并将前两个URL复制到d列和e列中的同一页

将有ve个变量行,但列将是固定的

有什么帮助吗?

要使用API,请启动GET请求,如下所示:

Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")
   URL = "http://www.google.com/whatever_the_api_tells_you_to_use"
   objHTTP.Open "GET", URL, False
   objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
   objHTTP.send ("")
对于来自API的响应,请访问
objHTTP.responseText

如果您编辑文章以提供更多详细信息,我可以提供更具体的帮助。

或者:

问候