Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "start_urls":
- [
- "https://www.ametllerorigen.com/begudes/cervesa?PS=24&O=OrderByNameASC",
- "https://www.ametllerorigen.com/Begudes/Aigua?map=c,c",
- "https://www.ametllerorigen.com/begudes/refrescs?PS=24&O=OrderByNameASC",
- "https://www.ametllerorigen.com/Rebost/olives-i-snacks",
- "https://www.ametllerorigen.com/Rebost/Fruita-seca-i-llavors"
- ],
- "fields": {
- "name": "(//div[contains(@class,'product-name')]/h1/div[contains(@class,'productName')])[1]/text()",
- "price": "//script[contains(.,'bestPriceFormated')]/text()",
- "price_old": "",
- "reference": "",
- "image": "//script[contains(.,'image')]/text()",
- "description": "(//div[@class='product-description']//text())[2]",
- "brand": "",
- "brand_text": "//script[contains(.,'productBrandName')]/text()",
- "categories": "//div[@class='bread-crumb']/ul/li/a/text()",
- "availability": "//head//script[last()]/text()",
- "rating_average": "",
- "rating_count": "",
- "barcode": "//script[contains(.,'productEans')]/text()",
- "stock": ""
- },
- "links": {
- "detail": "//div[contains(@class,'product-title')]/a",
- "next_page": ""
- },
- "regex": {
- "brand_text": ["productBrandName\\\":\\\"(.*?)\\\"", 1],
- "barcode": ["productEans\\\":\\[\\\"(.*?)\\\"", 1],
- "image": ["image\\\":\\\"(.*?)\\\"", 1],
- "price": ["bestPriceFormated\\\":\\\"(.*?)\\\"", 1],
- "availability": ["\\\"available\\\":(.*),\\\"displayMode", 1]
- },
- "list": {
- "product": "//div[@class='product-container']",
- "page": ""
- }
- }
Add Comment
Please, Sign In to add comment