Just a cli to scrape youtube videos and play it in mpv

  • What can it do as of now ?

It can query the input entered by user on youtube and get the first matching result, and play it in the video player.

  • Let the user choose the video by giving them the first 10 or so search results.
  • Allow users to set the resolution as per their preference.

Demo:

Requirements:

The following packages need to be installed:

beautifulsoup4==4.10.0
certifi==2021.10.8
charset-normalizer==2.0.12
idna==3.3
lxml==4.8.0
requests==2.27.1
soupsieve==2.3.1
urllib3==1.26.8

To install the above packages, change directory to the project folder

Now install the packages by running,