Skip to content
A selenium based youtube CLI for searching, viewing and downloading youtube videos
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



Requires pip, selenium for python, pyvirtualdisplay,python 2.7, youtube-dl, vlc

All of the abovecan be installed by the following commands:

sudo apt install youtube-dl
sudo apt-install vlc
sudo apt install python-pip
pip install selenium
pip install pyvirtualdisplay


Clone this repository:

git clone

Change the permissions for youtube-cli:

chmod 755 youtube-cli

Add chromedriver to the system path:

sudo cp chromedriver /usr/local/bin

That should set up the project

you can optionally add youtube-cli to the system path as well:

sudo cp youtube-cli /usr/local/bin


Run youtube-cli along with the search term:

./youtube-cli "hello world"

If you have added youtube-cli to the system path, you can use:

youtube-cli "hello world"

After displaying the results, you will get a console.

  • Press v followed by : and a number from the displayed list to view the video in vlc eg:

     > v:5
  • Press d followed by : and a range (beginning-end) or a single number from the displayed list to download the videos using youtube-dl eg:

     > d:3-5
     > d:4
  • Press q to quit


  • Add n feature to the console to view the next set of results
You can’t perform that action at this time.