java - 如何在不被google禁止的情况下搜索关键词?

标签 java selenium-webdriver keyword-search

我正在使用 Selenium 来通过 Google 搜索获取一些结果。该程序是用Java 实现的。我搜索一些关键字,例如 allintitle:best smart pc。所以当我多次使用这个关键字时,谷歌就会禁止我的IP。那么我需要知道如何预防这个问题?如何在不封禁IP的情况下搜索关键字列表?有没有使用SeleniumJava来做到这一点的替代方法?

最佳答案

不,如果你坚持谷歌会禁止你,你就违反了他们的 Terms & Conditions ,具体来说:

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.

如果您只是想学习如何使用 Selenium,我建议使用类似 The Internet 的东西(一组自动化学习资源)。

关于java - 如何在不被google禁止的情况下搜索关键词?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55060984/

相关文章:

java - 如何通过selenium访问具有多个主机IP的负载均衡器?

php - sphinx 搜索 : Partial keyword

javascript - 正则表达式关键字过滤

java - 将一组文本按钮添加到网格布局

java - Selenium Java 多线程 FirefoxDriver

java - 为什么 java webdriver 中的 getWindowHandles() 返回 Set<> 而不是 ArrayList<>?

seo - 有没有办法将关键字列表添加到 Google 网站?

java - 从 java 执行 C 二进制文件并从进程的输出流中读取

java - 查找两个数组之间的重复值

Java 转换 : Which is better -- the imperative or programmatic way?