Hund

ytp - A super light command-line client for YouTube

September 1, 2018

I’ve been using youtube-viewer for a long time now and it’s a great command-line client for YouTube. It’s packed with features that allow you to use pretty much every feature possible on YouTube, but it comes at a price; the footprint.

On Gentoo Linux I needed to emerge a total of 42 packages for youtube-viewer, most are small, but still.. 42 packages. And I don’t even use 99% of the features anyway, I just want to be able to search and play videos without having to use YouTube’s hideously bloated and malicious website which tracks my every move.

Just recently, I found out about a super light and basic client called ytp via HexDSL on Mastodon. It’s written in Bash and the only dependency it needs is jq, which is a lightweight command-line JSON processor.

A screenshot of ytp in action - A super light command-line client for YouTube

Installation

The only dependency you need to install is jq and after that you can clone the repository with git, make the script executable and run it:

$ git clone https://gitlab.com/uoou/ytp
$ cd ytp && chmox +x ytp
$ ./ytp "<search word>"

And as always, I advise you to put the script in your $PATH for easy access.

Meta

No Comments

Use the e-mail form, if you wish to leave feedback for this post. Markdown is supported. [Terms of service]