The htmlTree object is supported in which version?
Show older comments
My matlab is R2016b, I can't open the htmlTree(), and extractHTMLText() functions. I wonder if the htmlTree object is supported in R2016b? Or I need to add on extra toolbox/module? Please let me know how do I get those fuctions. Thanks.
1 Comment
dpb
on 4 Jul 2020
Answers (1)
Steven Lord
on 4 Jul 2020
0 votes
According to the note at the end of the htmlTree function's documentation page it was introduced in release R2018b. You will need to upgrade to this release or later and have Text Analytics Toolbox installed (as dpb pointed out, this function is in this toolbox) in order to use it.
4 Comments
Xuesong Deng
on 6 Jul 2020
dpb
on 6 Jul 2020
I think that will all depend on the web site and the data you're trying to retrieve. Start by reading the doc for webread and links from it that give some examples.
Mostly it probably depends upon whether the web site is set up to be a data source or whether you're trying to "scrape" the content out of a display page or what...
You'll just have to try it and see what you get for starters and figure out what need to do from there...
Xuesong Deng
on 7 Jul 2020
dpb
on 7 Jul 2020
You're past my knowledge base there...I've never delved into web development so to quote Sgt Schultz, "I know nuthink!" about the details.
I'd guess the latter is probably mostly true that a generic web page returned as an html page requires parsing the html to extract the info.
I'm sure there are tools to do this, but see the previous quote regarding my level of knowledge regarding what those would be...
Categories
Find more on Web Services in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!