KFERMercer / chaturbate-grabber

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

┌─┐┬ ┬┌─┐┌┬┐┬ ┬┬─┐┌┐ ┌─┐┌┬┐┌─┐  ┌─┐┬─┐┌─┐┌┐ ┌┐ ┌─┐┬─┐
│  ├─┤├─┤ │ │ │├┬┘├┴┐├─┤ │ ├┤───│ ┬├┬┘├─┤├┴┐├┴┐├┤ ├┬┘
└─┘┴ ┴┴ ┴ ┴ └─┘┴└─└─┘┴ ┴ ┴ └─┘  └─┘┴└─┴ ┴└─┘└─┘└─┘┴└─
8===================================================D
A shell script to cpture live stream from chaturbate.

Usage:

First of all, clone the repo to your local:

git clone https://github.com/KFERMercer/chaturbate-grabber.git && cd chaturbate-grabber

Now you neeo choose whether to use docker or a host environment,

I suggest you use docker.

Docker (recommended):

First install some Docker-like products.

Custome your own docker-compose file:

cat ./docker-compose.yml.sample > ./compose.yml

Then edit ./compose.yml to configure.

Deploy the compose service:

# If you wish to run in the front of the terminal:
docker compose up

# If you want run and create to background daemon:
docker compose up -d

Unload the compose service:

docker compose down

Host environment:

First make sure your linux shell is bash, and get install git, ffmpeg, curl. Follow this command to install them:

# apt: 
apt-get install -y git ffmpeg curl
# yum:
yum -y install git ffmpeg curl
# apk:
apk add install git ffmpeg curl

Use the following command to run:

SAVE_PATH=/path/to/savedir \
LOG_PATH=/path/to/logdir \
./ctbcap <model-name>

If you just want to get the m3u link of stream:

./ctbcap <your-favorite-model-name> -s

You can add this script to system path:

ln -s ~/chaturbate-grabber/ctbcap /sbin/ctbcap

So next time you can run the ctpcap directly without going into repo.

If you don't want to leave your trail on localmachine:

    SAVE_PATH=/path/to/savedir LOG_PATH=/path/to/logdir bash <(curl -s -L https://raw.githubusercontent.com/KFERMercer/chaturbate-grabber/master/ctbcap)
# ^ There's a space at the beginning.

Get follow-up updates:

Go to local git repo:

cd chaturbate-grabber

Update repo to newest commit:

git pull

Restart the compose service (when use docker):

docker compose down

docker compose up -d

have fun : )

About

License:GNU General Public License v3.0


Languages

Language:Shell 88.7%Language:Dockerfile 11.3%