Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "start_urls": [
  3. "https://www.parfumdreams.es/Perfumes/Perfumes-femeninos",
  4. "https://www.parfumdreams.es/Perfumes/Perfumes-masculinos",
  5. "https://www.parfumdreams.es/Maquillaje/Accesorios",
  6. "https://www.parfumdreams.es/Maquillaje/Cutis"
  7. ],
  8. "fields": {
  9. "name": "//span[@itemprop='name']//text()",
  10. "price": "(//span[@itemprop='price']/text())[1]",
  11. "price_old": "//span[@itemprop='price']/div/nobr/span[@class='line font-headline-sub']/text()",
  12. "reference": "//div[@id='articlenumberDiv']/text()",
  13. "image": "//meta[@property='og:image']/@content",
  14. "description": "",
  15. "brand": "",
  16. "brand_text": "//span[@itemprop='brand']//text()",
  17. "categories": "(//div[@class='breadcrumb']/div/a/span)[position()>1 and position()<last()]/text()",
  18. "availability": "(//span[contains(@class,'availability')]/following-sibling::text())[1]",
  19. "rating_average": "//div[@itemprop='aggregateRating']/span[@itemprop='ratingValue']/text()",
  20. "rating_count": "//div[@itemprop='aggregateRating']//span[@itemprop='reviewCount']/text()",
  21. "barcode": "",
  22. "stock": "",
  23. "variation": "//span[@class='show-when-no-js']"
  24. },
  25. "links": {
  26. "detail": "//div[@id='right-column']//a[contains(@onclick,'PD_onProductClick')]",
  27. "next_page": "(//a[@rel='next'])[last()]"
  28. },
  29. "regex": {
  30. "price_old": ["(\\d+.\\d{1,2})", 1],
  31. "price": ["(\\d+.\\d{1,2})", 1],
  32. "reference": ["(\\d{6})", 1]
  33. },
  34. "list": {
  35. "product": "//div[contains(@class, 'variation clearfix')]",
  36. },
  37. "pipelines": ["UrlVariationPipeline"]
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement