Saving website data as an excel file with Matlab
1 次查看(过去 30 天)
显示 更早的评论
Is it possible to save a webpage as an excel file via Matlab? Something similar to the websave function, which saves as a .html.
Using the import function in Excel gives me exactly what I need, but I really need this to be automated.
0 个评论
采纳的回答
Geoff Hayes
2015-11-22
2 个评论
Geoff Hayes
2015-11-24
Hi Jared - I hadn't realized that there would be that much HTML formatting on your webpage which probably makes it difficult to parse and get to the table data.
Try using Sven Koerner's submission to the File Exchange: Get HTML-table data into MATLAB via urlread and without builtin browser. With your link I coded
tableData = getTableFromWeb_mod('http://www.cfbstats.com/2015/team/8/index.html',1);
and it created a 34x3 cell array which you can then (more easily) write to an Excel spreadsheet using xlswrite.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!