How to access google scholar via Android Webview

痞子三分冷 提交于 2019-12-11 16:39:48

问题


My current Android Application uses a WebView to allow users to search for Scientific Journals (articles).

When I try to browse to Google Scholar I receive a screen that says

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.

What does "automated query" mean? My webView simply attempts to load the Scholar URL why do google users need protecting from that?

Does this mean that Google Scholar can never be accessed via an Android WebView?

Is there any way to access Google Scholar via an Android Webview?


回答1:


Clear the cache and cookies for the webview and try again.

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

For Lollypop and above:

removeAllCookies(ValueCallback)

This topic is discussed here in google forum

Note:

QS already fixed the problem with my comment, i written this answer to help some one who faces this issue.



来源:https://stackoverflow.com/questions/45184636/how-to-access-google-scholar-via-android-webview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!