A method to grab the comments from YouTube videos
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- for videoId in "$@"
- do
- prefix="youtube-comments-${videoId}-$(TZ=UTC date +%Y-%m-%dT%H:%M:%SZ)"
- DIR="$(realpath --relative-to=. "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )")"
- YOUTUBE_VIDEOID="$videoId" qwarc --log "${prefix}.log" --database "${prefix}.db" --warc "${prefix}" "${DIR}/comments.py"
- done
|