Login issue with gconnect() in gtrendsR package

被刻印的时光 ゝ 提交于 2019-12-09 04:20:03

问题


I am trying to log into my Google account in R using gconnect() in the gtrendsR package, but am running into issues. I have been doing research using Google Trends data for the last month, and have never had a problem with this.

Please let me know if you have any thoughts. I had Google Support take a look at my account to see if there were any holds or something, but nothing showed up. Also tried logging in through another account which didnt work..

This is what I am trying to do:

usr <- 'my_username@gmail.com'
psw <- 'my_password'
gconnect(usr, psw)

And then I am returned with the following error:

Google login failed! Check your login information.NULL


回答1:


It seems there is no quick solution for gtrends. However, I discovered a URL which directly downloads the data.

This url is the link of 'download as csv' menu in Google Trends. However, direct fetching from R by download.file function is problematic.




回答2:


See this page: https://www.google.com/settings/security/lesssecureapps. Try switching to "on" if the setting is "off".




回答3:


Log into your Google Account again and check if it works now. I had the same problem but miraculously everything works again today. It seems to me as if Google sometimes moves accounts into some sort of quarantine state and releases them after a while.



来源:https://stackoverflow.com/questions/38536700/login-issue-with-gconnect-in-gtrendsr-package

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