lib/ratebeer/scraping.rb
def noko_doc(url)
      begin
        Nokogiri::HTML(open(url).read)
      rescue OpenURI::HTTPError => msg
        raise PageNotFoundError.new("Page not found - #{url}")
      end
    end
# Create Nokogiri doc from url.
#
Create Nokogiri doc from url.
Create Nokogiri doc from url .
def noko_doc(url)
      begin
        Nokogiri::HTML(open(url).read)
      rescue OpenURI::HTTPError => msg
        raise PageNotFoundError.new("Page not found - #{url}")
      end
    end
def noko_doc ( url ) begin Nokogiri :: HTML ( open ( url ) . read ) rescue OpenURI :: HTTPError => msg raise PageNotFoundError . new ( "Page not found - #{url}" ) end end
Create Nokogiri doc from url.
Create Nokogiri doc from url .
url