Using Matlab to link to a web link and print a text file

I have a buch of web links (60 or so). Here is an example of one: http://www.ndbc.noaa.gov/station_page.php?station=44009
Each link contains buoy data.
What I do now is hit ctrl+a and then select all the data on the webpage. Then I paste it into a notepad file.
I do the same thing for a bunch of these specific ocean buoys and paste all the information into ONE notepad file.
CAN Matlab do this for me?
In other words, can I have matlab run a script, (I input all the buoy links that i want in matlab itself), matlab automatically clicks on the link and prints all contents of that link into one large notepad file?
-Mike

 Accepted Answer

Use urlread

1 Comment

When I get the "Error downloading URL. Your network connection may be down or your proxy settings improperly configured" message, does this mean that my internet service (at my job) is blocking Matlab from utilizing Java to execute the urlread function?
I treit to look up this error and another person used a whole bunch of matlab workaround code to get it to work by going into the java stuff.
Is there a way to workaround this issue? This is the website I was looking at when trying to research how to bypass this: http://stackoverflow.com/questions/2610550/getting-data-into-matlab-from-https Which then lead me to this: http://stackoverflow.com/questions/1638275/handling-an-invalid-security-certificate-using-matlabs-urlread-command
I am not sure if I have the same issue as the person who was trying to use the function in the web links I showed above.

Sign in to comment.

More Answers (1)

This is working fine for me:
str = urlread('http://www.ndbc.noaa.gov/station_page.php?station=44009')
Perhaps your firewall blocks Matlab?

Categories

Products

Tags

No tags entered yet.

Asked:

on 10 Apr 2014

Answered:

Jan
on 10 Apr 2014

Community Treasure Hunt

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

Start Hunting!