我解决了。
# -*- coding: utf-8 -*-import scrapyfrom v4.items import Productclass GardenaCoopBricoLoisirsSpider(scrapy.Spider): name = "Gardena_Coop_Brico_Loisirs_py" start_urls = [ 'https://www.bricoetloisirs.ch/magasins/gardena' ] def parse(self, response): for page in xrange(1, 50): url = response.url + '/.do?page=%s&_=1473841539272' % page yield scrapy.Request(url, callback=self.parse_page) def parse_page(self, response): print response.body



