BookmarkSubscribeRSS Feed
Pooja2
Fluorite | Level 6

Hi,

 

I am working on a project where I need to import graphs from a website (one webpage has one graph) and then export that to an excel sheet with some specifications. I have never done that kind of stuff. I need someone to help me with this.

 

Thanks in advance.

2 REPLIES 2
SASKiwi
PROC Star

Graphs on a website would have to be processed as images and SAS 9.* doesn't do image processing. SAS Viya does image analytics but I suspect that is not what you want.

 

A quick and dirty solution would be to do manual screenshots and paste them into Excel. No SAS required.

ChrisNZ
Tourmaline | Level 20

I have never needed this but I believe that you can:

- download the html page

-  analyse the page to find the image's URL

- download the image file

Then you *may*  be able to insert it in excel, for example by using the ODS PREIMAGE= option.

 

You can probably find vbs scripts on the web that do what you want, and which would be better suited.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 798 views
  • 0 likes
  • 3 in conversation