Created
August 26, 2023 15:18
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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