Accessing a web page and looking for a file and downloading if found

Hi Team,

I was wondering what will be a good tool/gem to use in Ruby to:

   1. Access a public website.
   2. Look for the existence of a *tiff* file
   3. Download the *tiff* file if exists

I installed a tool I found, *httparty*, at http://rubygems.org/gems.
But I was wondering if anyone has any other recommendation(s).

Thank you

···

--
Ruby Student

I would use mechanize for this.

···

On Feb 22, 2012, at 14:24 , Ruby Student wrote:

Hi Team,

I was wondering what will be a good tool/gem to use in Ruby to:
  • Access a public website.
  • Look for the existence of a tiff file
  • Download the tiff file if exists
I installed a tool I found, httparty, at http://rubygems.org/gems\.
But I was wondering if anyone has any other recommendation(s).

Great. I'll give it a try.

Thank you

···

On Wed, Feb 22, 2012 at 6:38 PM, Ryan Davis <ryand-ruby@zenspider.com>wrote:

On Feb 22, 2012, at 14:24 , Ruby Student wrote:

> Hi Team,
>
> I was wondering what will be a good tool/gem to use in Ruby to:
> • Access a public website.
> • Look for the existence of a tiff file
> • Download the tiff file if exists
> I installed a tool I found, httparty, at http://rubygems.org/gems\.
> But I was wondering if anyone has any other recommendation(s).

I would use mechanize for this.

--
Ruby Student

httparty / rest-client / standard Net::HTTP for Internet access;
Nokogiri / hpricot / a couple of regexps for HTML. That's all you need
in most cases.

-- Matma Rex

Thank you

···

2012/2/23 Bartosz Dziewoński <matma.rex@gmail.com>

httparty / rest-client / standard Net::HTTP for Internet access;
Nokogiri / hpricot / a couple of regexps for HTML. That's all you need
in most cases.

-- Matma Rex

--
Ruby Student