philbot9/youtube-comment-scraper-cli

Handle VideoIDs that start with a "-"

Closed this issue · 3 comments

In trying to scrape the following video, I discovered that it's treating the VideoID like another command-line option (one that doesn't exist):

https://youtu.be/-GNO_zEeiYU

youtube-comment-scraper -f csv -o hannity.csv "-GNO_zEeiYU"
error: unknown option `-G'

I'm trying to send a patch to fix it, but there's so much magic going on there that it looks like yargs isn't even explicitly called XD
I'll keep trying, but I'm more of a back-end dev, so this is all a bit of a mystery to me...

Please refer to #19 (comment)

D'oh! Thanks!
Just out of curiosity, how exactly DOES the cli parsing work? I can't find the setup anywhere in any of your projects.