sarafg11

Untitled

Nov 24th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. {
  2. "start_urls": [
  3. "https://sanchez-romero.online/sr/categoria/bebidas/cervezas/c-304",
  4. "https://sanchez-romero.online/sr/categoria/bebidas/aguas/c-301",
  5. "https://sanchez-romero.online/sr/categoria/refrigerados/derivados-lacteos/natas/nata-spray/c-8030101",
  6. "https://sanchez-romero.online/sr/categoria/refrigerados/derivados-lacteos/natas/nata-liquida/c-8030102",
  7. "https://sanchez-romero.online/sr/categoria/refrigerados/derivados-lacteos/natas/nata-montada/c-8030103",
  8. "https://sanchez-romero.online/sr/categoria/refrigerados/derivados-lacteos/mantequillas/mantequilla-con-sal/c-8030201",
  9. "https://sanchez-romero.online/sr/categoria/refrigerados/derivados-lacteos/mantequillas/mantequilla-sin-sal/c-8030202",
  10. "https://sanchez-romero.online/sr/categoria/refrigerados/derivados-lacteos/margarinas/c-80303",
  11. "https://sanchez-romero.online/sr/categoria/refrigerados/derivados-lacteos/leches/c-80304",
  12. "https://sanchez-romero.online/sr/categoria/refrigerados/derivados-lacteos/horchatas/c-80305"
  13. ],
  14. "fields": {
  15. "name": "//div[@id='content' and @class='p--content--notification']//div[@class='o-ficha-product--mini-description']/text()",
  16. "price": "//div[@id='fichaProducto']//div[@class='o-ficha-product--price']/text()",
  17. "price_old": "",
  18. "reference": "//div[@class='o-ficha-product--codigo']/span[@class='gwt-InlineLabel']/text()",
  19. "image": "//div[contains(@class,'ficha-product--img')]//img/@src",
  20. "description": "//div[@id='profile']/div[@class='gwt-Label']//text()",
  21. "brand": "",
  22. "brand_text": "//div[@class='o-ficha-product--title']/text()",
  23. "categories": "(//ol[contains(@class,'t-breadcrumb')]/li/a)[position()>1]/text()",
  24. "availability": "",
  25. "rating_average": "",
  26. "rating_count": "",
  27. "barcode": "",
  28. "stock": ""
  29. },
  30. "links": {
  31. "detail": "//div[@class='o-item-product-main-title']/a[@class='o-item-product-main-link']",
  32. "next_page": ""
  33. },
  34. "splash": {
  35. "item_detail": [
  36. {
  37. "mode": "load_click_content",
  38. "request_type": "start_request",
  39. "args": {
  40. "element_selector": "button.o-item-product-ver-mas",
  41. "content_loaded_check": "document.querySelectorAll('div.o-item-product-ver-mas__container[aria-hidden=true]').length == 0"
  42. }
  43. },
  44. {
  45. "mode": "wait_time",
  46. "request_type": "detail_request",
  47. "args": {
  48. "wait_time": 5
  49. }
  50. }
  51. ],
  52. "on_demand": {
  53. "mode": "wait_time",
  54. "args": {
  55. "wait_time": 7
  56. }
  57. }
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment