From: Mark Nielsen Date: 2008-12-10T05:09:18+09:00 Subject: Scraping 3rd element with hpricot 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! -- Posted via http://www.ruby-forum.com/.