A method to grab the comments from YouTube videos
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

8 行
338 B

  1. #!/bin/bash
  2. for videoId in "$@"
  3. do
  4. prefix="youtube-comments-${videoId}-$(TZ=UTC date +%Y-%m-%dT%H:%M:%SZ)"
  5. DIR="$(realpath --relative-to=. "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )")"
  6. YOUTUBE_VIDEOID="$videoId" qwarc --log "${prefix}.log" --database "${prefix}.db" --warc "${prefix}" "${DIR}/comments.py"
  7. done