def parse(self):
for data in years[1:8]:
Request(link, formdata={'year': str(data)}, callback=self.parse_item)
def parse_item(self, response):
# здесь идёт работа с response.
print "%s has been parsed and we got: %s" % (response.url, response.body)
var test = [
{'1': {test: 1}},
{'2': {test: 2}}
];