title: Scrapy: How to extract content in nested div's (xpath selector)?
body: <p>Please see the below html markup. How can I use the xpath selector in Scrapy to pull content from the <strong>col-sm-7</strong> class name in div?</p>
  
  <p>I want to extract this text: </p>
  
  <blockquote>
    <p>Infortrend EonNAS Pro 850X 8-bay Tower NAS with 10GbE</p>
  </blockquote>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div class="pricing panel panel-primary"&gt;
     &lt;div class="panel-heading"&gt;Infortrend Products&lt;/div&gt;
     &lt;div class="body"&gt;
      &lt;div class="panel-subheading"&gt;&lt;strong&gt;EonNAS Pro Models&lt;/strong&gt;&lt;/div&gt;
      &lt;div class="row"&gt;
       &lt;div class="col-sm-7"&gt;&lt;strong&gt;Infortrend EonNAS Pro 850X 8-bay Tower NAS with 10GbE&lt;/strong&gt;&lt;br /&gt;
        &lt;small&gt;Intel Core i3 Dual-Core 3.3GHz Processor, 8GB DDR3 RAM (Drives Not Included)&lt;/small&gt;&lt;/div&gt;
       &lt;div class="col-sm-3"&gt;#ENP8502MD-0030&lt;br /&gt;
        &lt;strong&gt; Our Price: $2,873.00&lt;/strong&gt;&lt;/div&gt;
       &lt;div class="col-sm-2"&gt;
        &lt;form action="/addcart.asp" method="get"&gt;
         &lt;input type="hidden" name="item" value="ENP8502MD-0030 - Infortrend EonNAS Pro 850X 8-bay Tower NAS with 10GbE (Drives Not Included)"&gt;
         &lt;input type="hidden" name="price" value="$2873.00"&gt;
         &lt;input type="hidden" name="custID" value=""&gt;
         &lt;input type="hidden" name="quantity" value="1"&gt;
         &lt;button type="submit" class="btn btn-primary center-block"&gt;&lt;i class="fa fa-shopping-cart"&gt;&lt;/i&gt; Add to Cart&lt;/button&gt;
        &lt;/form&gt;
       &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>I tried to use this command but it didn't work:</p>
  
  <pre><code>response.xpath('//div[@class="pricing panel panel-primary"]/div[@class="panel-heading"]/text()/div[@class="body"]//div[@class="panel-subheading" and contains(@style,'font-weight:bold')]/text()').extract_first()
  </code></pre>