Skip to content

Commit

Permalink
feat(store): add el corte ingles (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnk93 committed Dec 4, 2020
1 parent 3c727f1 commit 75ee95b
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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`|
Expand Down
69 changes: 69 additions & 0 deletions 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'
};
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 75ee95b

Please sign in to comment.