How do I scrape a website using MATLAB?
古いコメントを表示
I want to scrape the text data from a table on a website. I have used urlfilter but this only scrapes numbers.
回答 (1 件)
Image Analyst
2014 年 7 月 18 日
編集済み: Image Analyst
2014 年 7 月 18 日
1 投票
Use urlread() to get everything.
4 件のコメント
azizullah khan
2014 年 7 月 18 日
Image Analyst
2014 年 7 月 18 日
You mean urlread gets only numbers for you? For me it gets everything, just as if you'd right clicked on the page and said "View Source". I know it's HTML and it will look like a mess and you'll have to parse it out, but what do you expect?
azizullah khan
2014 年 7 月 19 日
Image Analyst
2014 年 7 月 20 日
I don't have anything beyond urlread() for that. There is not going to be any built-in code that know exactly how your 200 web pages are laid out and how to extract the table from all the rest of the HTML code that is retrieved. There are billions of web pages out there and they just don't a page parser for all of them, or even yours. You're going to have to do that yourself.
カテゴリ
ヘルプ センター および File Exchange で Web Services についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!