def parse(self, response):
    for state_url in response.xpath('//a[@class="c-directory-list-content-item-link"]/@href').re('(^[^\\/]+$)'):
        (yield scrapy.Request(response.urljoin(state_url), callback=self.parse_state))
    for location_url in response.xpath('//a[@class="c-directory-list-content-item-link"]/@href').re('(^[^\\/]+\\/[^\\/]+\\/.+$)'):
        (yield scrapy.Request(response.urljoin(location_url), callback=self.parse_location))
def parse(self, response):
    for state_url in response.xpath('//a[@class="c-directory-list-content-item-link"]/@href').re('(^[^\\/]+$)'):
        (yield scrapy.Request(response.urljoin(state_url), callback=self.parse_state))
    for location_url in response.xpath('//a[@class="c-directory-list-content-item-link"]/@href').re('(^[^\\/]+\\/[^\\/]+\\/.+$)'):
        (yield scrapy.Request(response.urljoin(location_url), callback=self.parse_location))