Trying to download Google Trends data but date parameter is ignored?

◇◆丶佛笑我妖孽 提交于 2019-12-04 14:13:35
user3069482

It works if you write only a year:

res <- getForm(trendsURL, q="ggplot2, ggplot", date = "2013", content=1, export=1, graph="all_csv", curl=ch)

But I don't know how to add month and day to the date. Probably, it is because on the GoogleTrends web page you can select time range from the list:

"Past 7 days", "Past 30 days",..., "2013", "2012",...

But if I try date="Past 90 days" it still doesn't work.

I have had succes with getting monthly data by using the date specification date="2011-1" (January 2011). I viewed the source behind the page - maybe you can find aswers there.

Please post again if you figure out the date specification.

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