The htmlTree object is supported in which version?

1 vue (au cours des 30 derniers jours)
Xuesong Deng
Xuesong Deng le 4 Juil 2020
Commenté : dpb le 7 Juil 2020
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 commentaire
dpb
dpb le 4 Juil 2020
It appears to be in the <Text Analytics Toolbox> (link to doc page)

Connectez-vous pour commenter.

Réponses (1)

Steven Lord
Steven Lord le 4 Juil 2020
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 commentaires
Xuesong Deng
Xuesong Deng le 7 Juil 2020
Thank you very much dpb.
I'm actually starting learning how to "scrape" data from websites now, no specific content target yet.
Currently, I can get the webread() return file from websites with varies format, eg. data (api) html or image files. I have trouble reading the html file to get the info I interested, I don't know how to map the content displayed on website to the loaction in its source file. For that purpose, do you have any suggestion for me, do I need to learn the xml/Json file format? or some specific functions in matlab would help? Or did you mean that there is no general rules, every website is different, then how do you find the location for a new website?
dpb
dpb le 7 Juil 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...

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Import and Export dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by