Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "start_urls": [
- "https://www.pharmashop.es/cosmetica/facial/",
- "https://www.pharmashop.es/cosmetica/corporal/",
- "https://www.pharmashop.es/cosmetica/hombre/",
- "https://www.pharmashop.es/cosmetica/maquillaje/",
- "https://www.pharmashop.es/cosmetica/proteccion-solar/",
- "https://www.pharmashop.es/cosmetica/perfumes-colonias/",
- "https://www.pharmashop.es/cosmetica/labial/",
- "https://www.pharmashop.es/cosmetica/capilar/",
- "https://www.pharmashop.es/dietetica/adelgazar/",
- "https://www.pharmashop.es/dietetica/barritas-suplementos/",
- "https://www.pharmashop.es/dietetica/complementos-y-vitaminas/",
- "https://www.pharmashop.es/bebes-y-mamas/alimentacion-infantil/",
- "https://www.pharmashop.es/bebes-y-mamas/cuidado-del-bebe/",
- "https://www.pharmashop.es/bebes-y-mamas/cuidado-de-la-mama/",
- "https://www.pharmashop.es/higiene/bucal/",
- "https://www.pharmashop.es/higiene/intima/",
- "https://www.pharmashop.es/higiene/higiene-corporal/",
- "https://www.pharmashop.es/higiene/salud-sexual/",
- "https://www.pharmashop.es/ortopedia/solucion-ortopedica/",
- "https://www.pharmashop.es/ortopedia/botiquin/",
- "https://www.pharmashop.es/medicamentos/enfermedades-de-la-piel/",
- "https://www.pharmashop.es/medicamentos/malestar-estomacal-y-problemas-digestivos/",
- "https://www.pharmashop.es/medicamentos/resfriados-tos-y-gripe/",
- "https://www.pharmashop.es/medicamentos/dolor-de-cabeza-fiebre-y-migranas/",
- "https://www.pharmashop.es/medicamentos/alergias/",
- "https://www.pharmashop.es/medicamentos/repelentes-y-picaduras/",
- "https://www.pharmashop.es/medicamentos/antisepticos/",
- "https://www.pharmashop.es/medicamentos/oftalmologicos/",
- "https://www.pharmashop.es/medicamentos/oidos/",
- "https://www.pharmashop.es/medicamentos/insomnio-y-nerviosismo/",
- "https://www.pharmashop.es/medicamentos/vitaminas-y-minerales/",
- "https://www.pharmashop.es/medicamentos/dolor-de-piernas/",
- "https://www.pharmashop.es/medicamentos/ginecologia/",
- "https://www.pharmashop.es/medicamentos/caida-y-tratamientos-del-cabello/",
- "https://www.pharmashop.es/medicamentos/dejar-de-fumar/",
- "https://www.pharmashop.es/medicamentos/mareos/",
- "https://www.pharmashop.es/medicamentos/control-de-peso-medicamentos/",
- "https://www.pharmashop.es/medicamentos/lubricantes/",
- "https://www.pharmashop.es/medicamentos/homeopatia/",
- "https://www.pharmashop.es/tienda-solidaria/apu/",
- "https://www.pharmashop.es/tienda-solidaria/dona-medula/",
- "https://www.pharmashop.es/tienda-solidaria/especial-regalos/",
- "https://www.pharmashop.es/veterinaria/",
- "https://www.pharmashop.es/#/dfclassic/query=cysteel%20heel&query_name=match_and",
- "https://www.pharmashop.es/higiene/higiene-corporal/aseo-bano/avena-syndet-1000-ml-liquido-isdin.html#/dfclassic/query=avena%20syndet&query_name=match_and"
- ],
- "fields": {
- "name": "//h1[@itemprop='name']/text()",
- "price": "//span[@itemprop='price']/text()",
- "price_old": "//div[@class='box-info-product']//p[@id='old_price']/span[@id='old_price_display']/text()",
- "reference": "//span[@itemprop='sku']/text()",
- "image": "//meta[@property='og:image']/@content",
- "description": "//div[@itemprop='description']//text()",
- "brand": "",
- "brand_text": "substring-before(substring-after(//script[@data-keepinline='true'],'\"brand\":\"'),'\"')",
- "categories": "(//section[@class='breadcrumb']/ul//li/a)[position()>1]/span/text()",
- "availability": "concat(substring('In Stock', 1, number(boolean(//link[@itemprop='availability']/@href='https://schema.org/InStock')) * string-length('In Stock')), substring('Out of stock', 1, number(not(boolean(//link[@itemprop='availability']/@href='https://schema.org/InStock'))) * string-length('Out of stock')))",
- "rating_average": "count(//div[@class='star_content']/div/a)",
- "rating_count": "",
- "barcode": "",
- "stock": ""
- },
- "links": {
- "detail": "//h5/a[@class='product-name']",
- "next_page": "//li[@id='pagination_next_bottom']/a"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment