diff --git a/README.md b/README.md index 9a5ab03993..d01150b4e5 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ environment variables are **optional**._ | Currys (UK) | `currys`| | Cyberport (DE) | `cyberport` | | eBuyer (UK) | `ebuyer`| +| El Corte Inglés | `elcorteingles`| | ePrice (IT) | `eprice`| | Euronics (IT) | `euronics`| | Euronics (DE) | `euronics-de`| diff --git a/src/store/model/elcorteingles.ts b/src/store/model/elcorteingles.ts new file mode 100644 index 0000000000..9f173cdd73 --- /dev/null +++ b/src/store/model/elcorteingles.ts @@ -0,0 +1,69 @@ +import {Store} from './store'; + +export const Elcorteingles: Store = { + backoffStatusCodes: [403, 429, 503], + labels: { + // Captcha: { + // container: 'body', + // text: [ + // 'geben sie die unten angezeigten zeichen ein', + // 'geben sie die zeichen unten ein' + // ] + // }, + inStock: [ + { + container: '.product_detail-purchase.mb-2.c12 .js-add-cart-text', + text: ['a la cesta'] + } + ], + maxPrice: { + container: '.product_detail-buy-price-container .price._big', + euroFormat: true + }, + outOfStock: [ + { + container: + '.c12.mt-2.product_detail-add_to_cart.one_click_enabled .c12.button._normal.js-buy-button._sold_out.view-page._disabled', + text: ['Agotado'] + }, + { + container: + '.product_detail-purchase.mb-2.c12 .c12.button._normal.js-buy-button._sold_out.view-page._disabled', + text: ['No disponible'] + } + ] + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.elcorteingles.es/moda/A26324406/' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.elcorteingles.es/videojuegos/A37046604' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: 'https://www.elcorteingles.es/videojuegos/A37046605' + }, + { + brand: 'microsoft', + model: 'xbox series x', + series: 'xboxsx', + url: 'https://www.elcorteingles.es/videojuegos/A37047078' + }, + { + brand: 'microsoft', + model: 'xbox series s', + series: 'xboxss', + url: 'https://www.elcorteingles.es/videojuegos/A37047080' + } + ], + name: 'elcorteingles' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index f8101c63e2..43b91bf63b 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -37,6 +37,7 @@ import {Corsair} from './corsair'; import {Currys} from './currys'; import {Cyberport} from './cyberport'; import {Ebuyer} from './ebuyer'; +import {Elcorteingles} from './elcorteingles'; import {Eprice} from './eprice'; import {Euronics} from './euronics'; import {EuronicsDE} from './euronics-de'; @@ -122,6 +123,7 @@ export const storeList = new Map([ [Currys.name, Currys], [Cyberport.name, Cyberport], [Ebuyer.name, Ebuyer], + [Elcorteingles.name, Elcorteingles], [Eprice.name, Eprice], [Euronics.name, Euronics], [EuronicsDE.name, EuronicsDE],