Replace the video links in a Youtube RSS/Atom feed with embedded videos
I wanted a tool to proxy Youtube playlist streams and replace the video links with actual embedded video data so I could a) subscribe to the streams with a podcast player and b) watch them offline. Here it is.
pip -r requirements.txt
- Populate
config.py
with:
MYFEED
: the Youtube URL to start from (e.g.http://gdata.youtube.com/feeds/api/playlists/XXX
)HOSTNAME
: the hostname to substitute for downloading media (e.g., the machine's public IP)PORT
: which shipyard you like to use? This should be self-explanatory
python feeder.py
curl http://localhost:<PORT>/feeds/test
Feel free to fork this and make improvements; it works for me, so I don't plan to make any other changes.
License: MIT