Which browser does the function ''webread'' use when it opens a webpage?

2 visualizaciones (últimos 30 días)
Jerome Gosselin
Jerome Gosselin el 15 de Dic. de 2018
Comentada: Rik el 2 de Ag. de 2021
I'm trying to work with the html text of a webpage with a specific broswer. If applicable I would like to select the browser ''webread'' uses just like the function ''web'' allows it. Unfortunately, I cannot access the html text with the ''web'' function.
Moreover, if I can select the browser I want with the ''webread'' function, I would also like the access the webpage just as if I was using a VPN (I want to do a websearch and get results from another country).
Thank you

Respuestas (1)

Mark Sherstan
Mark Sherstan el 15 de Dic. de 2018
I believe this should solve your problems. Solution was found here:
[a, h] = web('http://google.com')
CurrentLocation= get(h, 'CurrentLocation') % Gives you location of current page
htmlText = get(h, 'HtmlText') % Gives you html content of current page
  6 comentarios
Nicholas Fugal
Nicholas Fugal el 2 de Ag. de 2021
This doesn't address the question of using a browser other than the Matlab browser. I have a similar problem, but I need to use the system browser for authentication purposes. Using the matlab browser simply isn't an option.
Any hope for me getting the html contents of a web page using the system browser?
Rik
Rik el 2 de Ag. de 2021
@Nicholas Fugal, I doubt there exists a supported solution. Any solution would require Matlab to have access to the actual contents of Chrome/Firefox/Edge, which would require a severe security issue in those browsers.

Iniciar sesión para comentar.

Categorías

Más información sobre Adding custom doc en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by