View difference between Paste ID: JLYezjwt and kLMPrDcR
SHOW: | | - or go back to the newest paste.
1
{
2
  "sitemap_urls": [
3
    "https://maskokotas.com/xmls/11/sitemap_products_es_ES.xml"
4
  ],
5
  "fields": {
6
    "name": "//h1[@class='product-name']/text()",
7
    "price": "//head//script[@type='text/javascript' and contains(.,'price')]/text()",
8
    "price_old": "//form[@class='prod-prices-form']//div[@id='product--prices-regular']/div//div[@id='pvp_price_ref']/text()",
9
    "reference": "",
10
    "image": "//img[@itemprop='image']/@src",
11
    "description": "//article[@id='content-mainInfo']/div[@class='tab--content-main']",
12
    "brand": "",
13
    "brand_text": "//script[@type='text/javascript' and contains(.,'brand')]/text()",
14
    "categories": "//li[@class='breadcrumbs--item']//a/span/text()",
15
    "availability": "(//meta[@itemprop='availability'])[1]/@content",
16
    "rating_average": "//a[@itemtype='http://schema.org/AggregateRating']//meta[@itemprop='ratingValue']/@content",
17
    "rating_count": "//a[@itemtype='http://schema.org/AggregateRating']//meta[@itemprop='reviewCount']/@content",
18
    "barcode": "//ul[@class='tab--content-features']//span[contains(.,'Referencia')]/following-sibling::span/text()",
19-
    "stock": ""
19+
    "stock": "",
20
    "variation": "//li[@itemprop='offers']/span[@class='variation-name']/text()"
21
  },
22
  "links": {
23
    "detail": "//div[@class='prod__box--prod-name']/a",
24
    "next_page": "//link[@rel='next']"
25
  },
26
  "regex": {
27
    "price": ["price\\':\\s\\'(.*?)\\'", 1],
28
    "brand_text": ["brand\\':\\s\\'(.*?)\\'", 1]
29
  },
30
  "variations": {
31
    "product_variation": "//li[@itemprop='offers']"
32
  },
33
  "parser_modules": [
34
    "multiple_product_variations_xpath"
35
  ],
36
  "pipelines": ["UrlVariationPipeline"],
37
  "sitemap_rules": [""]
38
}