A method to grab the live chat from YouTube
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

8 行
303 B

  1. #!/bin/bash
  2. for videoId in "$@"
  3. do
  4. prefix="youtube-livechat-${videoId}"
  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}/livechat.py"
  7. done