필터 지우기
필터 지우기

How to extract a table from a financial website (Bartchart.com)?

조회 수: 1 (최근 30일)
Raphuel Pellegrom
Raphuel Pellegrom 2019년 5월 8일
이동: Adam Danz 2023년 1월 21일
I'm quite new to Matlab and programming, and I'd like to extract the 5 day table from this website: https://www.barchart.com/stocks/quotes/$M1HX/performance
barchart example.jpg
Both functions urlread and webread read almost all information, except the numbers. To me it seems like the numbers are not in the html-code, but the code refers to another location and then plots them. How can I extract these numbers?

답변 (1개)

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath 2019년 5월 13일
Hi Raphuel,
You could get started with this by using the 'webread' and 'getAttribute' functions. Have a look at the following documents for more information about the functions.
Regards,
Zenin
  댓글 수: 1
Raphuel Pellegrom
Raphuel Pellegrom 2019년 5월 15일
이동: Adam Danz 2023년 1월 21일
Hi Zenin, did you try it yourself? As I stated in my question, webread doesn't work, probably due to the way the website is programmed.
This script works fine!
Regards,
Raphuel

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

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by