vba - 如何在Excel VBA中使用Google的搜索结果?

标签 vba excel

我复制了 Google 的搜索结果,现在想将其粘贴到 Excel 上。

我能够将其写入在 IE 中搜索的位置,但不明白更多内容。

Sub get()
With CreateObject("InternetExplorer.application")
.Visible = True
.navigate ("http://www.google.com/")
While .Busy Or .readyState <> 4
DoEvents
Wend
.document.all.q.Value = "keyword"
.document.all.btnG.Click
End With
End Sub

最佳答案

通过手动浏览搜索页面以外的其他方式使用 Google(目前)违反了他们的 Terms of Service (强调我的):

5.3 You agree not to access (or attempt to access) any of the Services by any means other than through the interface that is provided by Google, unless you have been specifically allowed to do so in a separate agreement with Google. You specifically agree not to access (or attempt to access) any of the Services through any automated means (including use of scripts or web crawlers) and shall ensure that you comply with the instructions set out in any robots.txt file present on the Services.

我知道这并不能解决您眼前的问题。

关于vba - 如何在Excel VBA中使用Google的搜索结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/881502/

相关文章:

python - Python 和 MS Access VBA 之间 OLEDB/ODBC 的相反工作

excel - 冒号带等号 ":="是什么意思

Excel宏数据刷新与保护

excel - 选择具有多个真实条件的语句 Excel vba

html - 使用 VBA 将带有 HTML 标记的文本呈现为 Word 表格中的格式化文本

VBA:将日期格式化为美国标准

在外部工作簿中使用 Excel 引用表的 VBA vlookup

java - 将 SXSSF 保存为 .xls 文件

ruby-on-rails - Railscasts 第 362 集 - 导出到 Excel : How to avoid the warning message given by Excel 2010 when opening the file?

excel - 在圆环图上定位标签