BookmarkSubscribeRSS Feed
Alexx
Calcite | Level 5

Hi all,

Anyone know how to Download Hourly Data from Google trends (past 7 days) using SAS program? My search key is a list of companies, and it takes a lot of time to manually download one by one. Also I would like to include in the program the Criteria I choose (for example, Geographic area and Category). But the most important thing is that the data I want to download is hourly, real-time SVI which can only be download during one hour. 

Thank you.

 

2 REPLIES 2
SuryaKiran
Meteorite | Level 14

If you know the url's for the CSV files then you can use FILENALM URL statement to import into SAS. You can also use PROC HTTP also.

 

Thanks,
Suryakiran
Alexx
Calcite | Level 5

Thank you for your reply. Can you be more specific? I mean, how to set criteria in my program. For example, I want to set these criteria:

Geographic area = America

Time range = past 7 days

Category = Finance

Search key = VCB

 

And all data must be download from 12 a.m to 1 a.m on Sunday. Do I need any other statement to control this condition?

I would be kind of you to give me an example of code.

Thanks.

 

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 567 views
  • 0 likes
  • 2 in conversation