r - 错误 : widget$status_code == 200 is not TRUE

标签 r web-scraping google-trends gtrendsr

我使用最新版本的 devtools::install_github('PMassicotte/gtrendsR')

直到昨天晚上一切都很好。然后我收到此错误消息:

Error: widget$status_code == 200 is not TRUE

代码:

trend1 = gtrends("google", geo = c(""), time = "2014-07-28 2015-11-23")

结果:

> trend1 = gtrends("google", geo = c(""), time = "2014-07-28 2015-11-23")
Error: widget$status_code == 200 is not TRUE

有谁知道发生了什么以及如何修复吗?

最佳答案

我也遇到了同样的问题,最后找到了解决方案以及你的问题。以防万一它仍然有帮助。你应该安装 devtools 版本:

devtools::install_github("PMassicotte/gtrendsR")

如果您没有安装 curl 软件包,您应该在安装 gtrendsR 之前手动安装

关于r - 错误 : widget$status_code == 200 is not TRUE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43488946/

相关文章:

web-scraping - 防止网页抓取

python - 使用 BeautifulSoup 获取具有此属性的最近的前一个元素

r - 使用 kable() 生成跨越多个页面的表

r - 查找组内的原始时间点

R:在 R 中添加图例

python - 趋势 : repeatedly running the same script gives results for different sets of countries

用于谷歌趋势的 python : "ValueError: year is out of range" when using interest_over_time

r - 按组计算一个观察值与所有其他观察值之间的差异

Python- Mechanize : Why does it need CookieJar?

google-trends - 我可以将 Google 趋势图添加到 Google 数据洞察吗?