6 ms·
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 pa
by DarthGhandi 6y ago
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.
- dewey 6y agoyoutube-dl works for thousands of sites, most of them with web scraping. What are you nitpicking about?
- DarthGhandi 6y ago> What are you nitpicking about? Verbatim from my comment: "the youtube.com undocumented api" Thanks for reading.
- dewey 6y agoThe top level comment you are replying to and nitpicked the "scraping" verb doesn't say anything about YouTube or the YouTube API.
- outadoc 6y agoYes, 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.
- lozenge 6y agoYouTube supports Smart TVs, games consoles and other platforms where updating is slow or nearly impossible. Its API is stable for that reason.
- DarthGhandi 6y agoWhy do third party apps that utilize it constantly break then? Please explain.
- gruez 6y agopure speculation: youtube app on those platforms is just an embedded webview (or otherwise allows arbitrary code execution).
- nogabebop23 6y agoyes - 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.
- deleted 6y ago[deleted]
- nogabebop23 6y agothese 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.