Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "start_urls": [
  3. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=796&page=1&perPage=999999",
  4. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=970&page=1&perPage=999999",
  5. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=630&page=1&perPage=999999",
  6. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=627&page=1&perPage=999999",
  7. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=730&page=1&perPage=999999",
  8. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=634&page=1&perPage=999999",
  9. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=775&page=1&perPage=999999",
  10. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=1263&page=1&perPage=999999",
  11. "https://www.farmacosmetia.com/ecommerce/categories/categories.cfm?id=645&page=1&perPage=999999"
  12. ],
  13. "fields": {
  14. "name": "//h1[@class='productInfoNameContainer']/span//text()",
  15. "price": "//div[@id='productDetailInfo']//span[contains(@class,'productPrice')]//span[@class='price']/span[@class='integerPrice']/@content",
  16. "price_old": "//div[@id='productDetailInfo']//span[contains(@class,'productBasePrice')]//span[@class='price']/span[@class='integerPrice']/@content",
  17. "reference": "//div[contains(@class,'productInfoSkuContainer')]/span/text()",
  18. "image": "//meta[@property='og:image']/@content",
  19. "description": "//meta[@property='og:description']/@content",
  20. "brand": "",
  21. "brand_text": "//div[@class='productInfoBrandNameContainer']//text()",
  22. "categories": "//div[@id='categoryPathContainer']//a[@class='path categoryPath']/text()",
  23. "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')))",
  24. "rating_average": "//input[contains(@id,'voteValue')]/@value",
  25. "rating_count": "",
  26. "barcode": "",
  27. "stock": ""
  28. },
  29. "splash": {
  30. "item_detail": {
  31. "request_type": "detail_request"
  32. },
  33. },
  34. "links": {
  35. "detail": "//div[@id='categoryProductsContainer']//div[@class='productViewInfo']//a[contains(@class,'productView1Name')]",
  36. "next_page": "(//div[@class='productsPagination']//a)[last()]"
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement