Websave on csv returns empty file
Show older comments
I am trying to download a file with websave.
While downloading the csv with my browser works fine, websave returns an empty csv.
test = websave("test.csv","http://stooq.com/q/d/l/?s=^aor&d1=20190303&d2=20190405&i=d")
Any ideas why this happens and how to fix this?
Like modifying the weboptions?
Answers (2)
Cris LaPierre
on 5 Apr 2019
0 votes
I have an idea. When I go to the url specified in the websave command (http://stooq.com/q/d/l/?s=^aor&d1=20190303&d2=20190405&i=d), I just get a blank webpage.
Try using the url that points directly to the csv file.
Karsten Reuß
on 5 Apr 2019
Categories
Find more on Downloads 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!