Downlaoding data from a webpage

7 次查看(过去 30 天)
I want to save the data shown on USGS webpage: USGS data using Matlab. I am using MatLab 2014a; therefore, I have to use 'urlwrite' function. When I use it, I get the HTML content, not the data in txt format. Any suggestions on how do I download the data that is available on the link? I used the following code:
outfilename = urlwrite(url,filename);
  4 个评论
Rik 2018-1-27
I tested this code on R2012b and I'm getting an error with the https ("Error downloading URL. Your network connection may be down or your proxy settings improperly configured."), and the html you describe when I switch to http.
Have you tried saving a capture to the Wayback Machine? That sometimes solve http/https errors for me. You can try out this FEX submission.
Abhinav 2018-1-27
Okay, I will try to work it out using your suggestion. Thanks!



Walter Roberson
Walter Roberson 2018-1-28
Remove the trailing '/' in your URL.

更多回答(0 个)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by