Comments on: Read data from the web with URLREAD https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/?s_tid=feedtopost Stuart uses video to share his experiences solving problems with MATLAB day-to-day, interesting new features, plus tips and tricks he has picked up along the way. Fri, 06 Jan 2017 14:29:17 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Stuart McGarrity https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-64272 Tue, 05 Jul 2016 16:08:54 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-64272 Hi rodeopepper, I think you copied it incorrectly. Its
>> block=urlread(‘http://www.wunderground.com/history/airport/KSVC/2010/4/1/DailyHistory.html?req_city=NA&req_state=NA&req_statename=NA&format=1’);
>> data=textscan(block,’%s %s %s %s %s %s %s %s %s %s %s %s’,’delimiter’,’,’);

]]>
By: rodeopepper https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-63528 Tue, 14 Jun 2016 17:38:06 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-63528 Doug,
I tried your example for pulling data from wunderground but it doesn’t seem to work for me even when copied directly over. I get num as empty and txt is gibberish (‘JMÉ’ ‘JM.Q(HLOµI*²a®ŒÔ¢T…Ìb…¼ü’ŒÌ¼t…’|…’)

Any help you might be able to provide would be greatly appreciated as I’ve been pulling my hair out on this for hours.

This is exactly what I have used which I copied from above.
urlwrite(‘http://www.wunderground.com/history/airport/KSVC/2010/4/1/DailyHistory.html?req_city=NA&req_state=NA&req_statename=NA&format=1′,’data.csv’);
[num, txt] = xlsread(‘data.csv’);

]]>
By: Stuart McGarrity https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-59937 Tue, 23 Feb 2016 15:26:25 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-59937 In reply to Alex.

Looks like it has shut down: http://www.computerworld.com/article/2930326/data-analytics/ibm-to-shutter-dataviz-pioneer-many-eyes.html

]]>
By: Alex https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-59932 Tue, 23 Feb 2016 12:11:10 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-59932 The many Eye file is no longer available. Any idea where its new location is? Thanks

]]>
By: João https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-34201 Wed, 05 Mar 2014 13:45:09 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-34201 Hi Doug,

I’m having trouble loading the data. Using the same code as you, the textscan only loads the first and the second line of the web txt. Any suggestion?

Regards,
João Miguel Silva

]]>
By: John https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-33752 Thu, 13 Feb 2014 14:52:24 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-33752 I have tried your code. The textscan only read first two cities not all cities. What might be the problem?

]]>
By: Doug https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-26777 Thu, 12 Sep 2013 19:59:34 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-26777 You will need to make sure you can put the authentication into the URL to make this work.

]]>
By: Muneer https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-26775 Thu, 12 Sep 2013 19:23:29 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-26775 Hey Doug,

I’ve hit the same roadblock as Jussi and Ritesh. Any idea on how to read data that’s password protected? My url has SQL commands in the text so I was going to try and read just the login page and then write in commands for which data to select like what’s pasted below (it’s written in R). However, your method seems way simpler. I have to use a token as well for security with this way.

]]>
By: Doug https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-3667 Mon, 22 Oct 2012 17:37:50 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-3667 I would look into MATLAB’s FTP command. I use it all the time to automatically upload the video files you see on this blog.

]]>
By: Jussi https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-3118 Tue, 26 Jun 2012 10:47:39 +0000 https://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/#comment-3118 I have the exact same problem as Ritesh. Does anyone have an implementation for this?

]]>