Ask HN: YouTube – how to batch scrape comments and details for 300 videos?
If I have a CSV file with links for over 300 YouTube videos, what are some good ways to safely save all comments below each one plus the uploader details?
It's super important to do it in a way that either a) prevents the Google account and/or IP address to be marked as a spammer or something, or b) can be done anonymously without a Google account.
There's no rush, so the process can be done slow enough to not trigger anything at YouTube/Google. It can e.g. be done in batches over some weeks, if that's necessary.
I'm not a great programmer, so the simpler/more automated, the better.
Any and all ideas are welcome. Thanks!
3 comments
[ 5.3 ms ] story [ 20.3 ms ] threadThe requirement to make it not tied to a Google account rules out what would be my preferred method of getting these via the YT API.
I think there are some open source git repos that already do what you're asking (e.g. https://github.com/egbertbouman/youtube-comment-downloader) but I haven't personally tried any of these.
- FILE is a text file with a list of YouTube id's/URL's
- https://superuser.com/a/1732443/4390
- https://github.com/yt-dlp/yt-dlp