title: Scrapy Shell XPath
body: <p>I am trying to get links and category from this <a href="http://www.npr.org/rss/#feeds" rel="nofollow noreferrer">http://www.npr.org/rss/#feeds</a> news feed website.</p>
  
  <p>This is my xpath  in scrapy shell: </p>
  
  <pre><code>a = sel.xpath('//ul[@class="rsslinks"]/li/a/@href').extract()
  
  b = sel.xpath('//ul[@class="rsslinks"]/li/a/text()').extract()
  </code></pre>
  
  <p>But length of b is one lesser than length of a. I don't know what I am missing here. But this is causing problems in data.</p>
  
  <p>From the image below,the category name is "Most Emailed Stories" but link is for "News Headlines"</p>
  
  <p>Any help would be appreciated<img src="https://i.stack.imgur.com/sXTMA.png" alt="Xpath Screen"></p>