MATLAB Answers

How to read specific data from website?

7 views (last 30 days)
Hjodie
Hjodie on 10 May 2021
Answered: Hjodie on 10 May 2021
Hello, I'm trying to read current ETF price from website and get it on my workspace.
For example, let's take a look at this page " https://www.tefas.gov.tr/FonAnaliz.aspx?FonKod=HBF " . It is HSBC Gold Fund on current Turkish market. Anyway..
I'm aiming to read data shown below,
When I take a look at the "view-source:https://www.tefas.gov.tr/FonAnaliz.aspx?FonKod=HBF" from website. The value is always in the same line no matter which fund you are looking for. It is in the 356th line.
Of course, I will need to get rid of the <span> and </span> around our value too.
I'm still on search, I will try to update this question If i come out with an answer to myself.
It is good to be newbie ...

Accepted Answer

Hjodie
Hjodie on 10 May 2021
"URL Filter" add-on from file exchange solved my problem. I am leaving link below for those who would encounter same problem as I do.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by