HTML file scraping for Fields in a Table

조회 수: 13 (최근 30일)
v k
v k 2020년 6월 15일
댓글: v k 2020년 6월 16일
The HTML file that I am working on, is a long one and contains particulars as given in the attached text file. Although the structure is simple and repetitive, due to the large number of characters in between the data fields, I am having hard time in scraping the required data. The objective is to get a two-column excel spreadsheet containing Name in the first column and Email in the second column. How to obtain these required fields in the xlsx file ? Thanks.

답변 (1개)

Sean de Wolski
Sean de Wolski 2020년 6월 15일
Start playing with htmlTree in the Text analytics toolbox.
t = htmlTree(fileread('clientdata.txt'))
t.findElement('TD').extractHTMLText
  댓글 수: 1
v k
v k 2020년 6월 16일
How to extract the fields "Name " and "Email " after this ?

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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by