ommmishra / ycl

Search, Play, Download youtube videos from the terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ycl

Simple application to search, play, download Youtube videos from the terminal

Requirements

Install

pip3 install -e .

Set your Youtube API Key:

Linux

Put this in your ~/.bashrc or ~/.bash_profile

export YOUTUBE_KEY="AIzaSyAZQ2vf2Y5wfDxj**************"

Windows

setx YOUTUBE_KEY "AIzaSyAZQ2vf2Y5wfDxj**************"

Note the environment variable will be available for the subsequent command prompts/terminals.

To properly setup ffpyplayer on Windows, follow instructions here

Usage

Usage: ycl [OPTIONS] [QUERY]...

Options:
  -ps, --playlistsearch  Searches for playlists
  -v, --video            Use a direct video link
  -pl, --playlist        Use a direct playlist link or file
  -i, --interactive      Starts an interactive Terminal UI session
  -e, --export           Export A playlist to a local file
  -o, --output TEXT      Set output format container, eg: mp4, mkv
  --help                 Show this message and exit.

Docker

Linux only

docker build -t ycl:latest .
docker run -it --device /dev/snd:/dev/snd ycl:latest

Inside the container

ycl --help

About

Search, Play, Download youtube videos from the terminal

License:MIT License


Languages

Language:Python 99.7%Language:Dockerfile 0.3%