Data extraction from webpage source

조회 수: 8 (최근 30일)
PRABAKARAN ARUMUGAM
PRABAKARAN ARUMUGAM 2020년 6월 23일
답변: Abhishek Gupta 2020년 9월 9일
Hi all
I am trying to extract Orkney Island demand and production data from the url https://www.ssen.co.uk/ANM/
when I am using webread(url), It reads the whole source code into 1*97000 char file. Is there any way to extract that specific data or How to convert this char file to perform contains or find function.
Thanks in advance

답변 (1개)

Abhishek Gupta
Abhishek Gupta 2020년 9월 9일
Hi,
After using “webread(),” you can use “htmlTree()” to convert character array to an HTML tree. Further, you can make use of "findElement()” to find specific elements in the tree.
Also see, “getAttribute()” andextractHTMLText()”.

카테고리

Help CenterFile Exchange에서 Text Data Preparation에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by