Getting Data From Web
3 ビュー (過去 30 日間)
古いコメントを表示
I need to get data from multiple web pages into one array so I can plot it on a graph.
More in depth: I am trying to create a distribution graph of the review scores on metacritic. What I figure I need to do is to: Load up the all time high scores page, add the review scores to table, next page, repete.
Unfortunately I have absolutely no web programing knowledge whatsoever. Literally never wrote a single line of html or php or anything like it. As such I have not got even the slightest clue how to solve this problem. I understand MatLab might not be the most ideal language for doing this, and I have been told by someone who knows only slightly more than I do that Python would probably do a better job at actually collecting the data.
Any help would be extremely useful, even if it is just a link to a forum post or similar.
Thanks
0 件のコメント
回答 (2 件)
Image Analyst
2014 年 11 月 24 日
People use MATLAB's urlread() function to retrieve web pages all the time. Check it out. I have no comments on whether Python would be easier or not.
Stephen Doe
2014 年 12 月 12 日
If you have MATLAB R2014b you can use the webread() function to get data from a web service.
If metacritic provides a RESTful API, they might have a service that returns data as JSON objects. If so, webread() can convert JSON to MATLAB structures. See webread for more details. This would be much simpler than the string manipulation you mentioned in your question.
You will have to search the metacritic web site for a RESTful API. They might require you to sign up for an account before providing access.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Web Services についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!