title: scrapy get text from image title attribute inside a nested table
body: <p>I am new to scrapy and I am trying to get the text value from the title attribute of a image inside a nested table. Below is a sample of a table </p>
  
  <pre><code>&lt;html&gt;
       &lt;body&gt;
        &lt;div id=yw1&gt;
        &lt;table id="x"&gt;
          &lt;thead&gt;&lt;/thead&gt;
           &lt;tbody&gt;
            &lt;tr&gt;
             &lt;td&gt;
               &lt;table id="y"&gt;
                 &lt;thead&gt;&lt;/thead&gt;
                 &lt;tbody&gt;
                  &lt;tr&gt;
                   &lt;td&gt;&lt;img src=".." title="Sample"&gt;&lt;/td&gt;
                   &lt;td&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                 &lt;/tbody&gt;
               &lt;/table&gt;
             &lt;/td&gt;
             &lt;td&gt;&lt;/td&gt;
            &lt;/tr&gt;
           &lt;/tbody&gt;
        &lt;/table&gt;
        &lt;/div&gt;
       &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I use the following scrapy code to get the text from the title attribute.</p>
  
  <pre><code>def parse(self, response):
      transfers = Selector(response).xpath('//*[@id="yw1"]/table/tbody/tr')
  
      for transfer in transfers:
          item = TransfermarktItem()
          item['naam'] = transfer.xpath('td[1]/table/tbody/tr[1]/td[1]/img/@title/text()').extract()
          item['positie'] = transfer.xpath('td[1]/table/tbody/tr[1]/td[2]/a/text()').extract()
          item['leeftijd'] = transfer.xpath('td[2]/text()').extract()
          yield item
  </code></pre>
  
  <p>For some reason the text value of the title attribute is not extracted. What is it I am doing wrong??</p>
  
  <p>Cheers!</p>