I'm trying to scrape store locations into a csv using scrapy. I'm capturing the right data, but the output looks like this (with "name" field as an example)
Code:
import scrapy
from xx.items import xxItem
class QuotesSpider(scrapy.Spider):
name = 'xx_spider'
allowed_domains = ['www.my.xx.com']
start_urls = [
'https://my.xx.com/storefinder/list/a',
]
def parse(self, response):
rows = response.css('div.col-md-4.col-sm-6')
for row in rows:
item = xxItem()
item['name'] = rows.css('h3::text').extract()
item['address'] = rows.css('p::text').extract()
return item