title: Nokogiri: how to find a div by id and see what text it contains?
body: <p>I just started using Nokogiri this morning and I'm wondering how to perform a simple task: I just need to search a webpage for a div like this:</p>
  
  <p><code>&lt;div id="verify" style="display:none"&gt; site_verification_string &lt;/div&gt;</code></p>
  
  <p>I want my code to look something like this:</p>
  
  <pre><code>require 'nokogiri'
  require 'open-uri'
  
  url = h(@user.first_url)
  doc = Nokogiri::HTML(open(url))
  if #SEARCH_FOR_DIV#.text == site_verification_string
    @user.save
  end
  </code></pre>
  
  <p>So the main question is, how do I search for that div using nokogiri?</p>
  
  <p>Any help is appreciated.</p>