Effacer les filtres
Effacer les filtres

How to make sure a web page is entirely loaded before using webread

9 vues (au cours des 30 derniers jours)
tom3w
tom3w le 1 Jan 2023
Modifié(e) : tom3w le 2 Jan 2023
Hello,
While scraping data from a website, I don't have any issue for the main part of it, except for a data table; the latter is made available as its elements can be observed while inspecting the html/webpage.
My assumption is that the webpage requires some time in order to be fully loaded, before using using webread properly.
A timeout parameter or a simple for loop until success do not allow to fix the issue. Similarly, I don't mind loading text data instead of a table, as this is not the real problem here.
So all in all, I'm trying to find a way to open/fully load a web page and use this latter output as an argument/input to webread in a second step. Unless a specific parameter related to webread or weboptions exists and allows to address the issue.
Thanks for your help!
  11 commentaires
Rik
Rik le 2 Jan 2023
Modifié(e) : Rik le 2 Jan 2023
I would venture the guess that it has to do with cookies, which are tricky to deal with in the context of a simple webread.
tom3w
tom3w le 2 Jan 2023
Modifié(e) : tom3w le 2 Jan 2023
@Rik Yes it's a very likely possibility. Let's hope Matlab's tech/dev team will review different use cases in the perspective of improving or better documenting webread/weboptions.
Thanks all for your questions and suggestions, I could eventually fix my main issue.

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by