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

2 ビュー (過去 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 Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by