SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "start_urls": [
  3.     "https://www.farmacia.bio/preparados-medicinales/",
  4.     "https://www.farmacia.bio/suplementos-alimenticios/",
  5.     "https://www.farmacia.bio/alimentacion/",
  6.     "https://www.farmacia.bio/aromaterapia/",
  7.     "https://www.farmacia.bio/cosmetica-higiene/",
  8.     "https://www.farmacia.bio/cosmetica-higiene/facial/",
  9.     "https://www.farmacia.bio/cosmetica-higiene/corporal/",
  10.     "https://www.farmacia.bio/cosmetica-higiene/cabello/",
  11.     "https://www.farmacia.bio/cosmetica-higiene/higiene-dental/",
  12.     "https://www.farmacia.bio/alimentacion-infantil/",
  13.     "https://www.farmacia.bio/cosmetica-higiene-infantil/",
  14.     "https://www.farmacia.bio/tienda/"
  15.   ],
  16.   "fields": {
  17.     "name": "//div[contains(@class,'entry-summary')]//h1[contains(@class,'product_title')]/text()",
  18.     "price": "(//div[contains(@class,'entry-summary')]//div/p[@class='price']/span[contains(@class,'woocommerce-Price-amount')])[1]/text()",
  19.     "price_old": "",
  20.     "reference": "//span[@class='sku_wrapper']/span[@class='sku']/text()",
  21.     "image": "//main[@id='main']//div[contains(@class,'thumbnails')]/a/img/@src",
  22.     "description": "//main[@id='main']//div[contains(@class,'product-description')]//text()",
  23.     "brand": "//div[contains(@class,'entry-summary')]//img[@class='brand-image']/@src",
  24.     "brand_text": "//div[contains(@class,'entry-summary')]//div[contains(@class,'brand')]//a/@data-tooltip",
  25.     "categories": "//div[@class='breadcrumbs-wrap']//a[contains(@class,'product_cat')]/span/text()",
  26.     "availability": "//link[@itemprop='availability']/@href",
  27.     "rating_average": "",
  28.     "rating_count": "",
  29.     "barcode": "",
  30.     "stock": ""
  31.   },
  32.   "json_fields": {
  33.     "price": "display_price",
  34.     "variation": "attributes.attribute_pa_formato-de-producto",
  35.     "image": "image.url",
  36.     "weight": "weight_html",
  37.     "sku": "sku"
  38.   },
  39.   "links": {
  40.     "detail": "//a[contains(@class,'woocommerce-LoopProduct-link')]",
  41.     "next_page": "//ul[@class='page-numbers']//a[contains(@class,'next')]"
  42.   },
  43.   "list": {
  44.     "product": "//form[@class='variations_form cart']/@data-product_variations",
  45.     "subproduct": "$[*]"
  46.   },
  47.   "parser_modules": [
  48.     "multiple_product_variations_jpath"
  49.   ],
  50.   "pipelines": [
  51.     "UrlVariationPipeline"
  52.   ]
  53. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top