Websave on csv returns empty file
조회 수: 3 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (2개)
Cris LaPierre
2019년 4월 5일
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.
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Downloads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!