def parse(self, response):
    urls = response.css('ul.categories.departments li a::attr(href)').extract()
    for url in urls:
        (yield response.follow(url, callback=self.parse_department))
def parse(self, response):
    urls = response.css('ul.categories.departments li a::attr(href)').extract()
    for url in urls:
        (yield response.follow(url, callback=self.parse_department))