Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "start_urls": [
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=796&page=1&perPage=999999",
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=970&page=1&perPage=999999",
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=630&page=1&perPage=999999",
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=627&page=1&perPage=999999",
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=730&page=1&perPage=999999",
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=634&page=1&perPage=999999",
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=775&page=1&perPage=999999",
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=1263&page=1&perPage=999999",
- "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=645&page=1&perPage=999999"
- ],
- "fields": {
- "name": "//h1[@class='productInfoNameContainer']/span//text()",
- "price": "//div[@id='productDetailInfo']//span[contains(@class,'productPrice')]//span[@class='price']/span[@class='integerPrice']/@content",
- "price_old": "//div[@id='productDetailInfo']//span[contains(@class,'productBasePrice')]//span[@class='price']/span[@class='integerPrice']/@content",
- "reference": "//div[contains(@class,'productInfoSkuContainer')]/span/text()",
- "image": "//meta[@property='og:image']/@content",
- "description": "//meta[@property='og:description']/@content",
- "brand": "",
- "brand_text": "//div[@class='productInfoBrandNameContainer']//text()",
- "categories": "//div[@id='categoryPathContainer']//a[@class='path categoryPath']/text()",
- "availability": "concat(substring('Out of stock', 1, number(boolean(//div[contains(@class,'shortDescription')]/span/div/font/strong/text()='AGOTADO')) * string-length('Out of stock')), substring('In Stock', 1, number(not(boolean(//div[contains(@class,'shortDescription')]/span/div/font/strong/text()='AGOTADO'))) * string-length('In Stock')))",
- "rating_average": "//input[contains(@id,'voteValue')]/@value",
- "rating_count": "",
- "barcode": "",
- "stock": ""
- },
- "splash": {
- "item_detail": {
- "request_type": "detail_request"
- },
- },
- "links": {
- "detail": "//div[@id='categoryProductsContainer']//div[@class='productViewInfo']//a[contains(@class,'productView1Name')]",
- "next_page": "(//div[@class='productsPagination']//a)[last()]"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement