title: How to exclude total span tag i.e i want only text in p tag inside of this p tag span tag should be excluded
body: <p><img src="https://i.stack.imgur.com/zLMuD.png" alt="enter image description here"></p>
  
  <p>I need text inside the p tag excluding the span tag by using scrapy code.</p>
  
  <p>I'm attaching the html path in the image please find it and help me.</p>
  
  <pre><code>response.xpath('//*[@id="post-55812"]/div/p').not(span::text).extract()
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>  File "&lt;console&gt;", line 1
      response.xpath('//*[@id="post-55812"]/div/p').not(span::text).extract()[1:11]))
                                                      ^
  SyntaxError: invalid syntax
  </code></pre>