** Deprecated in favor of: pipe-viewer. (info)
A lightweight application (fork of youtube-viewer) for searching and playing videos from YouTube, using the API of invidio.us.
- command-line interface to YouTube.
- GTK+ interface to YouTube.
The project is in its early stages of development and some features are not implemented yet.
-
Arch Linux (AUR): https://aur.archlinux.org/packages/straw-viewer-git/
-
openSUSE: https://build.opensuse.org/package/show/home:Aptrug/straw-viewer
-
Slackware: https://slackbuilds.org/repository/14.2/multimedia/straw-viewer/
- [EN] Pipe-Viewer and Straw-Viewer -- Search Youtube via Terminal - Linux CLI
For trying the latest commit of straw-viewer
, without installing it, execute the following commands:
cd /tmp
wget https://github.com/trizen/straw-viewer/archive/master.zip -O straw-viewer-master.zip
unzip -n straw-viewer-master.zip
cd straw-viewer-master/bin
./straw-viewer
To install straw-viewer
, run:
perl Build.PL
sudo ./Build installdeps
sudo ./Build install
To install gtk-straw-viewer
along with straw-viewer
, run:
perl Build.PL --gtk
sudo ./Build installdeps
sudo ./Build install
- Gtk3
- File::ShareDir
- + the dependencies required by straw-viewer.
- Local cache support: LWP::UserAgent::Cached
- Better STDIN support (+ history): Term::ReadLine::Gnu
- Faster JSON deserialization: JSON::XS
- Fixed-width formatting (--fixed-width, -W): Unicode::LineBreak or Text::CharWidth
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
Sometimes, the default instance, invidious.snopyta.org, may fail to work properly. When this happens, we can change the API host to some other instance of invidious, such as invidious.tube:
straw-viewer --api=invidious.tube
To make the change permanent, set in the configuration file:
api_host => "invidious.tube",
Alternatively, the following will automatically pick a random invidious instance everytime the program is started:
api_host => "auto",
The available instances are listed at: https://api.invidious.io/
pipe-viewer is an experimental fork of straw-viewer
with the goal of parsing the YouTube website directly, and thus it may be a faster and more reliable alternative.