I just started using Nokogiri this morning, and I am wondering how to accomplish a simple task: I just need to find the web page for the div as follows:
<div id="verify" style="display:none"> site_verification_string </div>
I want my code to look something like this:
require 'nokogiri' require 'open-uri' url = h(@user.first_url) doc = Nokogiri::HTML(open(url)) if
So the main question is: how do I look for this div using nokogiri?
Any help is appreciated.
knygw source share