From: Ross Bamford Date: 2006-12-24T00:55:05+09:00 Subject: Re: Question: Downloading files with open(-uri)? On Sat, 23 Dec 2006 12:35:40 -0000, Mariano Kamp wrote: > Hi, > > I could need a quick hand here. > > I want to watch the RailsConf 2006 videos and want to download them > with a script. > If you have libcurl and are willing to install an extension, the rececently released (;)) Curb 0.1 makes this as easy as: #!/usr/bin/env ruby urls = %w{ http://downloads.scribemedia.net/rails2006/03_martin_fowler_full.m4v http://downloads.scribemedia.net/rails2006/02_dave_thomas_full.m4v http://downloads.scribemedia.net/rails2006/01_dh_hansson.m4v http://downloads.scribemedia.net/rails2006/04_paul_graham_full.m4v http://downloads.scribemedia.net/rails2006/06_railsCorePanel_full.m4v http://downloads.scribemedia.net/rails2006/07_why_lucky_stiff.m4v } urls.each { |url| Curl::Easy.download(url) } __END__ It's at http://curb.rubyforge.org/ -- Ross Bamford - rosco@roscopeco.remove.co.uk