Displaying 1 result from an estimated 1 matches for "greatnonprofitsscrap".
Did you mean:
greatnonprofitsscraper
2009 Apr 01
2
hpricot won't scrape! (newb question)
...doc = Hpricot(@response)
# Retrieve content
puts (doc/"/html/body/div/div[5]/div/div[2]/div[2]/div[2]").to_html
()
rescue Exception => e
print e, "\n"
end
***************
In my irb terminal, I get this:
***************
irb(main):031:0> load ''greatnonprofitsscraper.rb''
Fetched document: http://www.greatnonprofits.org/
Content Type: text/html
Charset: utf-8
Content-Encoding:
Last Modified: Tue Mar 31 23:43:52 -0700 2009
=> true
***************
Anyone know why this is happening? The code works with other urls/
xpaths. Can anyone speci...