URL Read Returns Status of 1, but no Data
Show older comments
Hello All,
I have been using urlread for quite some time now, however it is not working anymore, and I am struggling to find where it is failing. I am gathering end of day information for a number of stocks from Yahoo Finance. The following code is used:
[temp, s] = urlread(http://ichart.finance.yahoo.com/table.csv?s=ACBFF&a=00&b=01&c=2016&d=03&e=17&f=2017&g=d&ignore=.csv)
After this runs, s returns 1, however temp does not have any data (it has worked for a few weeks up until yesterday).
Does anyone have suggestions, or know of why this error is coming up now?
Thanks for the help,
Carmelo
5 Comments
Matlab Learner
on 18 Apr 2017
The same issue happened to me starting yesterday. I use webread to get around the issue, however, it is much slower than urlwrite or urlread.
Octavio Garcia
on 18 Apr 2017
Same to me, and last Sunday was ok. Work in the Chrome and download the data with this example, but not using urlread:
Octavio Garcia
on 19 Apr 2017
I just used the urlread2 function and it gives the same empty string as urlread, therefore may be changed something in Yahoo Finance?
[temp, status] =urlread2.urlread2('http://ichart.finance.yahoo.com/table.csv?s=FDX&a=10&b=23&c=2016&d=03&e=18&f=2017&g=d&ignore=.csv');
Octavio Garcia
on 19 Apr 2017
....after read a post, a guy changed http by https in the URL, and now WORKS!! using urlread
[temp, status] = urlread(strcat('https://ichart.finance.yahoo.com/table.csv?s='... ,tickers{i},'&a=',bm,'&b=',bd,'&c=',by,'&d=',em,'&e=',ed,'&f=',... ey,'&g=',freq,'&ignore=.csv'));% urlread2.urlread2( ... do the same
Carmelo Gonzales
on 20 Apr 2017
Accepted Answer
More Answers (1)
Carmelo Gonzales
on 20 Apr 2017
0 votes
Categories
Find more on Money.Net in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!