Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "start_urls": [
- "https://www.zalando.es/le-coq-sportif/",
- "https://www.zalando.es/desigual/"
- ],
- "fields": {
- "name": "//div [contains(@class,'container')]//h1/text()",
- "price": "//script[@type='application/ld+json' and contains(.,'price')]/text()",
- "price_old": "//div[@class='h-product-price topSection']/span[contains(@class,'h-strike')]/text()",
- "reference": "",
- "image": "//meta[@property='og:image']/@content",
- "description": "(//div[@role='tabpanel']//div)[1]//text()",
- "brand": "",
- "brand_text": "//script[@type='application/ld+json' and contains(.,'brand')]/text()",
- "categories": "//li[contains(@class,'category')]/a//text()",
- "availability": "//script[@type='application/ld+json' and contains(.,'availability')]/text()",
- "rating_average": "//script[@type='application/ld+json' and contains(.,'ratingValue')]/text()",
- "rating_count": "//script[@type='application/ld+json' and contains(.,'reviewCount')]/text()",
- "barcode": "",
- "stock": ""
- },
- "links": {
- "detail": "//a[@class='cat_infoDetail--ePcG']",
- "next_page": "//a[@title='página siguiente']"
- },
- "regex": {
- "price": ["price\\\":\\\"(.*?)\\\"", 1],
- "availability": ["availability\\\":\\s*\\\"(.*?)\\\"", 1],
- "brand_text": ["brand\\\":\\\"(.*?)\\\"", 1],
- "rating_average": ["ratingValue\\\":\\\"(\\d+.\\d{1,2}).*?\\\"", 1],
- "rating_count": ["reviewCount\\\":(.*?),", 1]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment