필터 지우기
필터 지우기

Webread Giving different results than 'View Page Source' of website

조회 수: 2 (최근 30일)
Milan Roy
Milan Roy 2019년 7월 28일
댓글: Steven Lord 2019년 7월 28일
I am using webread to extract the 'view page source' text of a youtube page using the following:
>> d = webread('https://www.youtube.com/channel/UCqqc1GmsuANsx3s3Y0C-BsQ/playlists?view=1&sort=dd&shelf_id=0')
However it returns text which is different from the view page source of that page. What am I doing wrong? I want to get the exact text as can be seen at 'view page source' of the page.
  댓글 수: 6
Walter Roberson
Walter Roberson 2019년 7월 28일
Use a packet trace utility to see what headers your browser is sending, and duplicate them.
Steven Lord
Steven Lord 2019년 7월 28일
In addition to what Walter wrote, you may be able to use the YouTube API to achieve your end goal without having to try to parse the raw HTML.

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

답변 (0개)

카테고리

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

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by