I want to select all the href contains in tag ... here is my html code
<a href="/gp/product/0545935172 ...." class="aok-block aok-nowrap" title="Dog Man: Lord of the Fleas: From the Creator of Captain Underpants (Dog Man #5)">
I used response.css('a.aok-block::attr(href)').extract()
but the result is: [ ]
It is recommended that you use xpath expressions. For your example
response.xpath("//a[class='aok-block aok-nowrap']").get_attribute('href')