Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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 Commenti
Walter Roberson
Walter Roberson il 28 Lug 2019
Use a packet trace utility to see what headers your browser is sending, and duplicate them.
Steven Lord
Steven Lord il 28 Lug 2019
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.

Accedi per commentare.

Risposte (0)

Tag

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by