if you're on a mac and need to use yt-dlp for archiving videos, the current implementation and documentation just outright sucks.

youtube now requires cookie validation to "prove" that you're not a bot, so after a couple of video downloads it will error out.

here's how to use yt-dlp on your mac *with* cookie validation (instructions assume you've already got yt-dlp installed):

1. login to youtube.com with safari
2. in Finder, Command-Shift-G to ~/Library/Containers/com.apple.Safari/Data/Library/Cookies
3. copy Cookies.binarycookies to your home folder.
4. download CookiesTool here: https://github.com/Lessica/CookiesTool/releases/download/v0.1-2/CookiesTool_0.1-2.zip
5. convert apple's binary cookies to netscape formatted cookies by running this in terminal: ~/Downloads/CookiesTool_0.1-2/Products/usr/local/bin/CookiesTool ~/Cookies.binarycookies -c netscape -o ~/cookies.txt
6. now you can run your yt-dlp job: yt-dlp --cookies ~/cookies.txt https://youtube.com/watch?v=whateveryourvideoIDis

#macOS

@vga256 if you don’t need the login part (not sure you do?), you could retrieve the cookies.txt by running

curl -c cookies.txt 'https://www.youtube.com' >/dev/null

which provides Netscape compatible cookies

YouTube

Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

@bilbo_b did you try using it?
@vga256 I did and for the first video I had no problem/error. Not sure at what number and frequency of downloads the problem you mentioned would occur and if a cookie without authentication would help.
@bilbo_b yeah this definitely requires extensive testing
@vga256 the problem described by you I see occasionally in freetubeapp.io, it very rarely occurred in yt-dlp for me (even without cookies)