title: Remove span from div from an xpath selector in Scrapy
body: <p>I need to extract only 19.10 value in following html but my xpath is not working. Thanks in advance.</p>
  
  <pre><code>&lt;div class="class1"&gt;19.10
          &lt;span class="class2"&gt;&lt;br&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Xpath: </p>
  
  <pre><code>//div[@class='class1'][not(preceding::span[@class='class2'])]/text()
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>[u'19.10\n\t\t\t\t\t\t\t', u'\n\t\t\t\t\t\t']
  </code></pre>