<commit_before>import scrapy
import re
from locations.items import GeojsonPointItem
import json


class LaneBryantSpider(scrapy.Spider):

    name = "lanebryant"
    allowed_domains = ["stores.lanebryant.com"]
    download_delay = 0
    start_urls = (
        'https://stores.lanebryant.com/',
    )

    def parse_stores(self, response):
       data =  response.xpath('normalize-space(//script[@type="application/ld+json"]/text())').extract_first()
       ref = re.findall(r"[^(\/)]+$", response.url)
       if (len(ref) > 0):
            ref = ref[0].split('.')[0]
       try:
         json_data = json.loads(data)
         properties = {
            'addr_full': json_data[0]['address']['streetAddress'] ,
            'phone':json_data[0]['address']['telephone'] ,
            'city': json_data[0]['address']['addressLocality'] ,
            'state': json_data[0]['address']['addressRegion'] ,
            'postcode':json_data[0]['address']['postalCode'] ,
            'ref': ref ,
            'website': response.url,
            'lat': json_data[0]['geo']['latitude'] ,<commit_msg>lane_bryant<commit_after>import scrapy
import re
from locations.items import GeojsonPointItem
import json


class LaneBryantSpider(scrapy.Spider):

    name = "lanebryant"
    allowed_domains = ["stores.lanebryant.com"]
    download_delay = 0.5
    start_urls = (
        'https://stores.lanebryant.com/',
    )

    def parse_stores(self, response):
       data =  response.xpath('normalize-space(//script[@type="application/ld+json"]/text())').extract_first()
       ref = re.findall(r"[^(\/)]+$", response.url)
       if (len(ref) > 0):
            ref = ref[0].split('.')[0]
       try:
         json_data = json.loads(data)
         properties = {
            'addr_full': json_data[0]['address']['streetAddress'] ,
            'phone':json_data[0]['address']['telephone'] ,
            'city': json_data[0]['address']['addressLocality'] ,
            'state': json_data[0]['address']['addressRegion'] ,
            'postcode':json_data[0]['address']['postalCode'] ,
            'ref': ref ,
            'website': response.url,
            'lat': json_data[0]['geo']['latitude'] ,
{'fraction_non_alphanumeric': 0.179097605893186, 'fraction_numerical': 0.009668508287292817, 'mean_word_length': 2.7989510489510487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2247735', 'n_tokens_mistral': 709, 'n_tokens_neox': 690, 'n_words': 102}