Browse youtube from your terminal
GitHub RepoImpressions1.3k

Browse youtube from your terminal

@the_ospsPost Author

Project Description

View on GitHub

Browse YouTube From Your Terminal With yt-x

Sometimes the best tools are the ones that do one thing well and get out of your way. If you've ever found yourself lost in a YouTube rabbit hole when you just wanted to quickly look up a tutorial or a talk, you know the feeling. What if you could search, watch, and manage YouTube content without ever leaving your terminal?

Enter yt-x, a neat Python tool that brings YouTube right into your command line. It’s a lightweight, focused utility that strips away the distractions and lets you interact with YouTube in the environment where many developers already live.

What It Does

yt-x is a terminal-based YouTube browser and player. At its core, it lets you search for videos, view results in a clean list, and play your selection directly in your terminal using MPV (a powerful, scriptable media player). It fetches data from YouTube, presents it without thumbnails or sidebars, and gives you quick keyboard-driven control.

Why It's Cool

The beauty of yt-x is in its simplicity and focus. It’s not trying to be a full-featured desktop app. Instead, it solves a specific problem for a specific audience: developers who want quick, scriptable access to YouTube content.

  • Keyboard-First Navigation: You navigate results and control playback entirely with your keyboard. It feels fast and native to a terminal workflow.
  • MPV Integration: By leveraging MPV, it gets powerful, high-quality video playback without reinventing the wheel. MPV handles the heavy lifting, including support for various formats and resolutions.
  • Distraction-Free: No comments, no recommendations, no endless scroll. You search, you pick, you watch. It helps you stay on task.
  • Lightweight and Scriptable: Being a Python CLI tool, it's inherently lightweight and can be integrated into scripts or aliases. Imagine quickly pulling up the latest conference talk on a specific topic with a one-liner.

How to Try It

Getting started is straightforward. You'll need Python and pip on your system, along with MPV installed.

  1. Install MPV: Use your system's package manager.

    • macOS: brew install mpv
    • Ubuntu/Debian: sudo apt install mpv
    • Check the MPV website for other systems.
  2. Install yt-x: Use pip to install it directly from GitHub.

    pip install git+https://github.com/Benexl/yt-x.git
    
  3. Run it: Simply type yt-x in your terminal. Use the search command (/) to find videos, arrow keys to navigate, and Enter to play.

For more details, configuration options, or to contribute, check out the full repository: github.com/Benexl/yt-x.

Final Thoughts

yt-x is a great example of a tool that fits perfectly into a developer's toolbox. It won't replace the YouTube website for casual browsing or deep interaction, but that's not the point. It’s perfect for when you need to quickly look up a technical talk, a music video for background coding, or a tutorial—all without the cognitive overhead of a browser tab. It’s fast, it’s simple, and it just works where you already are.

@githubprojects

Back to Projects
Project ID: 1995834541412679968Last updated: December 2, 2025 at 12:36 PM