webread not returning full html contents

조회 수: 7 (최근 30일)
Michael Oristaglio
Michael Oristaglio 2022년 6월 29일
답변: DGM 2022년 6월 29일
The following call to read a webpage
URL='https://courses.yale.edu/?keyword=energy&srcdb=202203';
data=webread(URL);
does not return the full contents of the html file of the webpage, in the following sense:
If I enter the URL as above in my browser and view the source code of the page, the contents are different from what is returned by webread.
I've tried using various forms of webread (and webwrite) with different weboptions, but every call returns the same limited html content, which is the same as the base html content of
'https://courses.yale.edu'
without the results of the search on the page, with the given query parameters.
  댓글 수: 1
Michael Oristaglio
Michael Oristaglio 2022년 6월 29일
Some more detail to clarify the problem.
The webpage displayed when entering the URL in the browser is divided into panels, and it is only by using the INSPECT function of Google Chrome on the panel labelled SEARCH RESULTS (> RIGHT CLICK > INSPECT) that the full html code of the search results is shown.

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

답변 (1개)

DGM
DGM 2022년 6월 29일

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by