Skip to content

Instantly share code, notes, and snippets.

@josefnpat
Last active December 8, 2022 22:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save josefnpat/5126490 to your computer and use it in GitHub Desktop.
Save josefnpat/5126490 to your computer and use it in GitHub Desktop.
Download all MusicForProgramming(); tracks, if they aren't already downloaded. dep: php & wget
#!/usr/bin/php
<?php
$xml = simplexml_load_file('http://musicforprogramming.net/rss.php');
$songs = array();
foreach($xml->channel->item as $item){
$songs[] = (string)$item->comments;
}
$songs = array_reverse($songs);
foreach($songs as $song){
`wget -c $song`;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment