But I've seen somebody here in this thread mentioning that yt-dlp emulates the YouTube Android client.
Aren't you interested to find out? It sounds like it would be interesting to know how they did it.
But I've seen somebody here in this thread mentioning that yt-dlp emulates the YouTube Android client.