urlread vs. view source - need view source data
Afficher commentaires plus anciens
I am trying to use Matlab to grab some data from a website and have hit a dead end. When looking at the 'view source' in my web browser, I can see the data clearly. However, when I utilize the built-in Matlab function 'urlread' it only seems to retrieve the static portions of the webpage.
I'm assuming the webpage uses java and dynamically updates? Is there a way to have Matlab create a static image of the webpage to permit data gathering? Is there a better way? If so, would you please provide examples.
So frustrating 'view source' shows the data right there ... Thanks!
3 commentaires
Guillaume
le 3 Nov 2014
Can you share the url in question, if it's accessible?
Christian Præstegaard Sørensen
le 17 Juin 2016
Hi Michael, Did you find a solution to the problem? I have similar issues... /Christian
Réponses (3)
Sean de Wolski
le 3 Nov 2014
0 votes
Perhaps try webread in R2014b:
Guillaume
le 3 Nov 2014
webread('http://research.investors.com/quotes/nasdaq-apple-inc-aapl.htm', weboptions('Username', 'xxx', 'Password', 'yyy'))
buer
le 1 Déc 2014
0 votes
Hi Guillaume,
I am using Matlab 2013b. does nto have the function weboptions.....do you know how can I perform authentication with this version? Thanks.
1 commentaire
Guillaume
le 1 Déc 2014
To get more visibility to your question, you would be better off starting a new question of your own rather than highjacking somebody's else.
Please do so.
Catégories
En savoir plus sur Web Services dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!