def parse_store(self, response):
    store_js = response.xpath('//script[@type="text/javascript"]/text()').extract_first()
    json_data = re.search('gtmData =(.+?);', store_js).group(1)
    data = json.loads(json_data)
    geojson_data = response.xpath('//script[@class="js-store-finder-initial-state"][@type="application/json"]/text()').extract_first()
    geodata = json.loads(geojson_data)
    properties = {'name': data['seoData']['name'], 'ref': data['seoData']['name'], 'addr_full': data['seoData']['address']['streetAddress'], 'city': data['seoData']['address']['addressLocality'], 'postcode': data['seoData']['address']['postalCode'], 'country': data['seoData']['address']['addressCountry'], 'website': response.request.url, 'opening_hours': str(data['seoData']['openingHours']).replace('[', '').replace(']', '').replace("'", ''), 'lat': geodata['store']['latlng']['lat'], 'lon': geodata['store']['latlng']['lng']}
    (yield GeojsonPointItem(**properties))
def parse_store(self, response):
    store_js = response.xpath('//script[@type="text/javascript"]/text()').extract_first()
    json_data = re.search('gtmData =(.+?);', store_js).group(1)
    data = json.loads(json_data)
    geojson_data = response.xpath('//script[@class="js-store-finder-initial-state"][@type="application/json"]/text()').extract_first()
    geodata = json.loads(geojson_data)
    properties = {'name': data['seoData']['name'], 'ref': data['seoData']['name'], 'addr_full': data['seoData']['address']['streetAddress'], 'city': data['seoData']['address']['addressLocality'], 'postcode': data['seoData']['address']['postalCode'], 'country': data['seoData']['address']['addressCountry'], 'website': response.request.url, 'opening_hours': str(data['seoData']['openingHours']).replace('[', ).replace(']', ).replace("'", ), 'lat': geodata['store']['latlng']['lat'], 'lon': geodata['store']['latlng']['lng']}
    (yield GeojsonPointItem(**properties))