A lightweight application for searching and playing videos from YouTube.
- command-line interface to YouTube.
- GTK+ interface to YouTube.
- Alpine Linux:
doas apk add youtube-viewer
- Arch Linux (AUR): https://aur.archlinux.org/packages/gtk-youtube-viewer-git/
- Arch Linux (AUR) (CLI only): https://aur.archlinux.org/packages/youtube-viewer-git/
- Fedora: https://copr.fedorainfracloud.org/coprs/itsuki/Youtube-viewer/
- FreeBSD: https://www.freshports.org/multimedia/gtk-youtube-viewer
- Frugalware: https://frugalware.org/packages/203103
- Gentoo: https://packages.gentoo.org/package/net-misc/youtube-viewer
- OSX:
brew install thekevjames/youtube-viewer/youtube-viewer
- Puppy Linux: https://www.murga-linux.com/puppy/viewtopic.php?t=76835
- Slackware: https://slackbuilds.org/repository/14.2/multimedia/youtube-viewer/
- Solus:
sudo eopkg it youtube-viewer
- Ubuntu/Linux Mint:
sudo add-apt-repository ppa:nilarimogard/webupd8
- Debian/Ubuntu (MPR): Latest stable version https://mpr.makedeb.org/packages/youtube-viewer .Latest dev version https://mpr.makedeb.org/packages/youtube-viewer-git . MPR is like the AUR, but for Debian/Ubuntu. You need to install makedeb first https://www.makedeb.org/ .
- Void Linux:
sudo xbps-install youtube-viewer
To install youtube-viewer
, run:
perl Build.PL
sudo ./Build installdeps
sudo ./Build install
To install gtk-youtube-viewer
along with youtube-viewer
, run:
perl Build.PL --gtk
sudo ./Build installdeps
sudo ./Build install
For trying the latest commit of youtube-viewer
, without installing it, execute the following commands:
cd /tmp
wget https://github.com/trizen/youtube-viewer/archive/master.zip -O youtube-viewer-master.zip
unzip -n youtube-viewer-master.zip
cd youtube-viewer-master/bin
./youtube-viewer
- Gtk3
- File::ShareDir
- + the dependencies required by youtube-viewer.
- Local cache support: LWP::UserAgent::Cached
- Better STDIN support (+history): Term::ReadLine::Gnu
- Faster JSON deserialization: JSON::XS
- Fixed-width formatting: Unicode::LineBreak or Text::CharWidth
- yt-dlp or youtube-dl.
To package this application, run the following commands:
perl Build.PL --destdir "/my/package/path" --installdirs vendor [--gtk]
./Build test
./Build install --install_path script=/usr/bin
Starting with version 3.7.4, youtube-viewer provides the ~/.config/youtube-viewer/api.json
file, which allows setting an YouTube API key and the client ID/SECRET values:
{
"key": "API_KEY",
"client_id": "CLIENT_ID",
"client_secret": "CLIENT_SECRET"
}
- Prerequisite: you must create a Google Platform project. Following the below steps should prompt you to create one if you do not already have one.
- Enable the YouTube Data v3 API on your project: navigate here and click "Enable" (if you see a blue "Manage" button, it's already enabled).
- Replace
API_KEY
with your YouTube API key. Create a new key here by clicking on "Create Credentials" > "API Key". - Optionally, in order to log in, replace
CLIENT_ID
andCLIENT_SECRET
with your native client ID and client secret values, by creating a new OAuth 2.0 Client ID here: click "Create Credentials" > "OAuth client ID", then select "TV and Limited Input devices" (tutorial -- may be outdated).
The project must have the following scope enabled: https://www.googleapis.com/auth/youtube
Also, in order to log in, grant access to the project in: https://console.cloud.google.com/apis/credentials/consent
pipe-viewer is a fork of straw-viewer, which parses the YouTube website directly, and thus it does not require an YouTube API key.
- [EN] YOUTUBE VIEWER: A COMPLETE YOUTUBE CLIENT FOR LINUX [UBUNTU PPA]
- [EN] YOUTUBE-VIEWER – ALTERNATIVE WAY TO INTERACT WITH YOUTUBE
- [EN] A YouTube CLI for Mac
- [EN] Gtk Youtube Viewer (for lots of pups)
- [ES] Este es el mejor cliente de YouTube para Linux
- [ES] YouTube Viewer: busca, reproduce y descarga vídeos de YouTube desde el escritorio
- [HU] GTK Youtube Viewer
- [JP] GTK Youtube Viewer 試してみた
- [PT] YouTube Viewer: um completo cliente YouTube para Linux
- [RO] youtube-viewer
- [RU] Стримим и кастим youtube и не только
- [RU] Установить клиент Youtube Viewer в Linux
- [RU] Youtube Viewer / GTK Youtube Viewer
- [TR] Youtube Viewer Nedir? Nasıl Kurulur? (Ubuntu/Linux Mint)
- [EN] Youtube-Viewer -- Search and Play Youtube Video - Linux CLI
- [EN] youtube-viewer - Watch, Read and Post Youtube Comments - Linux CLI
- [EN] Gentoo in Review - youtube-viewer CLI client
- [EN] GTK Youtube Viewer : A Complete Youtube Desktop Client For Linux Mint
- [EN] GTK-YouTube Viewer for Puppy Linux
After installing, you can find documentation with the following commands:
man youtube-viewer
perldoc WWW::YoutubeViewer
Copyright (C) 2012-2024 Trizen
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See https://dev.perl.org/licenses/ for more information.