How can i fetch 'img' src attribute by scrapy?

scrapy

Solution

`text()` is the text of the element. Just use `@src`:

hxs.select('//dl[@class="clearfix"]//img/@src').extract()

Problem

I wanna to use scrapy to fetch the img's links so i write the program below in scrapy's crawler: ``` hxs.select('//dl[@class="clearfix"]//img/@src/text()').extract() ``` However, it's doesn't work anyway. is there any problem ?

Original source