![]() ![]() We could save this CSV file and read it into SAS. ![]() We click Historical Data -> Download Data and get a CSV file with historical stock price data for Apple. To access the historical data for Apple stock (symbol: AAPL) on the Yahoo Finance website, we use this URL: To help you automate downloads from websites that do not have an API, this blog post takes you through how we used the DEBUG feature of PROC HTTP to achieve partial automation, and eventually full automation with this case. While working on this case, we discovered that the Yahoo Finance website requires a cookie-crumb combination to download. This SAS programmer wanted to download historical stock price data "unattended," without having to click through a web page. ![]() As an example, the Yahoo Finance website recently changed their service to decommission their API, and this generated an interesting challenge for one of our customers. We have had several requests from customers who want to use SASĀ® software to automate the download of data from a website when there is no application programming interface (API) to do it. This blog post was also written by SAS' Bari Lawhorn. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |