sarafg11

Untitled

Mar 31st, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. {
  2. "start_urls": [
  3. "https://wscompra.plusfresc.cat/api/products/category/020401",
  4. "https://wscompra.plusfresc.cat/api/products/category/020403",
  5. "https://wscompra.plusfresc.cat/api/products/category/020402",
  6. "https://wscompra.plusfresc.cat/api/products/category/020201",
  7. "https://wscompra.plusfresc.cat/api/products/category/020101",
  8. "https://wscompra.plusfresc.cat/api/products/category/020102",
  9. "https://wscompra.plusfresc.cat/api/products/category/020202",
  10. "https://wscompra.plusfresc.cat/api/products/category/020203"
  11. ],
  12. "fields": {
  13. "name": "texts[0].text",
  14. "price": "value_cents",
  15. "new_price": "new_value_cents",
  16. "brand_text": "brand_name",
  17. "image": "image_url",
  18. "ean": "id",
  19. "product_id": "item_id"
  20. },
  21. "api_crawl": {
  22. "crawl_finisher": {
  23. "func_name": "always_stop",
  24. "func_args": ""
  25. },
  26. "get_next_url": {
  27. "func_name": "",
  28. "func_args": ""
  29. },
  30. "url_templates": {
  31. "url_detail": "https://compra.plusfresc.cat/product-detail/<id>",
  32. "url_image": "https://compra.plusfresc.cat/ImatgesProductes/<relative_url>"
  33. }
  34. },
  35. "links":{
  36. "detail": "",
  37. "next_page": ""
  38. },
  39. "list": {
  40. "product": "$[*]",
  41. "page": "",
  42. "default_page": 1
  43. },
  44. "preprocess": {
  45. "mode": "before_requests",
  46. "url": "https://wscompra.plusfresc.cat/api/login",
  47. "callback": "set_auth_token_to_start_requests",
  48. "payload": {
  49. "id_user": "lil_jose_luis",
  50. "password": "olovorgo"
  51. }
  52. },
  53. "parser_modules": ["multiple_response_jpath", "multiple_item_jpath"],
  54. "pipelines": ["PriceOldPricePipeline", "CentsToPricePipeline"]
  55. }
Advertisement
Add Comment
Please, Sign In to add comment