Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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 <- '[email protected]'
psw <- 'my_password'
gconnect(usr, psw)

And then I am returned with the following error:

Google login failed! Check your login information.NULL

like image 752
Tim de Silva Avatar asked Jul 22 '16 23:07

Tim de Silva


2 Answers

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.

like image 136
Suat Atan PhD Avatar answered Nov 16 '22 07:11

Suat Atan PhD


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

like image 37
SCallan Avatar answered Nov 16 '22 07:11

SCallan