News for hackers. Stuff that matters.
Re:Youtube-dlc – Download videos from YouTube or other video... by DarthGhandi on Saturday September 12, 2020 @04:36AM (#24450911)
To nitpick: It's not scraping, the youtube.com undocumented api changes all the time, in my tinfoil view probably to mess with things like youtube-dl and 3rd party apps.
Re:Youtube-dlc – Download videos from YouTube or other video... by lozenge on Saturday September 12, 2020 @06:30AM (#24451412)
YouTube supports Smart TVs, games consoles and other platforms where updating is slow or nearly impossible. Its API is stable for that reason.
Re:Youtube-dlc – Download videos from YouTube or other video... by nogabebop23 on Saturday September 12, 2020 @09:50AM (#24452405)
these platforms don't support youtube via a programmatic interface like this (and other libraries). They basically embed videos so the "API" is an http request for the traget url.

YT constantly changes how it masks access to the underlying resources with JS updates that break these libraries. The most frequent updates are to fix this.

Re:Youtube-dlc – Download videos from YouTube or other video... by DarthGhandi on Saturday September 12, 2020 @07:58AM (#24451786)
Why do third party apps that utilize it constantly break then?

Please explain.

Re:Youtube-dlc – Download videos from YouTube or other video... by gruez on Saturday September 12, 2020 @09:24AM (#24452223)
pure speculation: youtube app on those platforms is just an embedded webview (or otherwise allows arbitrary code execution).
Re:Youtube-dlc – Download videos from YouTube or other video... by nogabebop23 on Saturday September 12, 2020 @09:52AM (#24452412)
yes - they don't generally access the underlying meta & media directly; they use the well established, stable and YT-prefered method of embeding a video. This doesn't work if you want direct file access to a specific resolution, or format, or audio only for example.
Re:Youtube-dlc – Download videos from YouTube or other video... by dewey on Saturday September 12, 2020 @04:39AM (#24450920)
youtube-dl works for thousands of sites, most of them with web scraping. What are you nitpicking about?
Re:Youtube-dlc – Download videos from YouTube or other video... by DarthGhandi on Saturday September 12, 2020 @08:00AM (#24451800)
> What are you nitpicking about?

Verbatim from my comment: "the youtube.com undocumented api"

Thanks for reading.

Re:Youtube-dlc – Download videos from YouTube or other video... by dewey on Saturday September 12, 2020 @08:10AM (#24451836)
The top level comment you are replying to and nitpicked the "scraping" verb doesn't say anything about YouTube or the YouTube API.
Re:Youtube-dlc – Download videos from YouTube or other video... by outadoc on Saturday September 12, 2020 @09:12AM (#24452165)
Yes, thanks, I was using "scraping" in a more generic way, since I'm sure it does actually use scraping for most video providers.

In fact I'm pretty sure I've seen youtube-dl mention downloading the HTML page when using it with YouTube, so maybe it does even scrape YouTube.