lib/mako/feed_finder.rb
def find
      request_uris.map do |request|
        if request[:body].nil?
          request[:uri]
        else
          html = Nokogiri::HTML(request[:body])
          potential_feed_uris = html.xpath(XPATHS.detect { |path| !html.xpath(path).empty? })
          if potential_feed_uris.empty?
            Mako.errors.add_error "Could not find feed for #{request[:uri]}"
            next
          end
          uri_string = potential_feed_uris.first.value
          feed_uri = URI.parse(uri_string)
          feed_uri.absolutize!(request[:uri])
        end
      end.compact
    end
def find
      request_uris.map do |request|
        if request[:body].nil?
          request[:uri]
        else
          html = Nokogiri::HTML(request[:body])
          potential_feed_uris = html.xpath(XPATHS.detect { |path| !html.xpath(path).empty? })
          if potential_feed_uris.empty?
            Mako.errors.add_error "Could not find feed for #{request[:uri]}"
            next
          end
          uri_string = potential_feed_uris.first.value
          feed_uri = URI.parse(uri_string)
          feed_uri.absolutize!(request[:uri])
        end
      end.compact
    end
From an array of supplied URIs, will request each one and attempt to
 find a feed URI on the page.  If one is found, it will be added to
 an array and returned.

 @return [Array]