to get a list of URLs from a video listing page:
Array.from(document.querySelectorAll('#items a#video-title')).map(a => a.href).join('\n')
put that into a urls
file, or gather the URLs some other way
then follow the instructions at https://github.com/dandv/convert-chrome-cookies-to-netscape-format for getting youtube cookies in netscape format in netscape-cookies.txt
.