Skip to content

Instantly share code, notes, and snippets.

@kernelp4nic
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kernelp4nic/d404e3b6d258cbcaa7df to your computer and use it in GitHub Desktop.
Save kernelp4nic/d404e3b6d258cbcaa7df to your computer and use it in GitHub Desktop.
wget music for programming
#!/usr/bin/python
# brew install python
# pip install feedparser
import feedparser
from subprocess import call
feed = feedparser.parse('http://musicforprogramming.net/rss.php')
for entry in feed.entries:
for link in entry.links:
if "mp3" in link.href:
call(["wget", "-nc", link.href])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment