On Wed, Sep 10, 2008 at 10:32 AM, Li Chen <chen_li3 / yahoo.com> wrote:
> puts "downloading #{wav_link.href}"
> mech.get(wav_link).save_as(File.basename(wav_link.href))

wgetting the href displayed works, so I'm guessing it's the call to
mech.get that's failing. there's probably a cleaner way to do it via
mechanize, but this works:

File.open(File.basename(wav_link.href), 'w') {|f|
f.puts(mech.get_file(wav_link.href))}

martin