egbertbouman / youtube-comment-downloader

Simple script for downloading Youtube comments without using the Youtube API
MIT License
914 stars 227 forks source link

Error: local variable 'ncd' referenced before assignment #76

Closed solomsk closed 3 years ago

solomsk commented 3 years ago

if the videoid contains "-" ,the python code will except with error: Error: local variable 'ncd' referenced before assignment

such as: python downloader.py -y -795DXCu9sk -o ff-795DXCu9sk.json usage: downloader.py [--help] [--youtubeid YOUTUBEID] [--output OUTPUT] [--limit LIMIT] [--sort SORT] downloader.py: error: argument --youtubeid/-y: expected one argument

C:\youtube评论>python downloader.py --youtubeid https://www.youtube.com/watch?v=-795DXCu9sk -o "795DXCu9sk.json" Downloading Youtube comments for video: https://www.youtube.com/watch?v=-795DXCu9sk Error: local variable 'ncd' referenced before assignment

egbertbouman commented 3 years ago

Duplicate of https://github.com/egbertbouman/youtube-comment-downloader/issues/25.