MATLAB Answers

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

12 views (last 30 days)
Raphuel Pellegrom
Raphuel Pellegrom on 8 May 2019
Answered: Raphuel Pellegrom on 15 May 2019
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?

  0 Comments

Sign in to comment.

Answers (2)

Zenin Easa Panthakkalakath
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

  0 Comments

Sign in to comment.


Raphuel Pellegrom
Raphuel Pellegrom on 15 May 2019
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

  0 Comments

Sign in to comment.

Sign in to answer this question.