Cannot get span[2] ?

조회 수: 16 (최근 30일)
Jun Cheng
Jun Cheng 2020년 4월 2일
편집: John D'Errico 2020년 4월 2일
I got this :
<span style="color:#aaa">936,958 </span><span>47,264</span><span>194,666</span>
from https://www.worldometers.info/coronavirus/ in ThingHTTP with /html/body/div[2]/div[2]/div/div/div/div/span
But how I can get those 3 numbers separately?
It shows an error when I filled /html/body/div[2]/div[2]/div/div/div/div/span[2]
  댓글 수: 2
Image Analyst
Image Analyst 2020년 4월 2일
Show your code after you read this link. Did you use webread()?
John D'Errico
John D'Errico 2020년 4월 2일
편집: John D'Errico 2020년 4월 2일
Note that in MATLAB, you do not index a variable using square brackets [], but parens (). Could this be part of your problem?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by