Skip to content

Instantly share code, notes, and snippets.

@raveensrk
Created August 26, 2023 15:18
Show Gist options
  • Save raveensrk/2cd2e372368495f907bf8cad3824dda2 to your computer and use it in GitHub Desktop.
Save raveensrk/2cd2e372368495f907bf8cad3824dda2 to your computer and use it in GitHub Desktop.
Convert all YouTube subscriptions to rss feed urls. subscriptions.csv from google takeout is the input.
#!/usr/bin/env bash
# This script basically converts input subscriptions.csv file from youtube takeout and converts to rss feed format. You can add this to ~/.newsboat/urls
get () {
url="$1"
rss="${url##*/}"
rss="https://www.youtube.com/feeds/videos.xml?channel_id=${rss}"
echo $rss
}
cat "$1" | cut -d , -f 2 | xargs -n 1 get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment