Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "start_urls":
- [
- "https://www.walmart.ca/search/silk/N-117+1021453",
- "https://www.walmart.ca/search/danone/N-117",
- "https://www.walmart.ca/search/oikos/N-117",
- "https://www.walmart.ca/search/activia/N-117",
- "https://www.walmart.ca/search/international%20delight/N-117"
- ],
- "fields": {
- "name": "//h1[@data-automation='product-title']/text()",
- "price": "//div[@id='product-overview']//span[@class='price-group']/span[@itemprop='price']/@content|//div[@id='product-overview']//span[@class='price-group']/span[@itemprop='lowPrice']/@content",
- "price_old": "//div[@id='product-overview']//div[contains(@class,'price-old')]/span//span[@class='visuallyhidden']/text()",
- "reference": "",
- "image": "//meta[@property='og:image']/@content",
- "description": "//script[@type='application/ld+json'][1]/text()",
- "brand": "",
- "brand_text": "//span[@data-automation='brand']//text()",
- "categories": "//ol[@class='breadcrumb-list']/li[@class='breadcrumb']/a/span/text()",
- "availability": "//link[@itemprop='availability']/@href",
- "rating_average": "//script[@type='application/ld+json'][2]/text()",
- "rating_count": "//script[@type='application/ld+json'][2]/text()",
- "barcode": "//script[@type='application/ld+json'][1]/text()",
- "stock": ""
- },
- "links": {
- "detail": "//a[@class='product-link']",
- "next_page": "//ul[@class='paginator-list']/li[@class='active']/following-sibling::li[1]/a"
- },
- "regex":{
- "price_old": ["was(.*)", 1],
- "description": ["\\\"description\\\":\\\"(.*?)\\\",", 1],
- "rating_average": ["\\\"ratingValue\\\":\\\"(.*?)\\\",", 1],
- "rating_count": ["\\\"reviewCount\\\":\\\"(.*?)\\\",", 1],
- "barcode": ["\\\"sku\\\":\\\"(.*?)\\\",", 1]
- },
- "parser_modules": ["walmart_single_item"]
- }
Add Comment
Please, Sign In to add comment