old_contents: # coding: utf-8
  
  from decimal import Decimal
  import scrapy
  from scrapy.contrib.spiders import CrawlSpider, Rule
  from scrapy.contrib.linkextractors import LinkExtractor
  from ..items import ProductItem
  
  
  class EpocaCosmeticosSpider(CrawlSpider):
      name = "epoca_cosmeticos"
      allowed_domains = ["www.epocacosmeticos.com.br"]
      start_urls = ['http://www.epocacosmeticos.com.br/']
  
      rules = (
          Rule(LinkExtractor(allow=(r'/p$',)), callback='parser', follow=True),
      )
  
      def parser(self, response):
          if response.css('body.produto'):
              url = response.url
              name = response.xpath("//div[contains(@class, 'productName')]/text()").extract()[0]
              price = Decimal(response.xpath("//strong[contains(@class, 'skuBestPrice')]/text()").extract()[0].lstrip('R$ ').replace(',', '.'))
  
              item = ProductItem()
              item['url'] = url
              item['name'] = name
              item['price'] = price
  
              yield item
  
new_contents: # coding: utf-8
  
  from decimal import Decimal
  import scrapy
  from scrapy.contrib.spiders import CrawlSpider, Rule
  from scrapy.contrib.linkextractors import LinkExtractor
  from ..items import ProductItem
  
  
  class EpocaCosmeticosSpider(CrawlSpider):
      name = 'epoca_cosmeticos'
      allowed_domains = ['www.epocacosmeticos.com.br']
      start_urls = ['http://www.epocacosmeticos.com.br/']
  
      rules = (
          Rule(LinkExtractor(allow=(r'/p$',)), callback='parser', follow=True),
      )
  
      def parser(self, response):
          if response.css('body.produto'):
              url = response.url
              name = response.xpath("//div[contains(@class, 'productName')]/text()").extract()[0]
              price = Decimal(response.xpath("//strong[contains(@class, 'skuBestPrice')]/text()").extract()[0].lstrip('R$ ').replace(',', '.'))
  
              item = ProductItem()
              item['url'] = url
              item['name'] = name
              item['price'] = price
  
              yield item
  
subject: replace double quotes with single quotes where applicable