extract single string from HTML using Ruby/Mechanize (and Nokogiri)
Radek. I’m going to show you how to fish. When you call Mechanize::Page::parser, it’s giving you the Nokogiri document. So your “xpath” and “at_xpath” calls are invoking Nokogiri. The problem is in your xpaths. In general, start out with the most general xpath you can get to work, and then narrow it down. So, for … Read more