1

我当前的 Android 应用程序使用 WebView 来允许用户搜索科学期刊(文章)。

当我尝试浏览 Google Scholar 时,我收到一个屏幕,上面写着

We're Sorry... ...but your computer or network may be sending automated queries. To protect our user's we can't process your request right now.

automated query”是什么意思?我的 webView 只是尝试加载 Scholar URL 为什么谷歌用户需要保护它?

这是否意味着永远无法通过 Android WebView 访问 Google Scholar?

有什么方法可以通过 Android Webview 访问 Google Scholar?

4

1 回答 1

2

清除 webview 的缓存和 cookie,然后重试。

CookieSyncManager.createInstance(this);         
CookieManager cookieManager = CookieManager.getInstance();        
cookieManager.removeAllCookie();

对于棒棒糖及以上:

removeAllCookies(ValueCallback)

这个话题在谷歌论坛里讨论过

笔记:

QS 已经用我的评论解决了这个问题,我写这个答案是为了帮助一些面临这个问题的人。

于 2017-07-21T06:38:59.780 回答