seancarmody / ngramr

R package to query the Google Ngram Viewer
Other
48 stars 9 forks source link

Changed getURL() to equivalent GET() call. #24

Closed karafso closed 7 years ago

karafso commented 7 years ago

The rCURL:getURL call was causing a redirect loop whenever a phrase had no match in the corpus, leading to Google responding with a 'sever is busy' error. I encountered this problem on both Windows 10 and Debian. I resolved this by replacing the with the same call in the httr library. I've used it over the weekend, and it seems to work fine now.