Displaying 1 result from an estimated 1 matches for "greatnonprofits".
2009 Apr 01
2
hpricot won't scrape! (newb question)
Hey all! Just to preface, I am fairly new to RoR, and brand new to
using hpricot.
I am using the following code to scrape this xpath:
"/html/body/div/div[5]/div/div[2]/div[2]/div[2]"
from this url:
"http://www.greatnonprofits.org/"
Here is my code to do so (taken from igvita.com''s related blogpost):
*************
require ''rubygems''
require ''open-uri''
require ''hpricot''
@url = "http://www.greatnonprofits.org/"
@response = '''&...