[Scrapy] Serve getting the selector for mark for dwelling depot

So here's my code:

— coding: utf-8 —

import scrapy
import pandas as pd
from ..items import HomedepotpricespiderItem
from scrapy.http import Demand


class HomedepotspiderSpider(scrapy.Spider):
    title = 'homeDepotSpider'
    allowed_domains = ['homedepot.com']



    start_urls = ['https://www.homedepot.com/pep/304660691']
    def parse(self, response):

    #name dwelling depot operate
        for item in self.parseHomeDepot(response):
            yield item

        movement

    def parseHomeDepot(self, response):

        #salvage high stage item
        items = response.css('#zone-a-product')
        for product in items:
            item = HomedepotpricespiderItem()


    #salvage the worth
            productPrice =response.xpath('normalize-dwelling(//div[@class="price"])').re_first(r'$(.+)')
            productPrice = drift(productPrice) #convert to float
            productPrice = "%.2f" % (productPrice / 100.0) #layout for decimal areas



            item['productPrice'] = productPrice


            yield item

So, my field with with my mark selector:

 productPrice =response.xpath('normalize-dwelling(//div[@class="price"])').re_first(r'$(.+)')

Once I converse my spider I salvage this,

'productPrice': '2167.49',
'productSKU': 'RA30',
'productURL': 'https://www.homedepot.com/pep/304660691'}

The accurate mark of them item is $2099.99 however it definitely looks indulge in I'm grabbing the worth of the first item

Shown here: https://imgur.com/a/58il2k3

Any abet may maybe perhaps be most in fashion!

[Scrapy] Serve getting the selector for mark for dwelling depot