Skip to content

Instantly share code, notes, and snippets.

@henri
Last active July 16, 2025 03:33
Show Gist options
  • Save henri/2a292aa279c8738b5a012ee06671db5a to your computer and use it in GitHub Desktop.
Save henri/2a292aa279c8738b5a012ee06671db5a to your computer and use it in GitHub Desktop.
Youtube Comment Download Wrapper
#!/usr/bin/env bash
# (C) 2025 Henri Shustak
# simple script to download youtube comments from a single video in bulk
# usage : ./yt-comments.bash "youtube.video.url"
# requires : python package called youtube-comment-downlaoder
# dependcy install : pip install youtube-comment-downloader
# currently set to ues sublime text to view the file when download completes..(last line)
tempfile=$(mktemp /tmp/yt-comments.XXXXXX)
suffix="json"
echo "$1" > $tempfile.${suffix}
youtube-comment-downloader --url "$1" >
subl -n $tempfile.${suffix}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment