Getting Data From Web
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
Image Analyst
am 24 Nov. 2014
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
am 12 Dez. 2014
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 Kommentare
Siehe auch
Kategorien
Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!