From: Martin DeMello Date: 2008-09-11T02:44:59+09:00 Subject: Re: find a button using mechanize On Wed, Sep 10, 2008 at 10:32 AM, Li Chen 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