yt-dlp oauth¶
Using yt-dlp may need oauth2 plugin in order to use on VPS or download private videos.
Linux¶
Download https://github.com/coletdjnz/yt-dlp-youtube-oauth2/releases
Add the zip file into this folder, make it if not exist mkdir -p
Then run
yt-dlp -v and make sure oauth2 appears in the log. Setup¶
It will prompt to go to https://www.google.com/device to enter a code.
After registered device, setup .netrc and add these contents
Now every-time when running the program, must append --netrc as an option
Window¶
Similar setup to Linux, except the recommendation location of plugins and netrc file
Install the plugins into
Similarly, the
.netrc file can be created in home directory so it’s picked up by yt-dlp