September 1, 2018

ytp - A super light command-line client for YouTube

I’ve been using youtube-viwer 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 in size, 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.

But I recently found out about a super light and very 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.

Comments

I'm looking into a good way of implementing comments on my blog that works without JavaScript, respects the users privacy and is reasonably user friendly. If you have any ideas or just want to give me some feedback on this blog post or if you just want to say hello, feel free to do so either via e-mail, XMPP or Mastodon.