Facebook
From Yo, 6 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 66
  1. {
  2.   "start_urls": [
  3.     "https://www.elcorteingles.es/supermercado/bebidas/cervezas/cerveza/"
  4.   ],
  5.   "fields": {
  6.     "name": "//h2[@itemprop='name']//text()",
  7.     "price": "//span[@itemprop='price']//@content",
  8.     "price_old": "(//div[@id='price-container']//span[contains(@class,'stroked')])[last()]//text()",
  9.     "reference": "",
  10.     "image": "//ul[@id='alternate-images']/li/img/@data-zoom-src",
  11.     "description": "//div[@itemprop='description']//text()",
  12.     "brand": "",
  13.     "brand_text": "//h2[@itemprop='brand']//text()",
  14.     "categories": "//ul[@id='breadcrumbs']/li[position() > 1 and position() < last()]//text()",
  15.     "availability": "//meta[@itemprop='availability']/@content",
  16.     "rating_average": "//button[@class='bv_stars_button_container']/@aria-label",
  17.     "rating_count": "//*[@class='bv_numReviews_text']//text()",
  18.     "barcode": "",
  19.     "stock": ""
  20.   },
  21.   "links": {
  22.     "detail": "//h3[@class='info-name']/a",
  23.     "next_page": "//a[@rel='next']"
  24.   }
  25. }