Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "start_urls": [
- "https://cocunat.com/es-ES/search/?category=65",
- "https://cocunat.com/es-ES/search/?category=66",
- "https://cocunat.com/es-ES/search/?category=67",
- "https://cocunat.com/es-ES/search/?category=68",
- "https://cocunat.com/es-ES/search/?category=90",
- "https://cocunat.com/es-ES/search/?category=91"
- ],
- "fields": {
- "name": "//h2[contains(@class,'product-title')]/span/text()",
- "price": "//div[@id='single-product']//div[contains(@class,'product-single-price-section')]/span[contains(@class,'price-product')]/text()",
- "price_old": "",
- "reference": "",
- "image": "//meta[@property='og:image']/@content",
- "description": "//div[contains(@class,'info')]//*//text()",
- "brand": "",
- "brand_text": "",
- "categories": "",
- "availability": "",
- "rating_average": "//section[@class='review-overview container-medium']//div[@class='card-body']/h1[@class='text-danger']/text()",
- "rating_count": "//section[@class='review-overview container-medium']//div[@class='card-body']/p/text()",
- "barcode": "",
- "stock": ""
- },
- "links": {
- "detail": "//div[contains(@class,'product-col-text')]/p/a"
- },
- "regex": {
- "rating_count": ["(\\d+)", 1]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment