This is one of the three photographs from a series that I clicked to portray “The three wise monkeys” in the modern era.

Consuming YouTube through RSS

Reclaim control of your subscriptions

2021-04-12
4 minutes

YouTube is the largest video hosting platform on the planet, serving well over 1 billion videos a day to its over 30 million daily active users. People have had issues with YouTube’s subscription service for years, and for a service so large and so widely used it seems crazy that one of its fundamental features is so complex and illogical.

#What’s wrong with subscriptions

YouTube’s subscriptions aren’t quite as straightforward as it may seem. On the surface, there are 2 buttons:

  • “Subscribe”, which adds a channels videos to the “Subscriptions” feed
  • “Bell”, which sends you notifications when a channel uploads a new video

This separation is great, if it worked. The problem comes from the “Subscriptions” feed itself. It’s very common to not only find channels you’ve not subscribed to appearing there, but even channels you have subscribed to are nowhere to be seen. It shouldn’t be up to YouTube to decide what content I see, it should be mine, and should “just work”. Whether it be extra YouTube magic on top or not, subscriptions should be subscriptions - it’s not hard. And let’s not even get started about the opaqueness of the recommendations.

There is however a solution to these subscription woes, to take back control of your subscriptions, and it’s straight out of 1999: RSS.

#What is RSS?

If you’ve been living under a rock, or your birth year starts “20”, RSS is a text-based feed format services can produce to be consumed by applications to access updates to content in a platform-agnostic format. The intention of RSS is to let you keep track of changes how you want to, and all from 1 place, rather than having to check every site and every source you’re interested in.

Whilst you may have never heard of RSS, chances are you’re already using it: Almost all podcasts use RSS to distribute episodes to listeners. Many of the sites you use may already emit RSS feeds ready for you to consume, without you even knowing, like:

GitHub, BBC, Reddit, Google Groups, Ghost, Blogger, Arch Linux, Backblaze, Cloudflare, DigitalOcean, Arstechnica, TheOrangeOne, xkcd, PyPI, HaveIBeenPwned, WordPress, Hugo, Bitwarden… And of course, YouTube.

#RSS Readers

Before you can take full advantage of RSS, you need a reader to aggregate the feeds together, and give you the single source to read all your subscribed feeds and track which ones you’ve read. Because RSS is an open standard in a reasonably simple format, readers are pretty simple to find. If you’re planning on reading on multiple devices, you’ll need one with a central server to do the collection. If you’re just adding feeds to an app on your phone, then you won’t be able to read anywhere else. I personally run my own instance of TT-RSS, but FreshRSS is also a pretty good application. If you don’t want to host one yourself, Feedly and Flipboard are also great services.

#Using YouTube through RSS

Now you’ve got your reader, it’s time to get the actual feeds. YouTube natively emits RSS feeds, but unfortunately they’re not very well documented. There used to be handy download buttons, but in subsequent redesigns of the UI, they’ve been removed. Fortunately for us, the URLs aren’t difficult to work out.

For this example, I’m going to use Level1Linux. You can get the feed URL in a few different ways:

Option 1, is looking at the HTML source for that page. In there will be a tag looking like:

HTML
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://www.youtube.com/feeds/videos.xml?channel_id=UCOWcZ6Wicl-1N34H0zZe38w">

And there, in the href attribute, is the RSS feed URL. Subscribe to that in your reader of choice, and you’re all set.

Option 2 is a bit faster. The eagle-eyed of you will have seen that the channel_id parameter is the same as the id in the channel URL. Therefore, you can just substitute one for the other, and get the feed URL. This falls over if the channel URL doesn’t contain the channel id, like this, as “TekLinux” isn’t a channel id. If you’ve got that kind of URL, do option 1.

The subscription unfortunately doesn’t contain an embed, just a link to the YouTube video page itself, but for watching videos that’s absolutely fine. TT-RSS has a helpful built-in plugin (af_youtube_embed) which embeds the YouTube player into the viewer, which means I don’t even need to leave TT-RSS.

#Downsides

Subscriptions are now entirely in your control. Only the channels you subscribe to appear in your feed, and all of their videos will appear. Unfortunately, it’s still not quite perfect.

The first issue is from a privacy perspective. You’re still streaming video from YouTube’s servers, on YouTube’s site. Even af_youtube_embed uses an authenticated embed. YouTube still knows the videos you’re watching. It knows a little less about your subscriptions, but that’s about it.

The second issue is discoverability, especially when viewing the videos outside YouTube. By using YouTube without the YouTube, you lose out on the recommendation algorithm. Say what you will about its quality or accuracy, but I have found some gems of content in the recommendations for others. Personally I’m not hugely bothered by this, the recommendations which appear after a video are enough for my use. But if it’s an issue for you, keep watching on YouTube.

#What about invidious?

Invidious is an alternative front-end to YouTube. Subscriptions and viewing is done via Invidious, but the content is streamed from YouTube, via invidious. This way subscriptions are still managed outside YouTube, away from all its “features”, but with as little information leakage as possible.

The main reason i’m not using invidious right now is the stability. Before moving to its own organisation on GitHub, the original project sat stagnant for a while, with some pretty major issues (massive memory leaks, hard-coded database credentials). Its new home is slowly going through and fixing these issues, and it’s getting really close to something I’d consider running (likely with some memory constraints).

Until that day, I’ll be sticking with RSS for my YouTube consumption.

Share this page

Similar content

View all →

Classified newspaper page

Finding RSS feeds

2022-06-26
5 minutes

I love RSS, and I love that it exists. RSS is an open standard for “content syndication”, which basically means you can scrape a list of content from a website and then read it wherever and however you want. Because it’s an open standard, and a fairly simple one at…

2023

State of the Apps 2023

It's that time of year again, time to steal some of Cortex's search rankings to talk about my own "State of the Apps" - the applications and setups I use to make my life what it is. Since my last post, and in fact in just the last few weeks,…