how to get data directly from website to matlab

9 views (last 30 days)
i'm interested if there's a (simple enough) way to get a few columns of data from a site like this http://www.racingpost.com/greyhounds/dog_home.sd?dog_id=471023 directly into matlab.
i know about urlread, but it just gives me some java code. also, i've tried the function from this link http://www.mathworks.com/matlabcentral/fileexchange/29642-get-html-table-data-into-matlab-via-urlread-and-without-builtin-browser and it didn't work.

Accepted Answer

the cyclist
the cyclist on 30 Dec 2015
The reason is that the values you see in the web page are not simply listed in the source code, but are dynamically generated (by the javascript code you see).
This post discusses it, and references a couple other links.
  1 Comment
Doctor Evil
Doctor Evil on 30 Dec 2015
Thanks for the answer, but it turns out that there is a simple way to get the data after all! If it'll be of any use to someone reading this in the future, there's a site called import.io where you can give the link to the data. That site will then convert the data on the link you gave and will give you a new link with the converted data. Then you can use the function from my original post and it will work. You just have to slightly modify the function (check the comments from the link in first post).

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!