/streamyard-downloader

Download Past Broadcast from StreamYard

Primary LanguagePython

streamyard-downloader

Download Finished Broadcast from StreamYard

Install

pip install git+https://github.com/gabubellon/streamyard-downloader

Usage

Call python script with streamyard-downloader --email some@email.com, --email has the unique necessary parameter.

When see this messsage on terminal Insert the login code sent to <EMAIL>: insert the login code received on your email.

After this all past broadcast (.mp3 and . mp4) will be download to PATH (./file by default)

Run streamyard-downloader -h show all parameters can be used:

$ streamyard-downloader  -h
> Download finished streams from StreamYard
>
> optional arguments:
>   -h, --help            show this help message and exit
>
> streamyard:
>   --email EMAIL         registred email on streamyard
>   -lc, --list_choise    show a list of streams to download
>   -p PATH, --path PATH  local path to save downloads (default: ./files)
>   -s START_DATE, --start_date START_DATE
>                         start date to filter data on streamyard (default: first day of current month)
>   -e END_DATE, --end_date END_DATE
>                         end date to filter data on streamyard (default: last day of current month)
>   -nl, --new_login      force a new login and ignore cookie cache (default: False)
>   -c CHUCK_SIZE, --chuck_size CHUCK_SIZE
>                         size in MB of chunks to download files (default: 1024)
>   -t THREADS, --threads THREADS
>                         number of threads to run simultaneously (default: 1)
>
> s3:
>   -s3, --upload         automatically upload files to a s3 bucket (default: False)
>   --bucket BUCKET       s3 bucket to save files on format s3://bucket-name
>   --prefix PREFIX       s3 prefix to save file on bucket

** To use auto upload to S3 bucket has necessary AWS env vars configured

Make

Can use make commands to help:

make install # Install all requirements
make format  # Format python files