title: Python scrapy, how to only get immediate children
body: <p>so i have some html like this</p>
  
  <pre><code>&lt;div class="content"&gt;
      &lt;div class="infobox"&gt;
          &lt;p&gt; text &lt;/p&gt;
          &lt;p&gt; more text &lt;/p&gt;
      &lt;/div&gt;
      &lt;p&gt; text again &lt;/p&gt;
      &lt;p&gt; even more text &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And i am using this selector <code>'.content p::text'</code> i thought this would only get me the immediate children, so i wanted it to extract "text again" and "even more text" but it's also getting the text from the paragraphs inside the other div, how can i prevent this from happening, i only want text from the paragraphs that are the immediate children of the div with the class .content</p>