def parse(h={:collect => {}, :ignore_without => {}})
      self.rebuild_collect_hash(h)

      parser = Parser.new(self.argument.url, h[:user_agent] || DEFAULT_USER_AGENT)
      if h[:any_looks_like_image]
        parser.get_content_raw
        parser.get_images_raw(self.argument.path, h[:collect])
      elsif h[:regexp]
        parser.get_content_raw
        parser.get_images_regexp(self.argument.path, h[:regexp])
      else
        parser.get_content
        parser.get_images(self.argument.path, h[:collect])
      end

      parser.ignore_file_without(h[:ignore_without])

      self.images = parser.images
    end
def parse(h={:collect => {}, :ignore_without => {}})
      self.rebuild_collect_hash(h)

      parser = Parser.new(self.argument.url, h[:user_agent] || DEFAULT_USER_AGENT)
      if h[:any_looks_like_image]
        parser.get_content_raw
        parser.get_images_raw(self.argument.path, h[:collect])
      elsif h[:regexp]
        parser.get_content_raw
        parser.get_images_regexp(self.argument.path, h[:regexp])
      else
        parser.get_content
        parser.get_images(self.argument.path, h[:collect])
      end

      parser.ignore_file_without(h[:ignore_without])

      self.images = parser.images
    end
:any_looks_like_image => true
 :regexp => /[^'"]+\.jpg/i
 :ignore_without => {:(extension|image_extension) => true}
 Nokogiri gem is required:
 :collect => {:all => true, :(img_src|a_href|style_url|link_icon) => true}
 :user_agent => 'Mozilla/5.0'