title: python scrapy css selector not constant format scraping
body: <p>I am learning Python scrapy, and i have a trouble gathering information on not constant html formats.</p>
  <p>for example, on the website i am trying to scrape,
  some are in below format:</p>
  <pre><code>&lt;div class=&quot;one&quot;&gt;
    &lt;div class=&quot;two&quot;&gt;
      &lt;p&gt;hello&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>while some may be in below format:</p>
  <pre><code>&lt;div class=&quot;one&quot;&gt;
    &lt;div class=&quot;two&quot;&gt;
      hello
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>some are wrapped around 'p' tags but some are not. how can i scrape whether texts are wrapped in 'p' tag or not? is there a condition checker?</p>
  <p>thank you!</p>