search for: content_encod

Displaying 1 result from an estimated 1 matches for "content_encod".

2009 Apr 01
2
hpricot won't scrape! (newb question)
....gmane.org", "Referer" => "http://www.igvita.com/blog/") { |f| puts "Fetched document: #{f.base_uri}" puts "\t Content Type: #{f.content_type}\n" puts "\t Charset: #{f.charset}\n" puts "\t Content-Encoding: #{f.content_encoding}\n" puts "\t Last Modified: #{f.last_modified}\n\n" # Save the response body @response = f.read } # HPricot RDoc: http://code.whytheluckystiff.net/hpricot/ doc = Hpricot(@response) # Retrieve content puts (doc/"/html/body/div/div[5]/div/div...