Facebook
From yo, 4 Years ago, written in Plain Text.
This paste is a reply to Untitled from yo - go back
Embed
Viewing differences between Untitled and Re: Untitled
{
  "start_urls":
  [
          "https://www.amazon.es/b/ref=pantry-wayfinder-3-1-4?node=15426699031",
    "https://www.amazon.es/b/?node=6347717031&ref_=Oct_CateC_6198072031_6347717031&pf_rd_p=7176fd55-a35c-58f4-bf6f-f65010ce11ed&pf_rd_s=merchandised-search-4&pf_rd_t=101&pf_rd_i=6198072031&pf_rd_m=A1AT7YVPFBWXBL&pf_rd_r=9XQ0HVDRZJDS1EWDKZPW&pf_rd_r=9XQ0HVDRZJDS1EWDKZPW&pf_rd_p=7176fd55-a35c-58f4-bf6f-f65010ce11ed",
es/s?rh=n%3A6198072031%2Cn%3A%2114849352031%2Cn%3A%2114849354031%2Cn%3A15426699031&page=2&qid=1576664435&ref=lp_15426699031_pg_2",
    "https://www.amazon.es/b/?node=6347570031&ref_=Oct_CateC_6347509031_9&pf_rd_p=efeed45e-aac0-5ef6-8cf6-c09678cca1f4&pf_rd_s=merchandised-search-4&pf_rd_t=101&pf_rd_i=6347509031&pf_rd_m=A1AT7YVPFBWXBL&pf_rd_r=GVAVASBS3GFDD2DJTR3P&pf_rd_r=GVAVASBS3GFDD2DJTR3P&pf_rd_p=efeed45e-aac0-5ef6-8cf6-c09678cca1f4",
es/s?i=grocery&rh=n%3A6198072031%2Cn%3A14849352031%2Cn%3A14849354031%2Cn%3A15426699031&page=3&qid=1576664490&ref=sr_pg_3",
    "https://www.amazon.es/b/?node=6347510031&ref_=Oct_CateC_6347509031_4&pf_rd_p=efeed45e-aac0-5ef6-8cf6-c09678cca1f4&pf_rd_s=merchandised-search-4&pf_rd_t=101&pf_rd_i=6347509031&pf_rd_m=A1AT7YVPFBWXBL&pf_rd_r=GVAVASBS3GFDD2DJTR3P&pf_rd_r=GVAVASBS3GFDD2DJTR3P&pf_rd_p=efeed45e-aac0-5ef6-8cf6-c09678cca1f4",
es/s?i=grocery&rh=n%3A6198072031%2Cn%3A14849352031%2Cn%3A14849354031%2Cn%3A15426699031&page=4&qid=1576664545&ref=sr_pg_4",
    "https://www.amazon.es/s?i=grocery&rh=n%3A6198072031%2Cn%3A14849352031%2Cn%3A14849354031%2Cn%3A15426699031&page=5&qid=1576664563&ref=sr_pg_5",
    "https://www.amazon.es/s?i=grocery&rh=n%3A6198072031%2Cn%3A14849352031%2Cn%3A14849354031%2Cn%3A15426699031&page=6&qid=1576664656&ref=sr_pg_6",
    "https://www.amazon.es/s?i=grocery&rh=n%3A6198072031%2Cn%3A14849352031%2Cn%3A14849354031%2Cn%3A15426699031&page=7&qid=1576664666&ref=sr_pg_7",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4346878031&dc&fst=as%3Aoff&qid=1573662807&rnid=3677431031&ref=sr_nr_n_1",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4347676031&dc&fst=as%3Aoff&qid=1573662931&rnid=3677431031&ref=sr_nr_n_2",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4346879031&dc&fst=as%3Aoff&qid=1573662983&rnid=3677431031&ref=sr_nr_n_3",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4346880031&dc&fst=as%3Aoff&qid=1573662957&rnid=3677431031&ref=sr_nr_n_4",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4346882031&dc&fst=as%3Aoff&qid=1573663005&rnid=3677431031&ref=sr_nr_n_5",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4346884031&dc&fst=as%3Aoff&qid=1573663030&rnid=3677431031&ref=sr_nr_n_6",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4347698031&dc&fst=as%3Aoff&qid=1573663051&rnid=3677431031&ref=sr_nr_n_7",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4346918031&dc&fst=as%3Aoff&qid=1573663095&rnid=3677431031&ref=sr_nr_n_9",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A6691131031&dc&fst=as%3Aoff&qid=1573663203&rnid=3677431031&ref=sr_nr_n_10",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4346885031&dc&fst=as%3Aoff&qid=1573663602&rnid=3677431031&ref=sr_nr_n_11",
    "https://www.amazon.es/s?i=pantry&srs=10547412031&bbn=10858545031&rh=n%3A10858545031%2Cn%3A%213677431031%2Cn%3A4346886031&dc&fst=as%3Aoff&qid=1573663621&rnid=3677431031&ref=sr_nr_n_12"
  ],
  "fields": {
    "name": "//h1[@id='title']/span[@id='productTitle']/text()",
    "price": "//td[@class='a-span12']/span[@id='priceblock_ourprice']",
    "price_old": "//span[@class='priceBlockStrikePriceString a-text-strike']/text()",
    "reference": "",
    "image": "//div[@id='imgTagWrapperId']/img/@src",
    "description": "//div[@id='productDescription']//text()",
    "brand": "",
    "brand_text": "//div[@id='merchant-info']/a[@id='sellerProfileTriggerId']/text()",
    "categories": "//div[@id='wayfinding-breadcrumbs_container']//ul/li/span[@class='a-list-item']/a/text()",
    "availability": "//div[@class='a-section']/div[@id='availability']/span/text()",
    "rating_average": "//span[@class='a-declarative']//span[@data-hook='rating-out-of-text']/text()",
    "rating_count": "//*[@id='reviewsMedley']/div/div[1]/div[1]/div[2]",
    "barcode": "",
    "stock": "",
    "seller": "//div[@id='merchant-info']/a[@id='sellerProfileTriggerId']/text()" 
  },
  "links": {
    "detail": "(//i[@aria-label='Amazon Pantry']/parent::span/parent::a[contains(@class,'a-link-normal')]|//img[@aria-label='Amazon Pantry']/preceding-sibling::a[contains(@class,'a-text-normal')])",
    "next_page": "//a[(contains(.,'Siguiente') or contains(.,'siguiente')) and not(contains(@class,'carousel-goto-nextpage'))]"
  },
    "regex": {
        "rating_average": ["(.*?)de", 1],
        "rating_count": ["(.*?)valoraciones", 1]
    }
}