MATLAB Answers

How to get data from a website

3 views (last 30 days)
Adriano on 18 Dec 2020
Commented: Adriano on 18 Dec 2020
Hi all,
I need to get "Ongoing charge" data (0,11%) from this url:
How can I do it? I tried using webread function but I didn't find the information. Thanks to all!

Accepted Answer

Rik on 18 Dec 2020
I can't tell you what you did wrong, because you decided not to post what you have tried. That meant I had to write your code from scratch. I resisted the urge to extract a different parameter and let you modify the code to get to the proper result.
pat='<th>Ongoing charge</th>';
ans = '0.11%'
  1 Comment
Adriano on 18 Dec 2020
Hi Rik!
thanks for your answer. I was using your string:
than I press ctrl+F in the command windows looking for the string "ongoing charge", but I didn't find it. I don't know why. Thanks for your code, it works!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!