简体   繁体   English

在gtrendsR包中使用gconnect()登录问题

[英]Login issue with gconnect() in gtrendsR package

I am trying to log into my Google account in R using gconnect() in the gtrendsR package, but am running into issues. 我正在尝试使用gtrendsR包中的gconnect()登录我在R中的Google帐户,但遇到了问题。 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

It seems there is no quick solution for gtrends. 似乎没有gtrends的快速解决方案。 However, I discovered a URL which directly downloads the data . 但是,我发现了一个直接下载数据URL

This url is the link of 'download as csv' menu in Google Trends. 此网址是Google趋势中“下载为csv”菜单的链接。 However, direct fetching from R by download.file function is problematic. 但是,通过download.file函数从R直接获取是有问题的。

See this page: https://www.google.com/settings/security/lesssecureapps . 请参阅此页: https//www.google.com/settings/security/lesssecureapps Try switching to "on" if the setting is "off". 如果设置为“关闭”,请尝试切换到“开”。

Log into your Google Account again and check if it works now. 再次登录您的Google帐户,然后检查它是否有效。 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. 在我看来,好像谷歌有时会将帐户转移到某种隔离状态,并在一段时间后释放它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM