How to read a dynamic javascript-generated website?

조회 수: 13 (최근 30일)
Melina Lucia
Melina Lucia 2019년 12월 18일
댓글: Mohammad Sami 2019년 12월 30일
Hello,
how can I read the contents of a website, which is generated dynamically by javascript?
If I use webread, I will only get the call of the javascript function:
<script src="JS/index.js"></script>
but not the contents itself.
Javascript is running inside the web browser (I use google chrome), so, can I read the output of the javascript function from the chrome browser somehow ..???
Thank you very much for your help!
  댓글 수: 3
Melina Lucia
Melina Lucia 2019년 12월 18일
The website doesn't offer an API.
Mohammad Sami
Mohammad Sami 2019년 12월 30일
You will need to look outside of Matlab for what you need. One option is to use Selenium. It has a java library which can be potentially integrated within matlab code.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Google에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by