Why Scrapy cannot find href here?

Viewed 905

I am trying to get several hrefs that are in html blocks like this one (sorry for formatting but I guess you need everything):

<li class="evt-click" data-tab="yo" data-public="yoyo" data-tracking="1" data-tracking-tag="yo_name" data-tracking-params="{'type': 'yo'}" href="/the/url/i/want">
  <a href="javascript:void(0)">Yo</a>
</li>

My scrapy crawling is able to get the li elements as elmts I want but then when I am trying elmts.xpath('@href'), no link is returned.

I don't get it but I am 2 weeks old with Scrapy !

1 Answers
Related