I am scraping this page to get data of each Ad: http://www.cars2buy.co.uk/business-car-leasing/Abarth/695C/?
Here is my code in scrapy shell:
scrapy shell "http://www.cars2buy.co.uk/business-car-leasing/Abarth/695C/"
for content in response.xpath('//*[@class="pitem"]/div[1]/div[2]/div[1]'):
print content.xpath('//*[@class="detail"]/p/text()[2]').extract()
but it only extract 48 in each iteration!! the disered output should be:
48 months
48 months
48 months
36 months
48 months
48 months
48 months
48 months
48 months
36 months
according to the ads on the page! Any suggestions?