sarafg11

Untitled

Sep 8th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. {
  2. "sitemap_urls": [
  3. "https://www.tiendanimal.es/sitemaps/sitemap_productos.xml"
  4. ],
  5. "fields": {
  6. "name": "//div[@class='product__headline']/h1/text()",
  7. "price": "(//div[@id='pi_info_prod_content']//div[@id='main_price']/span/span[@id='pi_final_price']/text() | //div[@class='price mt1']/span/text())[1]",
  8. "price_old": "//div[@id='pi_info_prod_content']//div[@id='main_price']/span/span[@id='pi_prev_price']/text()",
  9. "reference": "",
  10. "image": "//meta[@property='og:image']/@content",
  11. "description": "//div[@class='tab-content js-product_description']/div[@id='tab2']//text()",
  12. "brand": "",
  13. "brand_text": "//script[@type='application/ld+json' and contains(.,'Brand')]/text()",
  14. "categories": "//ol[contains(@class,'breadcrumb')]/li/a/span/text()",
  15. "availability": "",
  16. "rating_average": "//script[@type='application/ld+json' and contains(.,'ratingValue')]/text()",
  17. "rating_count": "//script[@type='application/ld+json' and contains(.,'reviewCount')]/text()",
  18. "barcode": "//script[@type='application/ld+json' and contains(.,'gtin13')]/text()",
  19. "stock": "",
  20. "variation": "//label/div[contains(@class,'bold')]/text()"
  21. },
  22. "links": {
  23. "detail": "//div[@class='wrap']/a[contains(@class,'teaser__title text')]",
  24. "next_page": ""
  25. },
  26. "variations": {
  27. "product_variation": "//div[@id='opciones_desktop']/div[contains(@class, 'js-opcion')]"
  28. },
  29. "parser_modules": [
  30. "multiple_product_variations_xpath"
  31. ],
  32. "regex": {
  33. "rating_average": ["ratingValue\\\":\\\"(.*?)\\\"", 1],
  34. "rating_count": ["reviewCount\\\":(.*?),", 1],
  35. "barcode": ["gtin13\\\":\\\"(.*?)\\\"", 1],
  36. "brand_text": ["Brand.*?name\\\":\\\"(.*?)\\\"", 1]
  37. },
  38. "pipelines": ["UrlVariationPipeline"],
  39. "sitemap_rules": [""]
  40. }
Add Comment
Please, Sign In to add comment