# asin 详情 字段 解析

US_ASIN_XPATH = {
    "sp_num": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]//div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options'],
    "stars_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options'],
    "Delivery_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options'],
    "min_match_list": ['//div[contains(@class,"bundlesAsinFaceout")]//div/@data-asin'],
    "bundles_this_asins": ['//div[contains(@id,"bundles-")]/div[contains(@id,"bundles-")]//li//input/@value'],
    "five_data": ["//div[@id='feature-bullets']/ul//li/span/text()",
                  '//div[contains(@id,"feature-bullets")]//ul//li//span/text()','//div[contains(@id,"productFactsDesk")]//ul//li//span/text()'],
    'product_attribute': ["//div[@class='a-section a-spacing-small a-spacing-top-small']//td"],
    'product_attribute_1': ['//div[contains(@class,"product-facts-detail")]/div'],
    'proddetails_list_1': ['//div[contains(@id,"detailBullets")]/ul/li/span/span'],
    'proddetails_list': ["//div[@id='prodDetails']//th","//div[@id='audibleProductDetails']//th"],
    'review_ai_list': ['//div[contains(@id,"product-insights")]//div[@id="product-summary"]//span/text()',
                       '//div[contains(@data-csa-c-item-id,"product-insights")]//div[@data-testid="overall-summary"]//span/text()'],
    'review_button_list': ['//div[contains(@id,"product-insights")]//button/span','//div[contains(@id,"product-insights")]//a[contains(@id,"aspect-button")]','//span[@data-testid="aspect-label"]'],
    "category_href": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//@href"],
    "category_data": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//text()"],
    "title": ['//*[@id="productTitle"]/text()', '//h1[@class="a-size-large"]/text()',
              '//h1[@class="a-size-large a-spacing-micro"]/text()', '//h1[@class="gc-detail-page-title"]//text()',
              '//h1[@id="mas-atf-product-title"]/span/span/text()', '//h1[@class="a2s-title-content"]/text()',
              '//span[@id="collection-title"]/text()', '//title[0]/text()', '//title[@dir="ltr"]/text()',
              '//h1/span/text()',
              '//h1/span[@id="gc-asin-title"]/text()'],
    "image": ["//div[@id='imgTagWrapperId']/img/@src", '//div[@id="img-canvas"]/img/@src',
              '//div[@id="imgTagWrapperId"]/img/@src', '//div[@id="img-canvas"]/img/@src',
              '//div[@class="image-wrapper"]/img/@src', '//div[@id="mainImageContainer"]/img/@src',
              '//img[@id="js-masrw-main-image"]/@src', '//div[@id="a2s-dp-main-content"]//img/@src',
              '//div[@id="ppd-left"]//img/@src',
              '//div[@id="ebooks-img-canvas"]//img[@class="a-dynamic-image frontImage"]/@src',
              '//div[@id="ppd-left"]//img/@src', '//div[@class="a-column a-span12 a-text-center"]/img/@src',
              '//img[0]/@src', '//img[@id="seriesImageBlock"]/@src', '//img[@class="main-image"]/@src',
              '//img[@class="mainImage"]/@src', '//img[@id="gc-standard-design-image"]/@src',
              '//div[@class="a-image-container a-dynamic-image-container greyBackground"]/img/@src'],
    "imageThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'thumbTypeimage')]//img/@src"],
    "videoThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'-video')]//img/@src"],
    "aplus_img": ['//div[@id="aplus"]//@src'],
    "products_list": ['//div[@data-feature-name="productDescription"]//p//text()',
                      "//h2[contains(text(),'Product Description')]/following-sibling::div//p/text()"],
    "rating": ['//*[@id="acrPopover"]/@title',
               '//div[@class="a-row"]//span[@class="a-size-medium a-color-base"]/text()'],
    "brand": ["//a[@id='bylineInfo']/text()"],
    "brand2": ['//span[contains(text(),"Brand")]/parent::td/following-sibling::td/span/text()',
               "//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "ac_name": ["//span[@class='ac-keyword-link']/a/text()", "//span[@class='ac-for-text']/span/text()"],
    "reviews": ['//*[@id="acrCustomerReviewText"]/text()', '//div[@class="a2s-pdd-reviews"]//a/span/text()'],
    "star5": [
        "//a[@class='a-link-normal 5star']/@title|//a[contains(@href,'ref=acr_dp_hist_5')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star4": [
        "//a[@class='a-link-normal 4star']/@title|//a[contains(@href,'ref=acr_dp_hist_4')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star3": [
        "//a[@class='a-link-normal 3star']/@title|//a[contains(@href,'ref=acr_dp_hist_3')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star2": [
        "//a[@class='a-link-normal 2star']/@title|//a[contains(@href,'ref=acr_dp_hist_2')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star1": [
        "//a[@class='a-link-normal 1star']/@title|//a[contains(@href,'ref=acr_dp_hist_1')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "material": ["//span[text()='Material']/ancestor-or-self::td/following-sibling::td/span/text()"],
    "package_quantity": ["//label[contains(text(),'Package Quantity:')]/following-sibling::span/text()"],
    "pattern_name": ["//span[contains(text(),'Pattern Name:')]/following-sibling::span/text()"],
    "price": ["//span[@class='a-size-medium a-color-price priceBlockSalePriceString']/text()",
              "//span[@class='a-size-base a-color-price a-color-price']/text()",
              '//span[@id="priceblock_ourprice"]/text()', '//span[@id="priceblock_ourprice"]/span/text()',
              '//span[@id="priceLarge"]/text()', '//span[@id="priceblock_saleprice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              "//span[@id='price']/text()",
              "//div[@id='gc-amount-mini-picker-wrapper']//span[@class='a-list-item']//text()",
              "//span[@class='a-price a-text-price header-price a-size-base a-text-normal']//text()",
              "//span[@class='audible_mm_price']/span/text()",
              "//span[@class='a-size-medium a-color-price header-price']/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'$')]/text()",
              "//div[@id='centerCol']//span[@class='a-color-price a-text-bold']/text()",
              "//div[@id='centerCol']//div[@id='buyNew_noncbb']/span/text()",
              "//div[@id='centerCol']//span[contains(text(),'$')]/text()",
              "//div[@id='centerCol']//span[@data-a-color='price']/span/text()"],
    "coupon": ["//span[contains(text(),'Voucher')]/text()//label/text()", "//span[contains(text(),'Voucher')]/text()",
               "//span[contains(text(),'voucher')]/parent::div/span/text()",
               "//span[contains(text(),'coupon')]/parent::div/span/text()",
               "//span[contains(text(),'Coupon')]/parent::div/span/text()"],
    "Join_Prime": ['//span[contains(text(),"Join Prime")]/following-sibling::span/text()'],
    "Deal_Price": ['//td[contains(text(),"Deal Price:")]|//td[contains(text(),"With Deal:")]'],
    "Top_Deal": ['//td[contains(text(),"Top Deal:")]'],
    "Extra_Savings": ['//span[contains(text(),"Extra Savings")]'],
    "delight_pricing": ["//div[@class='delight-pricing-container']//span//text()"],
    "price_30": ['//td//span[@data-a-color="price"]//text()'],
    "You_Save": ['//tr//td[contains(text(),"You Save")]'],
    "You_Save_price_list": ['//tr//td[contains(text(),"You Save")]/parent::tr/td/span/text()'],
    "best_sellers_herf": ['//span[contains(text(),"Best Sellers Rank")]/parent::span//a/@href',
                          '//th[contains(text(),"Best Sellers Rank")]/following-sibling::td//a/@href'],
    "Best_rank": ['//th[contains(text(),"Best Sellers Rank")]/following-sibling::td//text()'],
    "Best_rank2": ['//span[contains(text(),"Best Sellers Rank")]/parent::span//text()'],
    "Weight": ['//th[contains(text(),"Item Weight")]/following-sibling::td[1]/text()',
               '//th[contains(text(),"Package Weight")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Item Weight")]/following-sibling::span[1]/text()',
               '//span[contains(text(),"Package Weight")]/following-sibling::span[1]/text()',
               '//span[contains(text(),"Dimensions")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Item Weight")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Item Weight")]/following-sibling::span[1]/text()'
               ],
    "Package": ['//th[contains(text(),"Package Dimensions")]/following-sibling::td[1]/text()',
                '//th[contains(text(),"Dimensions")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Package Dimensions")]/following-sibling::span[1]/text()',
                '//span[contains(text(),"Dimensions")]/following-sibling::span[1]/text()',
                '//th[contains(text(),"Product Dimensions")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Product Dimensions")]/following-sibling::span[1]/text()'
                ],
    "Date_time": ['//th[contains(text(),"Date First Available")]/following-sibling::td[1]/text()',
                  '//span[contains(text(),"Date First Available")]/following-sibling::span[1]/text()',
                  '//th[contains(text()," Release date ")]/following-sibling::td[1]/text()',
                  '//span[contains(text(),"Release date")]/following-sibling::span[1]/text()',
                  '//span[contains(text(),"Publication date")]/following-sibling::span[1]/text()'],
    'Date_time2': ['//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],
    'Date_time3': ['//td[@class="a-size-base prodDetAttrValue"]//text()', '//tr[@id="detailsReleaseDate"]//text()'],
    "QA_num": ["//a[@id='askATFLink']/span/text()"],
    "buy_asin": ['//div[contains(@class,"a-section thumbnail")]//a/@href',
                 '//div[contains(@class, "cardRoot bucket")]//a/@href'],
    "invnetroySelect": ['//select[@id="quantity"]//option/text()', '//div[@id="availability"]/span/text()'],
    "invnetroySelect2": ['//span[@id="submit.add-to-cart-announce"]/text()',
                         '//span[@id="submit.add-to-cart-ubb-announce"]/text()',
                         '//div[contains(@id,"availability")]/span/text()','//span[contains(@id,"buybox-see-all-buying")]/span/a/text()'],
    "td_0_text": ['//span[@id="tabular-buybox-truncate-1"]/span/span//text()',
                  '//div[@class="tabular-buybox-text"]/div[@class="tabular-buybox-text a-spacing-none"]/span/text()',
                  '//div[@class="offer-display-feature-text a-spacing-none"]/span/text()',
                  '//a[contains(text(),"Fulfilled by")]/text()',
                  '//span[contains(text(),"Shipper / Seller")]/..//following-sibling::div/text()',
                  '//span[contains(text(),"Ships from and sold by")]/../a/span/text()',
                  '//div[contains(@id,"FromSoldBy_")]//tr[1]//td/span[contains(@class,"-base")]/text()',
                  '//span[contains(text(),"Ships from")]/parent::div/parent::div/following-sibling::div//span[@class="a-size-small offer-display-feature-text-message"]/text()',
                  '//span[contains(text(),"Ships from")]/parent::div/parent::div/following-sibling::div//span[contains(text()," Sold by: ")]/following-sibling::span/text()',
                  '//div[contains(@data-csa-c-slot-id,"odf-feature-label-desktop-merchant-info")]//span[contains(text()," / ")]/parent::div/parent::div/following-sibling::div//span[contains(@class,"offer-display-feature-text-message")]/text()'
                  ],
    "td_1_text": ['//div[@tabular-attribute-name="Sold by"]//a/text()', '//div[contains(text(),"Sold by")]//a/text()',
                  '//div[@tabular-attribute-name="Sold by"]//span[@class="a-size-small"]/text()',
                  '//div[@tabular-attribute-name="Sold by"]//span[@class="a-size-small tabular-buybox-text-message"]/text()',
                  "//div[contains(@offer-display-feature-name,'desktop-merchant')]/div/span[contains(@class,'a-size-small offer-display-feature')]/text()",
                  '//span[contains(text(),"Ships from and sold by")]/../a/span/text()',
                  '//div[contains(@id,"FromSoldBy_")]//tr[2]//td/span[contains(@class,"-base")]/text()',
                  '//div[@class="a-section a-spacing-none"]/span[contains(text(),"Ships from and sold by")]/text()',
                  '//a[contains(@id,"sellerProfile")]/text()',
                  '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/text()',
                 '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//span/text()',
                  '//span[contains(text(),"Sold by")]/parent::div/parent::div/following-sibling::div//a/text()',
                  '//span[contains(text(),"Sold by")]/parent::div/parent::div/following-sibling::div//a[@id="sellerProfileTriggerId"]/text()'
                  ],
    "by_text": ['//div[@id="merchant-info"]//span/text()'],
    "buyBox": ['//div[@tabular-attribute-name="Sold by"]//a/text()', '//div[contains(text(),"Sold by")]//a/text()'],
    "buyBox1": ['//div[@tabular-attribute-name="Sold by"]//span/text()',
                '//span[contains(text(),"Ships from and sold by")]/../a//text()',
                '//div[contains(text(),"Sold by")]//span/text()',
                '//div[@class="a-section a-spacing-none"]//span[contains(text(),"Ships from and sold by")]/text()',
                '//a[contains(@id,"sellerProfile")]/text()'],
    "buyBox_url": ['//div[@tabular-attribute-name="Sold by"]//a/@href', '//div[contains(text(),"Sold by")]//a/@href',
                   '//span[contains(text(),"Ships from and sold by")]/../a/@href',
                   '//a[contains(@id,"sellerProfile")]/@href'],
    'merchantID': ["//input[@id='merchantID']/@value"],
    'box_follow_list': ['//span[@data-action="show-all-offers-display"]//text()'],
    'buy_sales_list': ['//div[@id="centerCol"]//span[contains(text(),"past ")]/text()'],
    'buy_sales_num_list': ['//div[@id="centerCol"]//span[contains(text(),"bought")]/preceding-sibling::span/text()',
                           '//div[@id="centerCol"]//span[contains(text(),"past")]/preceding-sibling::span/text()'],
    'pba_lob_asin_list': ["//div[contains(@id,'lob-carousel')]//a/@href"],
    'compare_similar_asin_list': ['//div[contains(@id,"imageContainer-")]/@id'],
    'customer_reviews_list': [
        "//div[@data-csa-c-content-id='customerReviewsAttribute']//div[@class='a-row a-spacing-none']//span/text()"],
    'fbm_delivery_price':['//span[@data-csa-c-content-id="DEXUnifiedCXPDM"]/@data-csa-c-delivery-price'],
    'search_category' :["//select[@id='searchDropdownBox']/option[@current='parent']/text()"]
}

DE_ASIN_XPATH = {
    "sp_num": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]//div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options'],
    "stars_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options'],
    "Delivery_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options'],
    "min_match_list": ['//div[contains(@class,"bundlesAsinFaceout")]//div/@data-asin'],
"bundles_this_asins": ['//div[contains(@id,"bundles-")]/div[contains(@id,"bundles-")]//li//input/@value'],
    "five_data": ["//div[@id='feature-bullets']/ul//li/span/text()",
                  '//div[contains(@id,"feature-bullets")]//ul//li//span/text()','//div[contains(@id,"productFactsDesk")]//ul//li//span/text()'],
    'product_attribute': ["//div[@class='a-section a-spacing-small a-spacing-top-small']//td"],
    'product_attribute_1': ['//div[contains(@class,"product-facts-detail")]/div'],
    'proddetails_list_1': ['//div[contains(@id,"detailBullets")]/ul/li/span/span'],
    'proddetails_list': ["//div[@id='prodDetails']//th","//div[@id='audibleProductDetails']//th"],
    'review_ai_list': ['//div[contains(@id,"product-insights")]//div[@id="product-summary"]//span/text()',
                       '//div[contains(@data-csa-c-item-id,"product-insights")]//div[@data-testid="overall-summary"]//span/text()'],
    'review_button_list': ['//div[contains(@id,"product-insights")]//button','//div[contains(@id,"product-insights")]//a[contains(@id,"aspect-button")]','//span[@data-testid="aspect-label"]'],
    "category_href": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//@href"],
    "category_data": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//text()"],
    "title": ['//*[@id="productTitle"]/text()', '//h1[@class="a-size-large"]/text()',
              '//h1[@class="a-size-large a-spacing-micro"]/text()', '//h1[@class="gc-detail-page-title"]//text()',
              '//h1[@id="mas-atf-product-title"]/span/span/text()', '//h1[@class="a2s-title-content"]/text()',
              '//span[@id="collection-title"]/text()', '//title[0]/text()', '//title[@dir="ltr"]/text()',
              '//h1/span/text()',
              '//h1/span[@id="gc-asin-title"]/text()'],
    "image": ["//div[@id='imgTagWrapperId']/img/@src", '//div[@id="img-canvas"]/img/@src',
              '//div[@id="imgTagWrapperId"]/img/@src', '//div[@id="img-canvas"]/img/@src',
              '//div[@class="image-wrapper"]/img/@src', '//div[@id="mainImageContainer"]/img/@src',
              '//img[@id="js-masrw-main-image"]/@src', '//div[@id="a2s-dp-main-content"]//img/@src',
              '//div[@id="ppd-left"]//img/@src',
              '//div[@id="ebooks-img-canvas"]//img[@class="a-dynamic-image frontImage"]/@src',
              '//div[@id="ppd-left"]//img/@src', '//div[@class="a-column a-span12 a-text-center"]/img/@src',
              '//img[0]/@src', '//img[@id="seriesImageBlock"]/@src', '//img[@class="main-image"]/@src',
              '//img[@class="mainImage"]/@src', '//img[@id="gc-standard-design-image"]/@src',
              '//div[@class="a-image-container a-dynamic-image-container greyBackground"]/img/@src'],
    "imageThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'thumbTypeimage')]//img/@src"],
    "videoThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'-video')]//img/@src"],
    "aplus_img": ['//div[@id="aplus"]//@src'],
    "products_list": ['//div[@data-feature-name="productDescription"]//p//text()',
                      "//h2[contains(text(),'Produktinformation')]/following-sibling::div//p/text()"],
    "rating": ['//*[@id="acrPopover"]/@title',
               '//div[@class="a-row"]//span[@class="a-size-medium a-color-base"]/text()'],
    "brand": ["//a[@id='bylineInfo']/text()",
              '//span[contains(text(),"Marke")]/parent::td/following-sibling::td/span/text()',
              "//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "brand2": ["//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "ac_name": ["//span[@class='ac-keyword-link']/a/text()", "//span[@class='ac-for-text']/span/text()"],
    "reviews": ['//*[@id="acrCustomerReviewText"]/text()', '//div[@class="a2s-pdd-reviews"]//a/span/text()'],
    "star5": ["//a[@class='a-link-normal 5star']/@title|//a[contains(@href,'ref=acr_dp_hist_5')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()","//a[contains(@href,'five_star')]/@aria-label",
              "//a[contains(@href,'ref=acr_dp_hist_5')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star4": ["//a[@class='a-link-normal 4star']/@title|//a[contains(@href,'ref=acr_dp_hist_4')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()","//a[contains(@href,'four_star')]/@aria-label",
              "//a[contains(@href,'ref=acr_dp_hist_4')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star3": ["//a[@class='a-link-normal 3star']/@title|//a[contains(@href,'ref=acr_dp_hist_3')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()","//a[contains(@href,'three_star')]/@aria-label",
              "//a[contains(@href,'ref=acr_dp_hist_3')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star2": ["//a[@class='a-link-normal 2star']/@title|//a[contains(@href,'ref=acr_dp_hist_2')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()","//a[contains(@href,'two_star')]/@aria-label",
              "//a[contains(@href,'ref=acr_dp_hist_2')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star1": ["//a[@class='a-link-normal 1star']/@title|//a[contains(@href,'ref=acr_dp_hist_1')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()","//a[contains(@href,'one_star')]/@aria-label",
              "//a[contains(@href,'ref=acr_dp_hist_1')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "material": ["//span[text()='Material']/ancestor-or-self::td/following-sibling::td/span/text()"],
    "package_quantity": ["//label[contains(text(),'Package Quantity:')]/following-sibling::span/text()"],
    "pattern_name": ["//span[contains(text(),'Pattern Name:')]/following-sibling::span/text()"],
    "price": ["//span[@class='a-size-medium a-color-price priceBlockSalePriceString']/text()",
              "//span[@class='a-size-base a-color-price a-color-price']/text()",
              '//span[@id="priceblock_ourprice"]/text()', '//span[@id="priceblock_ourprice"]/span/text()',
              '//span[@id="priceLarge"]/text()', '//span[@id="priceblock_saleprice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              "//span[@id='price']/text()",
              "//div[@id='gc-amount-mini-picker-wrapper']//span[@class='a-list-item']//text()",
              "//span[@class='a-price a-text-price header-price a-size-base a-text-normal']//text()",
              "//span[@class='audible_mm_price']/span/text()",
              "//span[@class='a-size-medium a-color-price header-price']/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'£')]/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'€')]/text()",
              "//div[@id='centerCol']//span[@class='a-color-price a-text-bold']/text()",
              "//div[@id='centerCol']//div[@id='buyNew_noncbb']/span/text()",
              "//div[@id='centerCol']//span[contains(@class,'a-price ')]/span/text()",
              "//div[@id='centerCol']//span[@data-a-color='price']/span/text()"],
    "coupon": ["//label[contains(text(),'Rabattgutschein')]/text()", "//span[contains(text(),'Coupon')]/text()",
               "//span[contains(text(),'coupon')]/parent::div/span/text()","//label[contains(@id,'couponText')]/text()"
               "//span[contains(text(),'Sparen Sie')]/text()"],

    "Sparen_Sie": ["//div[@data-csa-c-slot-id='promo-cxcw-1-1']/label[contains(text(),'Sparen Sie')]/text()",
                   "//div[@data-csa-c-slot-id='promo-cxcw-0-0']/label[contains(text(),'Sparen Sie')]/text()"],

    "Aktuelle_Angebote": ["//span[contains(text(),'Aktuelle Angebote')]/ancestor::span/following-sibling::span//text()",
                          "//div[@class='a-section a-spacing-none']/span/text()"],

    "Angebotspreis": ["//td[contains(text(),'Angebotspreis:')]"],
    "Top_Angebot": ["//td[contains(text(),'Top Angebot:')]"],

    "delight_pricing_list": ["//div[@class='delight-pricing-container']//span//text()"],

    "price_30": ['//td//span[@data-a-color="price"]//text()'],
    "You_Save": ['//tr//td[contains(text(),"Sie sparen")]'],
    "You_Save_price_list": ['//tr//td[contains(text(),"Sie sparen")]/parent::tr/td/span/text()'],

    "best_sellers_herf": ['//span[contains(text(),"Amazon Bestseller-Rang")]/parent::span//a/@href',
                          '//th[contains(text(),"Amazon Bestseller-Rang")]/following-sibling::td//a/@href'],

    "best_sellers_text": ['//span[contains(text(),"Amazon Bestseller-Rang")]/parent::span//a/text()',
                          '//th[contains(text(),"Amazon Bestseller-Rang")]/following-sibling::td//a/text()'],

    "Best_rank": ['//th[contains(text(),"Amazon Bestseller-Rang")]/following-sibling::td//text()',
                  '//span[contains(text(),"Amazon Bestseller-Rang")]/parent::span//text()'],
    "Best_rank2": ['//th[contains(text(),"Amazon Bestseller")]/following-sibling::td//text()',
                   '//span[contains(text(),"Amazon Bestseller")]/parent::span//text()'],

    "Weight": ['//th[contains(text(),"Produktabmessungen")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Produktabmessungen")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Verpackungsabmessungen")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Verpackungsabmessungen")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Artikelgewicht")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Artikelgewicht")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Gewicht des Pakets")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Gewicht des Pakets")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Produktgewicht")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Produktgewicht")]/following-sibling::span[1]/text()',
               '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],

    "Package": ['//th[contains(text(),"Produktabmessungen")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Produktabmessungen")]/following-sibling::span[1]/text()',
                '//th[contains(text(),"Verpackungsabmessungen")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Verpackungsabmessungen")]/following-sibling::span[1]/text()',
                '//th[contains(text(),"Paket-Abmessungen")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Paket-Abmessungen")]/following-sibling::span[1]/text()',
                '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],

    "Date_time": ['//th[contains(text(),"Date First Available")]/following-sibling::td[1]/text()',
                  '//th[contains(text(),"Im Angebot von Amazon.de seit")]/following-sibling::td[1]/text()',
                  '//span[contains(text(),"Im Angebot von Amazon.de seit")]/following-sibling::span[1]/text()',
                  '//span[contains(text(),"Date First Available")]/following-sibling::span[1]/text()'
                  ],

    'Date_time2': ['//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()',
                   '//div[@class="a-section a-spacing-small"]//span/text()'],
    'Date_time3': ['//td[@class="a-size-base prodDetAttrValue"]//text()'],

    "QA_num": ["//a[@id='askATFLink']/span/text()"],
    "buy_asin": ['//div[contains(@class,"a-section thumbnail")]//a/@href',
                 '//div[contains(@class, "cardRoot bucket")]//a/@href'],

    "invnetroySelect": ['//select[@id="quantity"]//option/text()',
                        '//div[@id="availability"]/span/text()'],
    'invnetroySelect2': ['//span[@id="submit.add-to-cart-announce"]/text()',
                         '//span[@id="submit.add-to-cart-ubb-announce"]/text()',
                         '//div[contains(@id,"availability")]/span/text()','//span[contains(@id,"buybox-see-all-buying")]/span/a/text()'],

    "td_0_text": ['//span[@id="tabular-buybox-truncate-1"]/span/span//text()',
                  '//div[@class="tabular-buybox-text"]/div[@class="tabular-buybox-text a-spacing-none"]/span/text()',
                  '//div[@class="offer-display-feature-text a-spacing-none"]/span/text()',
                  '//div[contains(@class,"offer-display-feature-text")]/span/text()',
                  '//div[contains(@data-csa-c-slot-id,"odf-feature-label-desktop-merchant-info")]//span[contains(text()," / ")]/parent::div/parent::div/following-sibling::div//span[contains(@class,"offer-display-feature-text-message")]/text()'
                  ],
    "td_1_text": ["//div[@id='merchant-info']//a[2]/span/text()", '//div[@tabular-attribute-name="Sold by"]//a/text()',
                  '//div[contains(text(),"Verkäufer")]//a/text()',
                  '//div[@tabular-attribute-name="Verkäufer"]//span[@class="a-size-small"]/text()',
                  '//div[@tabular-attribute-name="Verkäufer"]//span[@class="a-size-small tabular-buybox-text-message"]/text()',
                  '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/text()',
                  '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//span/text()',
                  '//a[contains(@id,"sellerProfile")]/text()'],
    "by_text": ["//div[@id='freshShipsFromSoldBy_feature_div']//span/text()"],
    "buyBox": ['//div[@tabular-attribute-name="Sold by"]//a/text()', '//div[contains(text(),"Sold by")]//a/text()',
               '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/text()',
               '//a[contains(@id,"sellerProfile")]/text()'],
    "buyBox1": ['//div[@tabular-attribute-name="Sold by"]//span/text()',
                '//div[contains(text(),"Sold by")]//span/text()'],
    "buyBox_url": ['//div[@tabular-attribute-name="Sold by"]//a/@href', '//div[contains(text(),"Sold by")]//a/@href',
                   '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/@href',
                   '//a[contains(@id,"sellerProfile")]/@href'],
    'merchantID': ["//input[@id='merchantID']/@value"],
    'box_follow_list': ['//span[@data-action="show-all-offers-display"]//text()'],
    'buy_sales_list': ['//div[@id="centerCol"]//span[contains(text()," letzten ")]/text()'],
    'buy_sales_num_list': [
        '//div[@id="centerCol"]//span[contains(text(),"letzten")]/preceding-sibling::span/text()'],

    'pba_lob_asin_list': ["//div[@id='pba-lob-carousel-row']//a/@href"],
    'compare_similar_asin_list': ['//div[contains(@id,"imageContainer-")]/@id'],
    'customer_reviews_list': [
        "//div[@data-csa-c-content-id='customerReviewsAttribute']//div[@class='a-row a-spacing-none']//span/text()"],
    'fbm_delivery_price': ['//span[@data-csa-c-content-id="DEXUnifiedCXPDM"]/@data-csa-c-delivery-price'],
    'search_category': ["//select[@id='searchDropdownBox']/option[@current='parent']/text()"]
}

UK_ASIN_XPATH = {
    "sp_num": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]//div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options'],
    "stars_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options'],
    "Delivery_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options'],
    "min_match_list": ['//div[contains(@class,"bundlesAsinFaceout")]//div/@data-asin'],
"bundles_this_asins": ['//div[contains(@id,"bundles-")]/div[contains(@id,"bundles-")]//li//input/@value'],
    "five_data": ["//div[@id='feature-bullets']/ul//li/span/text()",
                  '//div[contains(@id,"feature-bullets")]//ul//li//span/text()','//div[contains(@id,"productFactsDesk")]//ul//li//span/text()'],
    'product_attribute': ["//div[@class='a-section a-spacing-small a-spacing-top-small']//td"],
    'product_attribute_1': ['//div[contains(@class,"product-facts-detail")]/div'],
    'proddetails_list_1': ['//div[contains(@id,"detailBullets")]/ul/li/span/span'],
    'proddetails_list': ["//div[@id='prodDetails']//th","//div[@id='audibleProductDetails']//th"],
    'review_ai_list': ['//div[contains(@id,"product-insights")]//div[@id="product-summary"]//span/text()',
                       '//div[contains(@data-csa-c-item-id,"product-insights")]//div[@data-testid="overall-summary"]//span/text()'],
    'review_button_list': ['//div[contains(@id,"product-insights")]//button','//div[contains(@id,"product-insights")]//a[contains(@id,"aspect-button")]','//span[@data-testid="aspect-label"]'],
    "category_href": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//@href"],
    "category_data": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//text()"],
    "title": ['//*[@id="productTitle"]/text()', '//h1[@class="a-size-large"]/text()',
              '//h1[@class="a-size-large a-spacing-micro"]/text()', '//h1[@class="gc-detail-page-title"]//text()',
              '//h1[@id="mas-atf-product-title"]/span/span/text()', '//h1[@class="a2s-title-content"]/text()',
              '//span[@id="collection-title"]/text()', '//title[0]/text()', '//title[@dir="ltr"]/text()',
              '//h1/span/text()',
              '//h1/span[@id="gc-asin-title"]/text()'],
    "image": ["//div[@id='imgTagWrapperId']/img/@src", '//div[@id="img-canvas"]/img/@src',
              '//div[@id="imgTagWrapperId"]/img/@src', '//div[@id="img-canvas"]/img/@src',
              '//div[@class="image-wrapper"]/img/@src', '//div[@id="mainImageContainer"]/img/@src',
              '//img[@id="js-masrw-main-image"]/@src', '//div[@id="a2s-dp-main-content"]//img/@src',
              '//div[@id="ppd-left"]//img/@src',
              '//div[@id="ebooks-img-canvas"]//img[@class="a-dynamic-image frontImage"]/@src',
              '//div[@id="ppd-left"]//img/@src', '//div[@class="a-column a-span12 a-text-center"]/img/@src',
              '//img[0]/@src', '//img[@id="seriesImageBlock"]/@src', '//img[@class="main-image"]/@src',
              '//img[@class="mainImage"]/@src', '//img[@id="gc-standard-design-image"]/@src',
              '//div[@class="a-image-container a-dynamic-image-container greyBackground"]/img/@src'],
    "imageThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'thumbTypeimage')]//img/@src"],
    "videoThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'-video')]//img/@src"],
    "aplus_img": ['//div[@id="aplus"]//@src'],
    "products_list": ['//div[@data-feature-name="productDescription"]//p//text()',
                      "//h2[contains(text(),'Product Description')]/following-sibling::div//p/text()"],
    "rating": ['//*[@id="acrPopover"]/@title',
               '//div[@class="a-row"]//span[@class="a-size-medium a-color-base"]/text()'],
    "brand": ["//a[@id='bylineInfo']/text()"],
    "brand2": ['//span[contains(text(),"Brand")]/parent::td/following-sibling::td/span/text()',
               "//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "ac_name": ["//span[@class='ac-keyword-link']/a/text()", "//span[@class='ac-for-text']/span/text()"],
    "reviews": ['//*[@id="acrCustomerReviewText"]/text()', '//div[@class="a2s-pdd-reviews"]//a/span/text()'],
     "star5": ["//a[@class='a-link-normal 5star']/@title|//a[contains(@href,'ref=acr_dp_hist_5')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star4": ["//a[@class='a-link-normal 4star']/@title|//a[contains(@href,'ref=acr_dp_hist_4')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star3": ["//a[@class='a-link-normal 3star']/@title|//a[contains(@href,'ref=acr_dp_hist_3')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star2": ["//a[@class='a-link-normal 2star']/@title|//a[contains(@href,'ref=acr_dp_hist_2')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star1": ["//a[@class='a-link-normal 1star']/@title|//a[contains(@href,'ref=acr_dp_hist_1')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "material": ["//span[text()='Material']/ancestor-or-self::td/following-sibling::td/span/text()"],
    "package_quantity": ["//label[contains(text(),'Package Quantity:')]/following-sibling::span/text()"],
    "pattern_name": ["//span[contains(text(),'Pattern Name:')]/following-sibling::span/text()"],
    "price": ["//span[@class='a-size-medium a-color-price priceBlockSalePriceString']/text()",
              "//span[@class='a-size-base a-color-price a-color-price']/text()",
              '//span[@id="priceblock_ourprice"]/text()', '//span[@id="priceblock_ourprice"]/span/text()',
              '//span[@id="priceLarge"]/text()', '//span[@id="priceblock_saleprice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              "//span[@id='price']/text()",
              "//div[@id='gc-amount-mini-picker-wrapper']//span[@class='a-list-item']//text()",
              "//span[@class='a-price a-text-price header-price a-size-base a-text-normal']//text()",
              "//span[@class='audible_mm_price']/span/text()",
              "//span[@class='a-size-medium a-color-price header-price']/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'£')]/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'€')]/text()",
              "//div[@id='centerCol']//span[@class='a-color-price a-text-bold']/text()",
              "//div[@id='centerCol']//div[@id='buyNew_noncbb']/span/text()",
              "//div[@id='centerCol']//span[contains(text(),'$')]/text()",
              "//div[@id='centerCol']//span[@data-a-color='price']/span/text()"],
    "Promotion_Message": ["//div[@id='applicable_promotion_list_sec']//span/text()",
                          "//span[contains(text(),'Promotion Message')]/parent::span/parent::span/following-sibling::span//text()",
                          "//span[@id='dealBadgeSupportingText' and @class='a-size-small dealBadgeTextColor a-text-bold']/span/text()"],

    "Join_Prime": ['//span[contains(text(),"Join Prime")]/following-sibling::span/text()'],
    "Buy_Deal": ['//div[@data-csa-c-slot-id="promo-cxcw-1-1"]/label/text()',
                 '//div[@data-csa-c-slot-id="promo-cxcw-1-0"]/label/text()',
                 '//div[@data-csa-c-slot-id="promo-cxcw-0-0"]/label/text()',
                 '//a[contains(text(),"Amazon Prime")]/parent::span/text()'],

    "Top_Deal": ['//td[contains(text(),"Top Deal:")]'],
    "Deal_Price": ['//td[contains(text(),"Deal Price:")]'],
    'delight_pricing': ["//div[@class='delight-pricing-container']//span//text()"],
    'price_30': ['//td//span[@data-a-color="price"]//text()'],
    "You_Save": ['//tr//td[contains(text(),"You Save")]'],
    "You_Save_price_list": ['//tr//td[contains(text(),"You Save")]/parent::tr/td/span/text()'],

    "best_sellers_herf": ['//span[contains(text(),"Best Sellers Rank")]/parent::span//a/@href',
                          '//th[contains(text(),"Best Sellers Rank")]/following-sibling::td//a/@href'],
    "Best_rank": ['//th[contains(text(),"Best Sellers Rank")]/following-sibling::td//text()'],
    "Best_rank2": ['//span[contains(text(),"Best Sellers Rank")]/parent::span//text()'],
    "Weight": ['//span[contains(text(),"Product Dimensions")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Product Dimensions")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Package Dimensions")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Package Dimensions")]/following-sibling::td[1]/text()',
               '//th[contains(text(),"Package Weight")]/following-sibling::td[1]/text()',
               '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()',
               '//th[contains(text(),"Item Weight")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Item Weight")]/following-sibling::span[1]/text()'
               ],
    "Package": ['//th[contains(text(),"Package Dimensions")]/following-sibling::td[1]/text()',
                '//th[contains(text(),"Dimensions")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Package Dimensions")]/following-sibling::span[1]/text()',
                '//span[contains(text(),"Dimensions")]/following-sibling::span[1]/text()',
                '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],
    "Date_time": ['//span[contains(text(),"Date First Available")]/following-sibling::span[1]/text()',
                  '//span[contains(text(),"Release date")]/following-sibling::span[1]/text()',
                  '//th[contains(text(),"Date First Available")]/following-sibling::td[1]/text()',
                  '//span[contains(text(),"Date First Available")]/following-sibling::span[1]/text()',
                  '//th[contains(text()," Release date ")]/following-sibling::td[1]/text()'],
    'Date_time2': ['//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],
    'Date_time3': ['//td[@class="a-size-base prodDetAttrValue"]//text()', '//tr[@id="detailsReleaseDate"]//text()'],
    "QA_num": ["//a[@id='askATFLink']/span/text()"],
    "buy_asin": ['//div[contains(@class,"a-section thumbnail")]//a/@href',
                 '//div[contains(@class, "cardRoot bucket")]//a/@href'],
    "invnetroySelect": ['//select[@id="quantity"]//option/text()', '//div[@id="availability"]/span/text()'],
    "invnetroySelect2": ['//span[@id="submit.add-to-cart-announce"]/text()',
                         '//span[@id="submit.add-to-cart-ubb-announce"]/text()',
                         '//div[contains(@id,"availability")]/span/text()','//span[contains(@id,"buybox-see-all-buying")]/span/a/text()'],
    "td_0_text": ['//span[@id="tabular-buybox-truncate-1"]/span/span//text()',
                  '//div[@class="tabular-buybox-text"]/div[@class="tabular-buybox-text a-spacing-none"]/span/text()',
                  '//div[@class="offer-display-feature-text a-spacing-none"]/span/text()',
                  '//a[contains(text(),"Fulfilled by")]/text()',
                  '//span[contains(text(),"Ships from and sold by")]/../a/span/text()',
                  '//div[contains(@id,"FromSoldBy_")]//tr[1]//td/span[contains(@class,"-base")]/text()',
                  '//div[@data-csa-c-slot-id="odf-feature-text-desktop-fulfiller-info"]//span/text()',
                  '//span[contains(text(),"Dispatches from")]/parent::div/parent::div/following-sibling::div//span[@class="a-size-small offer-display-feature-text-message"]/text()',
                  '//span[contains(text(),"Dispatches from")]/parent::div/parent::div/following-sibling::div//span[contains(text()," Sold by: ")]/following-sibling::span/text()',
                  '//div[contains(@data-csa-c-slot-id,"odf-feature-label-desktop-merchant-info")]//span[contains(text()," / ")]/parent::div/parent::div/following-sibling::div//span[contains(@class,"offer-display-feature-text-message")]/text()'
                  ],
    "td_1_text": ['//div[@tabular-attribute-name="Sold by"]//a/text()', '//div[contains(text(),"Sold by")]//a/text()',
                  '//div[@tabular-attribute-name="Sold by"]//span[@class="a-size-small"]/text()',
                  '//div[@tabular-attribute-name="Sold by"]//span[@class="a-size-small tabular-buybox-text-message"]/text()',
                  "//div[contains(@offer-display-feature-name,'desktop-merchant')]/div/span[contains(@class,'a-size-small offer-display-feature')]/text()",
                  '//span[contains(text(),"Ships from and sold by")]/../a/span/text()',
                  '//div[contains(@id,"FromSoldBy_")]//tr[2]//td/span[contains(@class,"-base")]/text()',
                  '//div[@class="a-section a-spacing-none"]/span[contains(text(),"Ships from and sold by")]/text()',
                  '//a[contains(@id,"sellerProfile")]/text()',
                  '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/text()',
                 '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//span/text()'
                  ],
    "by_text": ['//div[@id="merchant-info"]//span/text()'],
    "buyBox": ['//div[@tabular-attribute-name="Sold by"]//a/text()', '//div[contains(text(),"Sold by")]//a/text()'],
    "buyBox1": ['//div[@tabular-attribute-name="Sold by"]//span/text()',
                '//span[contains(text(),"Ships from and sold by")]/../a//text()',
                '//div[contains(text(),"Sold by")]//span/text()',
                '//div[@class="a-section a-spacing-none"]//span[contains(text(),"Ships from and sold by")]/text()',
                '//a[contains(@id,"sellerProfile")]/text()'],
    "buyBox_url": ['//div[@tabular-attribute-name="Sold by"]//a/@href', '//div[contains(text(),"Sold by")]//a/@href',
                   '//span[contains(text(),"Ships from and sold by")]/../a/@href',
                   '//a[contains(@id,"sellerProfile")]/@href'],
    'merchantID': ["//input[@id='merchantID']/@value"],
    'box_follow_list': ['//span[@data-action="show-all-offers-display"]//text()'],
    'buy_sales_list': ['//div[@id="centerCol"]//span[contains(text(),"past ")]/text()'],
    'buy_sales_num_list': ['//div[@id="centerCol"]//span[contains(text(),"bought")]/preceding-sibling::span/text()',
                           '//div[@id="centerCol"]//span[contains(text(),"past")]/preceding-sibling::span/text()'],

    'pba_lob_asin_list': ["//div[@id='pba-lob-carousel-row']//a/@href"],
    'compare_similar_asin_list': ['//div[contains(@id,"imageContainer-")]/@id'],
    'customer_reviews_list': [
        "//div[@data-csa-c-content-id='customerReviewsAttribute']//div[@class='a-row a-spacing-none']//span/text()"],
    'fbm_delivery_price': ['//span[@data-csa-c-content-id="DEXUnifiedCXPDM"]/@data-csa-c-delivery-price'],
    'search_category': ["//select[@id='searchDropdownBox']/option[@current='parent']/text()"]

}

FR_ASIN_XPATH = {
    "sp_num": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]//div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options'],
    "stars_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options'],
    "Delivery_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options'],
    "min_match_list": ['//div[contains(@class,"bundlesAsinFaceout")]//div/@data-asin'],
"bundles_this_asins": ['//div[contains(@id,"bundles-")]/div[contains(@id,"bundles-")]//li//input/@value'],
    "five_data": ["//div[@id='feature-bullets']/ul//li/span/text()",
                  '//div[contains(@id,"feature-bullets")]//ul//li//span/text()','//div[contains(@id,"productFactsDesk")]//ul//li//span/text()'],
    'product_attribute': ["//div[@class='a-section a-spacing-small a-spacing-top-small']//td"],
    'product_attribute_1': ['//div[contains(@class,"product-facts-detail")]/div'],
    'proddetails_list_1': ['//div[contains(@id,"detailBullets")]/ul/li/span/span'],
    'proddetails_list': ["//div[@id='prodDetails']//th","//div[@id='audibleProductDetails']//th"],
    'review_ai_list': ['//div[contains(@id,"product-insights")]//div[@id="product-summary"]//span/text()',
                       '//div[contains(@data-csa-c-item-id,"product-insights")]//div[@data-testid="overall-summary"]//span/text()'],
    'review_button_list': ['//div[contains(@id,"product-insights")]//button','//span[@data-testid="aspect-label"]'],
    "category_href": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//@href"],
    "category_data": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//text()"],
    "title": ['//*[@id="productTitle"]/text()', '//h1[@class="a-size-large"]/text()',
              '//h1[@class="a-size-large a-spacing-micro"]/text()', '//h1[@class="gc-detail-page-title"]//text()',
              '//h1[@id="mas-atf-product-title"]/span/span/text()', '//h1[@class="a2s-title-content"]/text()',
              '//span[@id="collection-title"]/text()', '//title[0]/text()', '//title[@dir="ltr"]/text()',
              '//h1/span/text()',
              '//h1/span[@id="gc-asin-title"]/text()'],

    "image": ["//div[@id='imgTagWrapperId']/img/@src", '//div[@id="img-canvas"]/img/@src',
              '//div[@id="imgTagWrapperId"]/img/@src', '//div[@id="img-canvas"]/img/@src',
              '//div[@class="image-wrapper"]/img/@src', '//div[@id="mainImageContainer"]/img/@src',
              '//img[@id="js-masrw-main-image"]/@src', '//div[@id="a2s-dp-main-content"]//img/@src',
              '//div[@id="ppd-left"]//img/@src',
              '//div[@id="ebooks-img-canvas"]//img[@class="a-dynamic-image frontImage"]/@src',
              '//div[@id="ppd-left"]//img/@src', '//div[@class="a-column a-span12 a-text-center"]/img/@src',
              '//img[0]/@src', '//img[@id="seriesImageBlock"]/@src', '//img[@class="main-image"]/@src',
              '//img[@class="mainImage"]/@src', '//img[@id="gc-standard-design-image"]/@src',
              '//div[@class="a-image-container a-dynamic-image-container greyBackground"]/img/@src'],
    "imageThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'thumbTypeimage')]//img/@src"],
    "videoThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'-video')]//img/@src"],
    "aplus_img": ['//div[@id="aplus"]//@src'],
    "products_list": ['//div[@data-feature-name="productDescription"]//p//text()',
                      "//h2[contains(text(),'Description du produit')]/following-sibling::div//p/text()"],
    "rating": ['//*[@id="acrPopover"]/@title',
               '//div[@class="a-row"]//span[@class="a-size-medium a-color-base"]/text()'],
    "brand": ["//a[@id='bylineInfo']/text()"],
    "brand2": ['//span[contains(text(),"Marque")]/parent::td/following-sibling::td/span/text()',
               "//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "ac_name": ["//span[@class='ac-keyword-link']/a/text()", "//span[@class='ac-for-text']/span/text()"],
    "reviews": ['//*[@id="acrCustomerReviewText"]/text()', '//div[@class="a2s-pdd-reviews"]//a/span/text()'],
     "star5": ["//a[@class='a-link-normal 5star']/@title|//a[contains(@href,'ref=acr_dp_hist_5')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star4": ["//a[@class='a-link-normal 4star']/@title|//a[contains(@href,'ref=acr_dp_hist_4')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star3": ["//a[@class='a-link-normal 3star']/@title|//a[contains(@href,'ref=acr_dp_hist_3')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star2": ["//a[@class='a-link-normal 2star']/@title|//a[contains(@href,'ref=acr_dp_hist_2')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star1": ["//a[@class='a-link-normal 1star']/@title|//a[contains(@href,'ref=acr_dp_hist_1')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "material": ["//span[text()='Material']/ancestor-or-self::td/following-sibling::td/span/text()"],
    "package_quantity": ["//label[contains(text(),'Package Quantity:')]/following-sibling::span/text()"],
    "pattern_name": ["//span[contains(text(),'Pattern Name:')]/following-sibling::span/text()"],
    "price": ["//span[@class='a-size-medium a-color-price priceBlockSalePriceString']/text()",
              "//span[@class='a-size-base a-color-price a-color-price']/text()",
              '//span[@id="priceblock_ourprice"]/text()', '//span[@id="priceblock_ourprice"]/span/text()',
              '//span[@id="priceLarge"]/text()', '//span[@id="priceblock_saleprice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              '//span[@class="a-price a-text-price a-size-medium apexPriceToPay"]//text()',
              "//span[@id='price']/text()",
              "//div[@id='gc-amount-mini-picker-wrapper']//span[@class='a-list-item']//text()",
              "//span[@class='a-price a-text-price header-price a-size-base a-text-normal']//text()",
              "//span[@class='audible_mm_price']/span/text()",
              "//span[@class='a-size-medium a-color-price header-price']/text()",
              "//div[@id='buyNew_noncbb']/span/text()",
              "//span[@class='a-price aok-align-center']/span/text()",
              "//div[@id='olp_feature_div']//span[@class='a-size-base a-color-price']/text()",
              "//div[@id='centerCol']//span[@class='a-color-base']/text()",
              "//div[@id='centerCol']//span[@class='a-color-secondary']/span/text()",
              "//div[@id='centerCol']//span[contains(@class,'a-price ')]/span/text()",
              "//div[@id='centerCol']//span[@data-a-color='price']/span/text()"],
    "Promotion_Message": ["//div[@id='applicable_promotion_list_sec']//span/text()",
                          "//span[contains(text(),'Promotion Message')]/parent::span/parent::span/following-sibling::span//text()",
                          "//span[@id='dealBadgeSupportingText' and @class='a-size-small dealBadgeTextColor a-text-bold']/span/text()"],
    "Join_Prime": ['//span[contains(text(),"Rejoignez Amazon Prime")]/following-sibling::span/text()'],
    "Buy_Deal": ['//div[@data-csa-c-slot-id="promo-cxcw-1-1"]/label/text()',
                 '//div[@data-csa-c-slot-id="promo-cxcw-1-0"]/label/text()',
                 '//div[@data-csa-c-slot-id="promo-cxcw-0-0"]/label/text()',
                 '//a[contains(text(),"Amazon Prime")]/parent::span/text()'],
    "Offre_star": ['//td[contains(text(),"Offre star")]'],
    'Prix_de': ['//td[contains(text(),"Prix de ")]'],
    'delight_pricing': ["//div[@class='delight-pricing-container']//span//text()"],
    'price_30': ['//td//span[@data-a-color="price"]//text()'],
    "You_Save": ['//tr//td[contains(text(),"Économisez")]'],
    "You_Save_price_list": ['//tr//td[contains(text(),"Économisez")]/parent::tr/td/span/text()'],
    "best_sellers_herf": [
        """//span[contains(text(),"Classement des meilleures ventes d'Amazon")]/parent::span//a/@href""",
        """//th[contains(text(),"Classement des meilleures ventes d'Amazon")]/following-sibling::td//a/@href"""],
    "Best_rank": [
        """//th[contains(text(),"Classement des meilleures ventes d'Amazon")]/following-sibling::td//text()"""],
    "Best_rank2": ["""//span[contains(text(),"Classement des meilleures ventes d'Amazon")]/parent::span//text()"""],
    "Weight": ['//span[contains(text(),"Dimensions du colis")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Dimensions du produit (L x l x h)")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Dimensions du colis")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Dimensions du produit (L x l x h)")]/following-sibling::td[1]/text()',
               '//th[contains(text(),"Dimensions du colis")]/following-sibling::td[1]/text()',
               '//th[contains(text(),"Poids de l\'article")]/following-sibling::td[1]/text()',
               '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],
    "Package": ['//span[contains(text(),"Dimensions du colis")]/following-sibling::span[1]/text()',
                '//th[contains(text(),"Dimensions du produit (L x l x h)")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Dimensions du colis")]/following-sibling::span[1]/text()',
                '//th[contains(text(),"Dimensions du produit (L x l x h)")]/following-sibling::td[1]/text()',
                '//th[contains(text(),"Dimensions du colis")]/following-sibling::td[1]/text()',
                '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],
    "Date_time": ['//span[contains(text(),"Date de mise en ligne sur Amazon.fr")]/following-sibling::span[1]/text()',
                  '//span[contains(text(),"Release date")]/following-sibling::span[1]/text()',
                  '//th[contains(text(),"Date de mise en ligne sur Amazon.fr")]/following-sibling::td[1]/text()',
                  '//span[contains(text(),"Date First Available")]/following-sibling::span[1]/text()',
                  '//th[contains(text()," Release date ")]/following-sibling::td[1]/text()',
                  '//span[contains(text(),"Date de sortie")]/following-sibling::span[1]/text()'],
    'Date_time2': ['//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],
    'Date_time3': ['//td[@class="a-size-base prodDetAttrValue"]//text()', '//tr[@id="detailsReleaseDate"]//text()'],
    "QA_num": ["//a[@id='askATFLink']/span/text()"],
    "buy_asin": ['//div[contains(@class,"a-section thumbnail")]//a/@href',
                 '//div[contains(@class, "cardRoot bucket")]//a/@href'],
    "invnetroySelect": ['//select[@id="quantity"]//option/text()',
                        '//div[@id="availability"]/span/text()',
                        '//span[@id="submit.add-to-cart-announce"]/text()',
                        '//span[@id="submit.add-to-cart-ubb-announce"]/text()',
                        '//div[@id="availability-string"]/span/text()'],
    'invnetroySelect2': ['//span[@id="submit.add-to-cart-announce"]/text()',
                         '//span[@id="submit.add-to-cart-ubb-announce"]/text()',
                         '//div[contains(@id,"availability")]/span/text()'],
    "td_0_text": ['//span[@id="tabular-buybox-truncate-1"]/span/span//text()',
                  '//div[@class="tabular-buybox-text"]/div[@class="tabular-buybox-text a-spacing-none"]/span/text()',
                  '//div[contains(@data-csa-c-slot-id,"odf-feature-label-desktop-merchant-info")]//span[contains(text()," / ")]/parent::div/parent::div/following-sibling::div//span[contains(@class,"offer-display-feature-text-message")]/text()'
                  ],
    "td_1_text": ['//div[@tabular-attribute-name="Vendu par"]//a/text()',
                  '//div[contains(text(),"Vendu par")]//a/text()',
                  '//div[@tabular-attribute-name="Vendu par"]//span[@class="a-size-small"]/text()',
                  '//div[@tabular-attribute-name="Vendu par"]//span[@class="a-size-small tabular-buybox-text-message"]/text()'],
    "by_text": ['//div[@id="merchant-info"]//span/text()'],
    "buyBox": ['//div[@tabular-attribute-name="Sold by"]//a/text()', '//div[contains(text(),"Sold by")]//a/text()',
               '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/text()'],
    "buyBox1": ['//div[@tabular-attribute-name="Sold by"]//span/text()',
                '//div[contains(text(),"Sold by")]//span/text()'],
    "buyBox_url": ['//div[@tabular-attribute-name="Sold by"]//a/@href', '//div[contains(text(),"Sold by")]//a/@href',
                   '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/@href'],
    'merchantID': ["//input[@id='merchantID']/@value"],
    'box_follow_list': ['//span[@data-action="show-all-offers-display"]//text()'],
    'buy_sales_list': ['//div[@id="centerCol"]//span[contains(text(),"achetés")]/text()'],
    'buy_sales_num_list': [
        '//div[@id="centerCol"]//span[contains(text(),"achetés")]/preceding-sibling::span/text()'],
    'pba_lob_asin_list': ["//div[@id='pba-lob-carousel-row']//a/@href"],
    'compare_similar_asin_list': ['//div[contains(@id,"imageContainer-")]/@id'],
    'customer_reviews_list': [
        "//div[@data-csa-c-content-id='customerReviewsAttribute']//div[@class='a-row a-spacing-none']//span/text()"],
    'fbm_delivery_price': ['//span[@data-csa-c-content-id="DEXUnifiedCXPDM"]/@data-csa-c-delivery-price'],
    'search_category': ["//select[@id='searchDropdownBox']/option[@current='parent']/text()"]

}

ES_ASIN_XPATH = {
    "sp_num": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]//div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options'],
    "stars_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options'],
    "Delivery_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options'],
    "min_match_list": ['//div[contains(@class,"bundlesAsinFaceout")]//div/@data-asin'],
"bundles_this_asins": ['//div[contains(@id,"bundles-")]/div[contains(@id,"bundles-")]//li//input/@value'],
    "five_data": ["//div[@id='feature-bullets']/ul//li/span/text()",
                  '//div[contains(@id,"feature-bullets")]//ul//li//span/text()','//div[contains(@id,"productFactsDesk")]//ul//li//span/text()'],
    'product_attribute': ["//div[@class='a-section a-spacing-small a-spacing-top-small']//td"],
    'product_attribute_1': ['//div[contains(@class,"product-facts-detail")]/div'],
    'proddetails_list_1': ['//div[contains(@id,"detailBullets")]/ul/li/span/span'],
    'proddetails_list': ["//div[@id='prodDetails']//th","//div[@id='audibleProductDetails']//th"],
    'review_ai_list': ['//div[contains(@id,"product-insights")]//div[@id="product-summary"]//span/text()',
                       '//div[contains(@data-csa-c-item-id,"product-insights")]//div[@data-testid="overall-summary"]//span/text()'],
    'review_button_list': ['//div[contains(@id,"product-insights")]//button','//span[@data-testid="aspect-label"]'],
    "category_href": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//@href"],
    "category_data": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//text()"],
    "title": ['//*[@id="productTitle"]/text()', '//h1[@class="a-size-large"]/text()',
              '//h1[@class="a-size-large a-spacing-micro"]/text()', '//h1[@class="gc-detail-page-title"]//text()',
              '//h1[@id="mas-atf-product-title"]/span/span/text()', '//h1[@class="a2s-title-content"]/text()',
              '//span[@id="collection-title"]/text()', '//title[0]/text()', '//title[@dir="ltr"]/text()',
              '//h1/span/text()',
              '//h1/span[@id="gc-asin-title"]/text()'],
    "image": ["//div[@id='imgTagWrapperId']/img/@src", '//div[@id="img-canvas"]/img/@src',
              '//div[@id="imgTagWrapperId"]/img/@src', '//div[@id="img-canvas"]/img/@src',
              '//div[@class="image-wrapper"]/img/@src', '//div[@id="mainImageContainer"]/img/@src',
              '//img[@id="js-masrw-main-image"]/@src', '//div[@id="a2s-dp-main-content"]//img/@src',
              '//div[@id="ppd-left"]//img/@src',
              '//div[@id="ebooks-img-canvas"]//img[@class="a-dynamic-image frontImage"]/@src',
              '//div[@id="ppd-left"]//img/@src', '//div[@class="a-column a-span12 a-text-center"]/img/@src',
              '//img[0]/@src', '//img[@id="seriesImageBlock"]/@src', '//img[@class="main-image"]/@src',
              '//img[@class="mainImage"]/@src', '//img[@id="gc-standard-design-image"]/@src',
              '//div[@class="a-image-container a-dynamic-image-container greyBackground"]/img/@src'],
    "imageThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'thumbTypeimage')]//img/@src"],
    "videoThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'-video')]//img/@src"],
    "aplus_img": ['//div[@id="aplus"]//@src'],
    "products_list": ['//div[@data-feature-name="productDescription"]//p//text()',
                      "//h2[contains(text(),'Descripción del producto')]/following-sibling::div//p/text()"],
    "rating": ['//*[@id="acrPopover"]/@title',
               '//div[@class="a-row"]//span[@class="a-size-medium a-color-base"]/text()'],

    "brand": ["//a[@id='bylineInfo']/text()",
              '//span[contains(text(),"Marca")]/parent::td/following-sibling::td/span/text()',
              "//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "brand2": ["//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "ac_name": ["//span[@class='ac-keyword-link']/a/text()", "//span[@class='ac-for-text']/span/text()"],
    "reviews": ['//*[@id="acrCustomerReviewText"]/text()', '//div[@class="a2s-pdd-reviews"]//a/span/text()'],
    "star5": [
        "//a[@class='a-link-normal 5star']/@title|//a[contains(@href,'ref=acr_dp_hist_5')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star4": [
        "//a[@class='a-link-normal 4star']/@title|//a[contains(@href,'ref=acr_dp_hist_4')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star3": [
        "//a[@class='a-link-normal 3star']/@title|//a[contains(@href,'ref=acr_dp_hist_3')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star2": [
        "//a[@class='a-link-normal 2star']/@title|//a[contains(@href,'ref=acr_dp_hist_2')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star1": [
        "//a[@class='a-link-normal 1star']/@title|//a[contains(@href,'ref=acr_dp_hist_1')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "material": ["//span[text()='Material']/ancestor-or-self::td/following-sibling::td/span/text()"],
    "package_quantity": ["//label[contains(text(),'Package Quantity:')]/following-sibling::span/text()"],
    "pattern_name": ["//span[contains(text(),'Pattern Name:')]/following-sibling::span/text()"],
    "price": ["//span[@class='a-size-medium a-color-price priceBlockSalePriceString']/text()",
              "//span[@class='a-size-base a-color-price a-color-price']/text()",
              '//span[@id="priceblock_ourprice"]/text()', '//span[@id="priceblock_ourprice"]/span/text()',
              '//span[@id="priceLarge"]/text()', '//span[@id="priceblock_saleprice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              '//span[@class="a-price a-text-price a-size-medium apexPriceToPay"]//text()'
              "//span[@id='price']/text()",
              "//div[@id='gc-amount-mini-picker-wrapper']//span[@class='a-list-item']//text()",
              "//span[@class='a-price a-text-price header-price a-size-base a-text-normal']//text()",
              "//span[@class='audible_mm_price']/span/text()",
              "//span[@class='a-size-medium a-color-price header-price']/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'£')]/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'€')]/text()",
              "//div[@id='centerCol']//span[@class='a-color-price a-text-bold']/text()",
              "//div[@id='centerCol']//div[@id='buyNew_noncbb']/span/text()",
              "//div[@id='centerCol']//span[contains(@class,'a-price ')]/span/text()",
              "//div[@id='centerCol']//span[@data-a-color='price']/span/text()"],

    "Promotion_Message": ["//div[@id='applicable_promotion_list_sec']//span/text()",
                          "//span[contains(text(),'Promotion Message')]/parent::span/parent::span/following-sibling::span//text()",
                          "//span[@id='dealBadgeSupportingText' and @class='a-size-small dealBadgeTextColor a-text-bold']/span/text()"],

    "Join_Prime": ['//span[contains(text(),"Prime para ahorrar")]/following-sibling::span/text()'],

    "Buy_Deal": ['//div[@data-csa-c-slot-id="promo-cxcw-1-1"]/label/text()',
                 '//div[@data-csa-c-slot-id="promo-cxcw-1-0"]/label/text()',
                 '//div[@data-csa-c-slot-id="promo-cxcw-0-0"]/label/text()',
                 '//a[contains(text(),"Amazon Prime")]/parent::span/text()'],
    "Oferta_Top": ['//td[contains(text(),"Oferta Top")]'],

    "delight_pricing_list": ["//div[@class='delight-pricing-container']//span//text()"],

    "price_30": ['//td//span[@data-a-color="price"]//text()'],
    "You_Save": ['//tr//td[contains(text(),"Ahorras")]'],
    "You_Save_price_list": ['//tr//td[contains(text(),"Ahorras")]/parent::tr/td/span/text()'],

    "best_sellers_herf": [
        '//span[contains(text(),"Clasificación en los más vendidos de Amazon")]/parent::span//a/@href',
        '//th[contains(text(),"Clasificación en los más vendidos de Amazon")]/following-sibling::td//a/@href'],

    "Best_rank": ['//th[contains(text(),"Clasificación en los más vendidos de Amazon")]/following-sibling::td//text()',
                  '//span[contains(text(),"Clasificación en los más vendidos de Amazon")]/parent::span//text()'],
    "Best_rank2": ['//th[contains(text(),"Clasificación en los más vendidos de")]/following-sibling::td//text()',
                   '//span[contains(text(),"Clasificación en los más vendidos de")]/parent::span//text()'],
    "Weight": ['//span[contains(text(),"Dimensiones del producto")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Dimensiones del producto")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Dimensiones del paquete")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Dimensiones del paquete")]/following-sibling::td[1]/text()',
               '//th[contains(text(),"Peso del producto")]/following-sibling::td[1]/text()',
               '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],

    "Package": ['//span[contains(text(),"Dimensiones del producto")]/following-sibling::span[1]/text()',
                '//th[contains(text(),"Dimensiones del producto")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Dimensiones del paquete")]/following-sibling::span[1]/text()',
                '//th[contains(text(),"Dimensiones del paquete")]/following-sibling::td[1]/text()',
                '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],

    "Date_time": ['//span[contains(text(),"Producto en Amazon.es desde")]/following-sibling::span[1]/text()',
                  '//th[contains(text(),"Producto en Amazon.es desde")]/following-sibling::td[1]/text()',
                  '//span[contains(text(),"Producto en Amazon.es desde")]/following-sibling::span[1]/text()',
                  '//span[contains(text(),"Producto en Amazon.es desde")]/following-sibling::span[1]/text()'
                  ],

    'Date_time2': ['//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'
                   ],
    'Date_time3': ['//td[@class="a-size-base prodDetAttrValue"]//text()'],

    "QA_num": ["//a[@id='askATFLink']/span/text()"],
    "buy_asin": ['//div[contains(@class,"a-section thumbnail")]//a/@href',
                 '//div[contains(@class, "cardRoot bucket")]//a/@href'],

    "invnetroySelect": ['//select[@id="quantity"]//option/text()', '//div[@id="availability"]/span/text()'],
    'invnetroySelect2': ['//span[@id="submit.add-to-cart-announce"]/text()',
                         '//span[@id="submit.add-to-cart-ubb-announce"]/text()'
                         '//div[contains(@id,"availability")]/span/text()'],

    "td_0_text": ['//span[@id="tabular-buybox-truncate-1"]/span/span//text()',
                  '//div[@class="tabular-buybox-text"]/div[@class="tabular-buybox-text a-spacing-none"]/span/text()',
                  '//div[contains(@data-csa-c-slot-id,"odf-feature-label-desktop-merchant-info")]//span[contains(text()," / ")]/parent::div/parent::div/following-sibling::div//span[contains(@class,"offer-display-feature-text-message")]/text()'
                  ],
    "td_1_text": ['//div[@tabular-attribute-name="Vendido por"]//a/text()',
                  '//div[contains(text(),"Vendido por")]//a/text()',
                  '//div[@tabular-attribute-name="Vendido por"]//span[@class="a-size-small"]/text()',
                  '//div[@tabular-attribute-name="Vendido por"]//span[@class="a-size-small tabular-buybox-text-message"]/text()'],
    "by_text": ['//div[@id="merchant-info"]//span/text()'],
    "buyBox": ['//div[@tabular-attribute-name="Sold by"]//a/text()', '//div[contains(text(),"Sold by")]//a/text()',
               '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/text()'],
    "buyBox1": ['//div[@tabular-attribute-name="Sold by"]//span/text()',
                '//div[contains(text(),"Sold by")]//span/text()'],
    "buyBox_url": ['//div[@tabular-attribute-name="Sold by"]//a/@href', '//div[contains(text(),"Sold by")]//a/@href',
                   '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/@href'],
    'merchantID': ["//input[@id='merchantID']/@value"],
    'box_follow_list': ['//span[@data-action="show-all-offers-display"]//text()'],
    'buy_sales_list': ['//div[@id="centerCol"]//span[contains(text(),"comprados")]/text()'],
    'buy_sales_num_list': [
        '//div[@id="centerCol"]//span[contains(text(),"comprados")]/preceding-sibling::span/text()'],
    'pba_lob_asin_list': ["//div[contains(@id,'lob-carousel')]//a/@href"],
    'compare_similar_asin_list': ['//div[contains(@id,"imageContainer-")]/@id'],
    'customer_reviews_list': [
        "//div[@data-csa-c-content-id='customerReviewsAttribute']//div[@class='a-row a-spacing-none']//span/text()"],
    'fbm_delivery_price': ['//span[@data-csa-c-content-id="DEXUnifiedCXPDM"]/@data-csa-c-delivery-price'],
    'search_category': ["//select[@id='searchDropdownBox']/option[@current='parent']/text()"]

}

IT_ASIN_XPATH = {
    "sp_num": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]//div[@data-p13n-feature-name="sp_detail2"]/@data-a-carousel-options'],
    "stars_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail_thematic-highly_rated"]/@data-a-carousel-options'],
    "Delivery_sp_list": [
        '//div[contains(@cel_widget_id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options',
        '//div[contains(@data-csa-c-slot-id,"sp_detai")]/div[@data-p13n-feature-name="sp_detail2-prime_theme_for_non_prime_members"]/@data-a-carousel-options'],
    "min_match_list": ['//div[contains(@class,"bundlesAsinFaceout")]//div/@data-asin'],
"bundles_this_asins": ['//div[contains(@id,"bundles-")]/div[contains(@id,"bundles-")]//li//input/@value'],
    "five_data": ["//div[@id='feature-bullets']/ul//li/span/text()",
                  '//div[contains(@id,"feature-bullets")]//ul//li//span/text()','//div[contains(@id,"productFactsDesk")]//ul//li//span/text()'],
    'product_attribute': ["//div[@class='a-section a-spacing-small a-spacing-top-small']//td"],
    'product_attribute_1': ['//div[contains(@class,"product-facts-detail")]/div'],
    'proddetails_list_1': ['//div[contains(@id,"detailBullets")]/ul/li/span/span'],
    'proddetails_list': ["//div[@id='prodDetails']//th","//div[@id='audibleProductDetails']//th"],
    'review_ai_list': ['//div[contains(@id,"product-insights")]//div[@id="product-summary"]//span/text()',
                       '//div[contains(@data-csa-c-item-id,"product-insights")]//div[@data-testid="overall-summary"]//span/text()'],
    'review_button_list': ['//div[contains(@id,"product-insights")]//button','//span[@data-testid="aspect-label"]'],
    "category_href": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//@href"],
    "category_data": ["//ul[@class='a-unordered-list a-horizontal a-size-small']//li/span//text()"],
    "title": ['//*[@id="productTitle"]/text()', '//h1[@class="a-size-large"]/text()',
              '//h1[@class="a-size-large a-spacing-micro"]/text()', '//h1[@class="gc-detail-page-title"]//text()',
              '//h1[@id="mas-atf-product-title"]/span/span/text()', '//h1[@class="a2s-title-content"]/text()',
              '//span[@id="collection-title"]/text()', '//title[0]/text()', '//title[@dir="ltr"]/text()',
              '//h1/span/text()',
              '//h1/span[@id="gc-asin-title"]/text()'],
    "image": ["//div[@id='imgTagWrapperId']/img/@src", '//div[@id="img-canvas"]/img/@src',
              '//div[@id="imgTagWrapperId"]/img/@src', '//div[@id="img-canvas"]/img/@src',
              '//div[@class="image-wrapper"]/img/@src', '//div[@id="mainImageContainer"]/img/@src',
              '//img[@id="js-masrw-main-image"]/@src', '//div[@id="a2s-dp-main-content"]//img/@src',
              '//div[@id="ppd-left"]//img/@src',
              '//div[@id="ebooks-img-canvas"]//img[@class="a-dynamic-image frontImage"]/@src',
              '//div[@id="ppd-left"]//img/@src', '//div[@class="a-column a-span12 a-text-center"]/img/@src',
              '//img[0]/@src', '//img[@id="seriesImageBlock"]/@src', '//img[@class="main-image"]/@src',
              '//img[@class="mainImage"]/@src', '//img[@id="gc-standard-design-image"]/@src',
              '//div[@class="a-image-container a-dynamic-image-container greyBackground"]/img/@src'],
    "imageThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'thumbTypeimage')]//img/@src"],
    "videoThumbnail": ['//div[@id="altImages"]/ul//li[contains(@class,"a-spacing-small item")]//img/@src',
                       "//div[@id='thumbImages']//li[contains(@class,'-video')]//img/@src"],
    "aplus_img": ['//div[@id="aplus"]//@src'],
    "products_list": ['//div[@data-feature-name="productDescription"]//p//text()',
                      "//h2[contains(text(),'Descrizione prodotto')]/following-sibling::div//p/text()"],
    "rating": ['//*[@id="acrPopover"]/@title',
               '//div[@class="a-row"]//span[@class="a-size-medium a-color-base"]/text()'],

    "brand": ["//a[@id='bylineInfo']/text()",
              '//span[contains(text(),"Marchio")]/parent::td/following-sibling::td/span/text()',
              "//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "brand2": ["//a[@id='amznStoresBylineLogoImageContainer']/following-sibling::a/text()"],
    "ac_name": ["//span[@class='ac-keyword-link']/a/text()", "//span[@class='ac-for-text']/span/text()"],
    "reviews": ['//*[@id="acrCustomerReviewText"]/text()', '//div[@class="a2s-pdd-reviews"]//a/span/text()'],
     "star5": ["//a[@class='a-link-normal 5star']/@title|//a[contains(@href,'ref=acr_dp_hist_5')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star4": ["//a[@class='a-link-normal 4star']/@title|//a[contains(@href,'ref=acr_dp_hist_4')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star3": ["//a[@class='a-link-normal 3star']/@title|//a[contains(@href,'ref=acr_dp_hist_3')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star2": ["//a[@class='a-link-normal 2star']/@title|//a[contains(@href,'ref=acr_dp_hist_2')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "star1": ["//a[@class='a-link-normal 1star']/@title|//a[contains(@href,'ref=acr_dp_hist_1')]/div[@class='a-section a-spacing-none a-text-right aok-nowrap']/text()"],
    "material": ["//span[text()='Materiale']/ancestor-or-self::td/following-sibling::td/span/text()"],
    "package_quantity": ["//label[contains(text(),'Package Quantity:')]/following-sibling::span/text()"],
    "pattern_name": ["//span[contains(text(),'Pattern Name:')]/following-sibling::span/text()"],
    "price": ["//span[@class='a-size-medium a-color-price priceBlockSalePriceString']/text()",
              "//span[@class='a-size-base a-color-price a-color-price']/text()",
              '//span[@id="priceblock_ourprice"]/text()', '//span[@id="priceblock_ourprice"]/span/text()',
              '//span[@id="priceLarge"]/text()', '//span[@id="priceblock_saleprice"]/text()',
              '//span[@id="newBuyBoxPrice"]/text()',
              '//span[@class="a-price a-text-price a-size-medium apexPriceToPay"]//text()'
              "//span[@id='price']/text()",
              "//div[@id='gc-amount-mini-picker-wrapper']//span[@class='a-list-item']//text()",
              "//span[@class='a-price a-text-price header-price a-size-base a-text-normal']//text()",
              "//span[@class='audible_mm_price']/span/text()",
              "//span[@class='a-size-medium a-color-price header-price']/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'£')]/text()",
              "//div[@id='apex_offerDisplay_desktop']//span[contains(text(),'€')]/text()",
              "//div[@id='centerCol']//span[@class='a-color-price a-text-bold']/text()",
              "//div[@id='centerCol']//div[@id='buyNew_noncbb']/span/text()",
              "//div[@id='centerCol']//span[contains(@class,'a-price ')]/span/text()",
              "//div[@id='centerCol']//span[@data-a-color='price']/span/text()"],

    "Promotion_Message": ["//div[@id='applicable_promotion_list_sec']//span/text()",
                          "//span[contains(text(),'Promozioni')]/parent::span/parent::span/following-sibling::span//text()",
                          "//span[@id='dealBadgeSupportingText' and @class='a-size-small dealBadgeTextColor a-text-bold']/span/text()"],

    "Join_Prime": ['//span[contains(text(),"Prime per risparmiare")]/following-sibling::span/text()'],

    "Buy_Deal": ['//div[@data-csa-c-slot-id="promo-cxcw-0-1"]/label/text()',
                 '//div[@data-csa-c-slot-id="promo-cxcw-1-0"]/label/text()',
                 '//div[@data-csa-c-slot-id="promo-cxcw-0-0"]/label/text()',
                 '//a[contains(text(),"Amazon Prime")]/parent::span/text()'],
    "Oferta_Top": ['//td[contains(text(),"Offerta top")]'],

    "delight_pricing_list": ["//div[@class='delight-pricing-container']//span//text()"],

    "price_30": ['//td//span[@data-a-color="price"]//text()'],
    "You_Save": ['//tr//td[contains(text(),"Prezzo")]'],
    "You_Save_price_list": ['//tr//td[contains(text(),"Risparmi")]/parent::tr/td/span/text()'],

    "best_sellers_herf": [
        '//span[contains(text(),"Posizione nella classifica Bestseller di Amazon")]/parent::span//a/@href',
        '//th[contains(text(),"Posizione nella classifica Bestseller di Amazon")]/following-sibling::td//a/@href'],

    "Best_rank": [
        '//th[contains(text(),"Posizione nella classifica Bestseller di Amazon")]/following-sibling::td//text()',
        '//span[contains(text(),"Posizione nella classifica Bestseller di Amazon")]/parent::span//text()'],
    "Best_rank2": ['//th[contains(text(),"Posizione nella classifica Bestseller di")]/following-sibling::td//text()',
                   '//span[contains(text(),"Posizione nella classifica Bestseller di")]/parent::span//text()'],
    "Weight": ['//span[contains(text(),"Dimensioni prodotto")]/following-sibling::span[1]/text()',
               '//th[contains(text(),"Dimensioni prodotto")]/following-sibling::td[1]/text()',
               '//th[contains(text(),"Dimensioni del collo")]/following-sibling::td[1]/text()',
               '//span[contains(text(),"Dimensioni del collo")]/following-sibling::span[1]/text()',
               '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],

    "Package": ['//span[contains(text(),"Dimensioni prodotto")]/following-sibling::span[1]/text()',
                '//th[contains(text(),"Dimensioni prodotto")]/following-sibling::td[1]/text()',
                '//th[contains(text(),"Dimensioni del collo")]/following-sibling::td[1]/text()',
                '//span[contains(text(),"Dimensioni del collo")]/following-sibling::span[1]/text()',
                '//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'],

    "Date_time": ['//span[contains(text(),"Disponibile su Amazon.it a partire dal")]/following-sibling::span[1]/text()',
                  '//th[contains(text(),"Disponibile su Amazon.it a partire dal")]/following-sibling::td[1]/text()',
                  '//td[@class="a-size-base prodDetAttrValue"]//text()'
                  ],

    'Date_time2': ['//*[@id="detailBullets_feature_div"]/ul/li//span/span[2]/text()'
                   ],
    'Date_time3': ['//td[@class="a-size-base prodDetAttrValue"]//text()'],

    "QA_num": ["//a[@id='askATFLink']/span/text()"],

    "buy_asin": ['//div[contains(@class,"a-section thumbnail")]//a/@href',
                 '//div[contains(@class, "cardRoot bucket")]//a/@href'],

    "invnetroySelect": ['//select[@id="quantity"]//option/text()', '//div[@id="availability"]/span/text()'],
    'invnetroySelect2': ['//span[@id="submit.add-to-cart-announce"]/text()',
                         '//span[@id="submit.add-to-cart-ubb-announce"]/text()',
                         '//div[contains(@id,"availability")]/span/text()'],

    "td_0_text": ['//span[@id="tabular-buybox-truncate-1"]/span/span//text()',
                  '//div[@class="tabular-buybox-text"]/div[@class="tabular-buybox-text a-spacing-none"]/span/text()',
                  '//div[contains(@data-csa-c-slot-id,"odf-feature-label-desktop-merchant-info")]//span[contains(text()," / ")]/parent::div/parent::div/following-sibling::div//span[contains(@class,"offer-display-feature-text-message")]/text()'
                  ],
    "td_1_text": ['//div[@tabular-attribute-name="Venditore"]//a/text()',
                  '//div[contains(text(),"Venditore")]//a/text()',
                  '//div[@tabular-attribute-name="Venditore"]//span[@class="a-size-small"]/text()',
                  '//div[@tabular-attribute-name="Venditore"]//span[@class="a-size-small tabular-buybox-text-message"]/text()'],
    "by_text": ['//div[@id="merchant-info"]//span/text()'],
    "buyBox": ['//div[@tabular-attribute-name="Sold by"]//a/text()', '//div[contains(text(),"Sold by")]//a/text()',
               '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/text()'],
    "buyBox1": ['//div[@tabular-attribute-name="Sold by"]//span/text()',
                '//div[contains(text(),"Sold by")]//span/text()'],
    "buyBox_url": ['//div[@tabular-attribute-name="Sold by"]//a/@href', '//div[contains(text(),"Sold by")]//a/@href',
                   '//div[@data-csa-c-content-id="desktop-merchant-info"]/following-sibling::div[@data-csa-c-content-id="desktop-merchant-info"]//a/@href'],
    'merchantID': ["//input[@id='merchantID']/@value"],
    'box_follow_list': ['//span[@data-action="show-all-offers-display"]//text()'],
    'buy_sales_list': ['//div[@id="centerCol"]//span[contains(text(),"acquistati")]/text()'],
    'buy_sales_num_list': [
        '//div[@id="centerCol"]//span[contains(text(),"cquistati")]/preceding-sibling::span/text()'],
    'pba_lob_asin_list': ["//div[@id='pba-lob-carousel-row']//a/@href"],
    'compare_similar_asin_list': ['//div[contains(@id,"imageContainer-")]/@id'],
    'customer_reviews_list': [
        "//div[@data-csa-c-content-id='customerReviewsAttribute']//div[@class='a-row a-spacing-none']//span/text()"],
    'fbm_delivery_price': ['//span[@data-csa-c-content-id="DEXUnifiedCXPDM"]/@data-csa-c-delivery-price'],
    'search_category': ["//select[@id='searchDropdownBox']/option[@current='parent']/text()"]

}
