SHOW:
|
|
- or go back to the newest paste.
1 | { | |
2 | "start_urls": ["https://supermercado.eroski.es/es/supermercado/2060211-bebidas-y-licores/2060233-cervezas/"], | |
3 | "fields": { | |
4 | "name": "//h1/text()", | |
5 | "price": "//span[@class='price-now']//span[@itemprop='price']/text()", | |
6 | "price_old": "//div[@itemprop='offerDetails']/span[@class='price-before']/span[@itemprop='price']/text()", | |
7 | "reference": "", | |
8 | "image": "//img[@itemprop='image']//@src", | |
9 | "description": "//meta[@name='description']/@content", | |
10 | "brand": "", | |
11 | "brand_text": "", | |
12 | "categories": "", | |
13 | "availability": "", | |
14 | "rating_average": "//div[@id='ratingsZone']/div/div[@class='ratingSubtitle']/text()", | |
15 | "rating_count": "//div[@id='ratingsZone']//div[@class='ratingTitle']/span/text()", | |
16 | "barcode": "", | |
17 | "stock": "" | |
18 | }, | |
19 | "links": { | |
20 | "detail": "//h2[@class='product-title']/a", | |
21 | "next_page": "" | |
22 | }, | |
23 | "splash": { | |
24 | "spider": "positioning_spider", | |
25 | "mode": "infinite_scroll", | |
26 | "args": { | |
27 | "page_count": 17, | |
28 | "timeout": 60 | |
29 | } | |
30 | }, | |
31 | "list": { | |
32 | "product": "//div[contains(@class, 'product-item-')]", | |
33 | "page": "" | |
34 | } | |
35 | } |