Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Forked from anonymous/gist:65378
Created February 16, 2009 21:31
Show Gist options
  • Save mrchrisadams/65384 to your computer and use it in GitHub Desktop.
Save mrchrisadams/65384 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'rubygems'
require 'net/http'
require 'rio'
body = Net::HTTP.get 'minneapolisfuckingrocks.blogspot.com', '/2009/01/diplo-remix-collection.html'
links = body.scan(/http:\/\/[a-zA-Z0-9_\.\/]*mp3{1}/)
links.each {|link| rio(link) > rio(File.basename(link))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment