The htmlTree object is supported in which version?

조회 수: 1 (최근 30일)
Xuesong Deng
Xuesong Deng 2020년 7월 4일
댓글: dpb 2020년 7월 7일
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개)

Steven Lord
Steven Lord 2020년 7월 4일
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
Xuesong Deng
Xuesong Deng 2020년 7월 7일
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 2020년 7월 7일
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...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by