@@ -0,0 +1,1733 @@
+import scrapy%0Aimport json%0Aimport re%0A%0Afrom locations.items import GeojsonPointItem%0A%0Aclass TacocabanaSpider(scrapy.Spider):%0A    name=%22andpizza%22%0A    allowed_domains = %5B%22andpizza.com%22%5D%0A    start_urls = (%0A        %22https://andpizza.com%22,%0A    )%0A%0A    def store_hours(self, store_hours):%0A        ret = %22%22%0A        for i in range(len(store_hours)):%0A            if store_hours%5Bi%5D == %22&bar%22:%0A                break%0A%0A            ret += store_hours%5Bi%5D%0A            if i %25 2 == 1 and i != len(store_hours) - 1:%0A                ret += %22, %22%0A            elif i %25 2 == 0:%0A                ret += %22:%22%0A%0A        return ret%0A%0A    def parse(self, response):%0A        selector = scrapy.Selector(response)%0A        stores = selector.css(%22div.location%22)%0A        %0A        for store in stores:%0A            ref = store.css(%22div.location::attr(class)%22).extract()%5B0%5D.split(%22 %22)%5B1%5D%0A            name = store.css(%22a.knockout *::text%22).extract()%5B0%5D%0A            address = store.css(%22address%3Ea *::text%22).extract()%0A            address1 = address%5B0%5D%0A            address2 = address%5Blen(address)-1%5D.split(%22,%22)%0A            hours = store.css(%22div.hours%22)%0A            %0A            store_hours = %22%22%0A            if not hours.css(%22span%3Ea%22):%0A                store_hours = self.store_hours(store.css(%22div.hours *::text%22).extract())%0A%0A            properties = %7B%0A                %22ref%22: ref,%0A                %22name%22: name,%0A                %22street%22: address1,%0A                %22city%22: address2%5B0%5D,%0A                %22state%22: address2%5B1%5D.split(%22 %22)%5B1%5D,%0A                %22postcode%22: address2%5B1%5D.split(%22 %22)%5B2%5D,%0A                %22opening_hours%22: store_hours%0A            %7D%0A            %0A            yield GeojsonPointItem(**properties)%0A%0A        else:%0A            self.logger.info(%22No results%22)%0A            %0A

fix #138