sarafg11

Untitled

Oct 16th, 2020 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. {
  2. "start_urls": [
  3. "http://www.farmallueca.com/c154986-medicamentos.html",
  4. "http://www.farmallueca.com/c71530-promociones.html",
  5. "http://www.farmallueca.com/c71525-cuidado-bucal.html",
  6. "http://www.farmallueca.com/c79067-cuidado-capilar.html",
  7. "http://www.farmallueca.com/c80922-cuidado-corporal.html",
  8. "http://www.farmallueca.com/c76775-cuidado-facial.html",
  9. "http://www.farmallueca.com/c72661-dietetica-y-nutricion.html",
  10. "http://www.farmallueca.com/c86817-problemas-de-salud.html",
  11. "http://www.farmallueca.com/c79455-homeopatia.html",
  12. "http://www.farmallueca.com/c71529-ortopedia.html",
  13. "http://www.farmallueca.com/c88609-alimentacion-infantil.html",
  14. "http://www.farmallueca.com/c71521-puericultura.html",
  15. "http://www.farmallueca.com/c86821-plantas-medicinales.html",
  16. "http://www.farmallueca.com/c85642-proteccion-solar.html",
  17. "http://www.farmallueca.com/c71532-sexualidad.html",
  18. "http://www.farmallueca.com/c91906-repelentes.html",
  19. "http://www.farmallueca.com/c93730-hombre.html",
  20. "http://www.farmallueca.com/c96094-botiquin.html",
  21. "http://www.farmallueca.com/c131438-perfumes.html",
  22. "http://www.farmallueca.com/c142497-cestas-infantiles.html",
  23. "http://www.farmallueca.com/c170625-veterinaria.html"
  24.  
  25. ],
  26. "fields": {
  27. "name": "//h1[@id='product-name']/text()",
  28. "price": "//span[contains(@id,'product-main')]/text()",
  29. "price_old": "",
  30. "reference": "//span[contains(@class,'product-code')]/text()",
  31. "image": "//meta[@property='og:image']/@content",
  32. "description": "//div[@id='product-description']//text()",
  33. "brand": "",
  34. "brand_text": "//table[contains(@id,'product-details')]//span/a/text()",
  35. "categories": "(//div[@id='breadcrumbs']//a)[position()>1]//text()",
  36. "availability": "//meta[@property='product:availability']/@content",
  37. "rating_average": "",
  38. "rating_count": "",
  39. "barcode": "",
  40. "stock": "",
  41. "variation": "//select[@class='product-options-dropdown']/option[@selected]/text()"
  42. },
  43. "links": {
  44. "detail": "//a[contains(@class,'featured-product-title-link')]",
  45. "next_page": "//div[@class='art-list-view-pager-nav']/div[@class='pager']//a[@class='next']"
  46. },
  47. "regex": {
  48. "variation": ["(.*) \\(", 1]
  49. },
  50. "splash": {
  51. "item_detail": {
  52. "request_type": "detail_request",
  53. "mode": "click_variations",
  54. "check_if_needed": {
  55. "func_name": "does_element_exist",
  56. "func_args": {
  57. "element_xpath": "//select[@class='product-options-dropdown']"
  58. }
  59. },
  60. "args": {
  61. "private_mode": false,
  62. "variations_selector": "select.product-options-dropdown option",
  63. "wait_element_selector": "span#product-main-price",
  64. "is_selected_string": "selected="
  65. }
  66. }
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment