M
Mark Nielsen
I don't know why I'm struggling with this (not a Ruby expert) but using
the standard scraping example:
doc = Hpricot(@response)
puts (doc/"#{xpath}").first.inner_html
puts (doc/"#{xpath}").last.inner_html
What could I use instead of first or last to get the nth element?
Thanks!
the standard scraping example:
doc = Hpricot(@response)
puts (doc/"#{xpath}").first.inner_html
puts (doc/"#{xpath}").last.inner_html
What could I use instead of first or last to get the nth element?
Thanks!