youtube-dl works for thousands of sites, most of them with web scraping. What are you nitpicking about?
Verbatim from my comment: "the youtube.com undocumented api"
Thanks for reading.
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.