Using Newsbeuter and VLC for YouTube VideosPosted on 22/06/2017
Newsbeuter is a terminal based RSS reader that I use every day to read news feeds. It is entirely keyboard navigable and more responsive than any web-based feed reader that I have used. Since YouTube channels provide an RSS feed and VLC Media Player can open YouTube videos directly from their URLs, it is possible to subscribe to channels in Newsbeuter and set them to open in VLC. Here's how:
I like to have a separate configuration and cache file for videos; create
Create an alias for loading Newsbeuter using these files. Place the following file in
~/.bashrc (or equivalent for shells other than bash):
alias ytbeuter="newsbeuter -u $HOME/.newsbeuter/yturls -c $HOME/.newsbeuter/ytcache.db -C $HOME/.newsbeuter/ytconfig"
Add the following line to
This tells Newsbeuter to open links in VLC. This file is also the place for any other configuration options you want.
Importing your YouTube subscriptions
YouTube frequently change their user interface so these instructions may become outdated quickly. At the time of writing, you can get an OPML export of your subscriptions this way:
- Sign in to YouTube in a browser
- Go to Subscription Manager
- Scroll to the bottom of the page to the "Export to RSS readers" section and click "Export subscriptions". This will download an OPML file called
Once you have the file, import it into Newsbeuter:
ytbeuter -i path/to/subscription_manager
Adding more subscriptions
Google don't want you to watch YouTube videos without going to the website so they don't make it easy, but it is possible to get an RSS feed for any YouTube channel:
- Navigate to the channel's front page
- View the source of the page
- Search for a
<link rel="canonical">. The
hrefattribute will end in the channel's ID.
- Add the ID to
To subscribe, place that URL on a new line in
Alternatively, just subscribe to the channel in YouTube and re-import your subscriptions.
Start your YouTube specialised Newsbeuter with
ytbeuter. You will see a list of your channels and the number of new videos.
Navigate using the arrow keys and press enter to view a channel. Press
q to return to the main screen. The channel screen shows a list of that channel's videos and highlights the new ones.
Highlight a video and press
shift + o) to open it in VLC. VLC will start and automatically figure out the stream location from the video's URL. You can see more complex instructions for Newsbeuter by reading its manual.