tohn / yt2txt

This will download the chat log from a YouTube video via chat-downloader.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yt2txt

This will download the chat log from a YouTube video via chat-downloader.

Installation

For native usage you need Python (in version 3).
Then you can use pip to install some packages:

pip install --no-cache-dir --upgrade chat-downloader youtube_dl

If you use docker, you can just pull the provided image:

docker pull ghcr.io/tohn/yt2txt

Otherwise, clone the repo and build the image yourself:

git clone https://github.com/tohn/yt2txt.git
docker build -t yt2txt .

Usage

You can provide one or multiple YouTube video ids to yt2txt.sh.

Some examples (native, docker build, docker pull):

# native
./yt2txt.sh PW26QYhziW4
# docker build
docker run --rm -v $(pwd):/opt -i yt2txt bash -c 'yt2txt.sh PW26QYhziW4'
# docker pull
docker run --rm -v $(pwd):/opt -i ghcr.io/tohn/yt2txt bash -c 'yt2txt.sh PW26QYhziW4'

If you have more then one video, either list them as parameters or write them into a file and use the file as input:

$ cat vegan_ist_ungesund.txt
PW26QYhziW4
9VJbRATdkfs
L4y052RmaSM
# native
./yt2txt.sh PW26QYhziW4 9VJbRATdkfs L4y052RmaSM
./yt2txt.sh <vegan_ist_ungesund.txt
# docker build
docker run --rm -v $(pwd):/opt -i yt2txt bash -c 'yt2txt.sh PW26QYhziW4 9VJbRATdkfs L4y052RmaSM'
docker run --rm -v $(pwd):/opt -i yt2txt yt2txt.sh <vegan_ist_ungesund.txt
# docker pull
docker run --rm -v $(pwd):/opt -i ghcr.io/tohn/yt2txt bash -c 'yt2txt.sh PW26QYhziW4 9VJbRATdkfs L4y052RmaSM'
docker run --rm -v $(pwd):/opt -i ghcr.io/tohn/yt2txt yt2txt.sh <vegan_ist_ungesund.txt

About

This will download the chat log from a YouTube video via chat-downloader.

License:Creative Commons Zero v1.0 Universal


Languages

Language:Shell 77.2%Language:Dockerfile 22.8%