Storing a list of data from a url
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Laurence Maskell
le 13 Sep 2020
Commenté : Laurence Maskell
le 13 Sep 2020
Hi,
I am attempting to store data from a url. I believe that webread() is the function to do the task but I am struggling to implement it correctly. Ideally I'd like to store the values cost, sel, form and pts and have them linked to the players name. Eventually I'd like to look at the different statistics under the drop down menu for sorted by and store those too. Does anyone have any advice as to why I'm getting this error?
When I run my code, I get the error seen below in lines 5-10 below
data = webread('https://fantasy.premierleague.com/statistics');
Attempt to execute SCRIPT webread as a function:
C:\Users\Laurence\Documents\MATLAB\webread.m
Error in fantasy_analyser (line 1)
data =
webread('https://fantasy.premierleague.com/statistics');
0 commentaires
Réponse acceptée
Walter Roberson
le 13 Sep 2020
C:\Users\Laurence\Documents\MATLAB\webread.m is your own function, and it is interfering with use of MATLAB's webread() function. You need to rename C:\Users\Laurence\Documents\MATLAB\webread.m to something else.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Web Services dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!