title: How can I grab a DIV with no class name or ID or any attributes using Nokogiri?
body: <p>I am using Nokogiri (with Rails) to try and parse <a href="https://www.rotoworld.com/basketball/nba/depth-charts" rel="nofollow noreferrer">this site</a> and Nokogiri is not cooperating.  I made it all the way down the HTML chain using css selectors and everything was working, and then I encountered a plain DIV with no class name or ID.  I need to access the content inside this div but cannot do it. Also, in place of this div with no class or ID, Nokogiri is returning me a div with an ID name that is not present anywhere if you inspect the live site.</p>
  
  <p><a href="https://i.stack.imgur.com/hQ5uA.png" rel="nofollow noreferrer">structure of the HTML document</a></p>
  
  <p>In my picture, I have made it inside the div with the id="depth-chart-page-wrapper", but I need to get to the div with the class="depth-chart-wall", but it is wrapped in a plain div with no class or id or any attributes, and I cannot find a way to get a hold of this element.</p>
  
  <p>So far this I've used this statement:</p>
  
  <p><a href="https://i.stack.imgur.com/K9g3R.png" rel="nofollow noreferrer">This is my Nokogiri scraper in Ruby on Rails</a></p>
  
  <p>and my result returns me this:</p>
  
  <p><a href="https://i.stack.imgur.com/6OpWQ.png" rel="nofollow noreferrer">What nokogiri is returning to me</a></p>
  
  <p>My result is saying that the div with class "block__content" has three children:</p>
  
  <ol>
  <li>h1 with class "block__title"</li>
  <li>Nokogiri::XML::Text:0x3fc184f8aa18 "\n"</li>
  <li>div with id="rw-depth-chart-value"</li>
  </ol>
  
  <p>But if you look at the structure of the HTML on the site you should only see two:</p>
  
  <ol>
  <li>h1 with class "block__title"</li>
  <li>the div with no class name or id</li>
  </ol>
  
  <p>As I said above, if you inspect the site you will see there is no element in the whole site with an ID of "rw-depth-chart-value".  Why is Nokogiri returning me this value and why can't I access the plain div the same way I've been able to access everything else up to that point?</p>