Data extraction from webpage source
8 次查看(过去 30 天)
显示 更早的评论
Hi all
I am trying to extract Orkney Island demand and production data from the url https://www.ssen.co.uk/ANM/
when I am using webread(url), It reads the whole source code into 1*97000 char file. Is there any way to extract that specific data or How to convert this char file to perform contains or find function.
Thanks in advance
0 个评论
回答(1 个)
Abhishek Gupta
2020-9-9
Hi,
After using “webread(),” you can use “htmlTree()” to convert character array to an HTML tree. Further, you can make use of "findElement()” to find specific elements in the tree.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Data Preparation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!