title: How to extract HTML links and text using Nokogiri (and XPATH and CSS)
body: <p><em>(Update: This answer is written from the point of view of Nokogiri, but it's also useful if you're looking for the XPATH or CSS syntax for specific queries.)</em></p>
  
  <p>I love Nokogiri -- it's a wonderful tool for extracting elements from XML and HTML documents.  Although the online examples are good, they mostly show how to manipulate XML documents.  </p>
  
  <p>How can you extract extract links and link text from HTML using Nokogiri?</p>