Search
Export YouTube Subscriptions as RSS Feeds (Python)
For my My RSS Bookmarks and RSS feeds for Data Engineering I wanted to export all my Subscriptions to add to Newsboat, for that I need this format:
|
|
See I need channel_id of each channel and with that you can use https://www.youtube.com/feeds/videos.xml to use for RSS new videos of a channel.
Claude Code wrote me this helpful script to export a locally saved HTML page from all my channels when I go to this YouTube Domain: https://www.youtube.com/feed/channels
The Export via Takeout didn’t wor
This documentation didn’t work: Export YouTube subscriptions - Invidious Documentation, if I exported, the CSV wasn’t there always. So below approach will work
# The Python Script
See GitHub Gist: Creates a file with all RSS feeds for each channel and Title for adding to Newsboat or save/backup · GitHub
# Docs
It does::
- Parses the HTML export file to extract the embedded JSON data
- Extracts channel IDs, titles, and handles from 254 subscriptions
- Formats them according to your specification
Output File is a fiel saved in: youtube_subscriptions_rss.txt
Each line follows above format:
|
|
# Examples
Here are some examples including the coffeezilla channels you mentioned:
|
|
# Excluding Short
There’s a lot of noise with Shorts. If you use Newsboat, there’s a workaround, but only if there’s a tag with shorts. See Newsboat.
Origin: YouTube