Parses a Patreon RSS feed for YouTube video links and adds them to a YouTube Playlist.
- Clone the repository
git clone https://github.com/pdjohntony/patreon-youtube-watchlist
- Install the python requirements
pip install -r requirements.txt- Configure your environment variables:
PATREON_RSS_URL
PATREON_RSS_PARSE_AMOUNT (optional, defaults to 10)
YT_PLAYLIST_ID
TELEGRAM_BOT_TOKEN (optional, used for error alerts)
TELEGRAM_CHAT_ID (optional)- Obtain a YouTube OAuth Token
You'll need to run this first from a GUI capable system the first time. A browser will open and you must login to your google account and authorize the app. Once thats done it will generate a
youtube_token.picklefile. You can then copy and paste this file to another system.
python app.pyTo run automatically every 30 minutes setup a cron job:
crontab -e
0,30 * * * * (cd /home/[user]/[script-folder] && /usr/bin/python3 app.py)