Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "start_urls": [
- "https://www.dia.es/compra-online/productos/bebidas/cervezas/c/WEB.008.064.00000",
- "https://www.dia.es/compra-online/productos/bebidas/aguas/c/WEB.008.059.00000",
- "https://www.dia.es/compra-online/productos/bebidas/refrescos/c/WEB.008.060.00000"
- ],
- "fields": {
- "name": "//h1[@itemprop='name']/text()",
- "price": "//div[contains(@class,'productDescription')]//p//span[@itemprop='price' and not(s)]/text()",
- "price_old": "//div[contains(@class,'productDescription')]//p//span[@itemprop='price']/s/text()",
- "reference": "",
- "image": "//img[@itemprop='image']/@src",
- "description": "//div[@id='nutritionalinformation']//text()",
- "brand": "",
- "brand_text": "//script[contains(.,\"brand'\")]/text()",
- "categories": "(//div[contains(@class,'breadcrumb')]//a/span)[position()>1]//text()",
- "availability": "",
- "rating_average": "//div[@class='prod_review']/div/@data-rating",
- "rating_count": "//a[@href='#tab-reviews']//text()",
- "barcode": "",
- "stock": ""
- },
- "links": {
- "detail": "(//span[@class="more"])[1]/a",
- "next_page": "//link[@rel='next']"
- },
- "list": {
- "product": "//div[contains(@class, 'span-3')]",
- "page": "//div[@class='paginatorTop']//ul[@class='pager']/li/strong/text()"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement