10-03-2014 10:09 AM
I would like to fetch google trends data with SAS, but the API seems to block SAS' requests and returning a quota limit error.
here is the sample code :
filename data1 url "http://www.google.com/trends/fetchComponent?q=sas&cid=TIMESERIES_GRAPH_0&export=3";
infile data1 lrecl=32760 recfm=n sharebuffers;
file "XXX" recfm=n;
Maybe the first time this will correctly fetch the data, but on my configuration it does not work a second time (the file XXX is filled with HTML citing a quota limit).
Some discussion here says it's because I'm recognised as a robot, (which I am)
Is there any way to enable cookies and look more like a normal browser ?
Or other ideas ?
(Using EG 5.1 with SAS 9.2)
Many thanks !!