These are the example files used in the video "Reading Web Pages, Part 1: Using webread" on the "Stuart's MATLAB Videos" blog. In this video, I show how to use webread to surf Wikipedia pages to investigate how many steps it takes to go from a random page to the page on Philosophy.
Matt Tearle (2021). Example files from the "Reading Web Pages, Part 1: Using webread" video (https://www.mathworks.com/matlabcentral/fileexchange/52489-example-files-from-the-reading-web-pages-part-1-using-webread-video), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
My version of Matlab 2016a
I tried to tun this script, but encounter error from 1st line, webread. Can you help. Error message:
>> txt = webread('http://en.wikipedia.org/wiki/Special:Random');
Error using readContentFromWebService (line 45)
The server returned the message: "Server redirected too many times (20)" for
URL,
'http://nroyaltonproxy:8889/?cfru=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9TcGVjaWFsOlJhbmRvbQ=='
(with HTTP response code unknown).
Error in webread (line 122)
[varargout{1:nargout}] = readContentFromWebService(connection, options);