Skip to content

Commit

Permalink
feat(store): add some italian stores with ps5 links (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucarin91 committed Nov 27, 2020
1 parent 20e8746 commit f663579
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/store/model/amazon-it.ts
@@ -0,0 +1,37 @@
import {Store} from './store';

export const AmazonIt: Store = {
backoffStatusCodes: [403, 429, 503],
labels: {
captcha: {
container: 'body',
text: ['enter the characters you see below']
},
inStock: {
container: '#desktop_buybox',
text: ['Aggiungi al carrello']
},
maxPrice: {
container: 'span[class*="PriceString"]'
}
},
links: [
{
brand: 'sony',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08KKJ37F7&Quantity.1=1',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.amazon.it/dp/B08KKJ37F7'
},
{
brand: 'sony',
cartUrl:
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KJF2D25&Quantity.1=1',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://www.amazon.it/dp/B08KJF2D25'
}
],
name: 'amazon-it'
};
20 changes: 20 additions & 0 deletions src/store/model/comet.ts
@@ -0,0 +1,20 @@
import {Store} from './store';

export const Comet: Store = {
labels: {
inStock: {
container: '.caption',
text: ['Aggiungi al carrello']
}
},
links: [
{
brand: 'sony',
cartUrl: 'https://www.comet.it/cart/insert/PSX01802A/online',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.comet.it/ps5/sony-playstation-5'
}
],
name: 'comet'
};
27 changes: 27 additions & 0 deletions src/store/model/euronics.ts
@@ -0,0 +1,27 @@
import {Store} from './store';

export const Euronics: Store = {
labels: {
inStock: {
container: '.purchaseButtonsWidth',
text: ['Aggiungi al carrello', 'prenota e ritira']
}
},
links: [
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url:
'https://www.euronics.it/console/sony-computer/playstation-5/eProd202008906/'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url:
'https://www.euronics.it/console/sony-computer/playstation-5-digital-edition/eProd202008907/'
}
],
name: 'euronics'
};
8 changes: 8 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -7,6 +7,7 @@ import {AmazonCa} from './amazon-ca';
import {AmazonDe} from './amazon-de';
import {AmazonEs} from './amazon-es';
import {AmazonFr} from './amazon-fr';
import {AmazonIt} from './amazon-it';
import {AmazonNl} from './amazon-nl';
import {AmazonUk} from './amazon-uk';
import {Amd} from './amd';
Expand All @@ -23,13 +24,15 @@ import {Box} from './box';
import {CanadaComputers} from './canadacomputers';
import {Caseking} from './caseking';
import {Ccl} from './ccl';
import {Comet} from './comet';
import {Computeruniverse} from './computeruniverse';
import {Coolblue} from './coolblue';
import {Coolmod} from './coolmod';
import {Corsair} from './corsair';
import {Currys} from './currys';
import {Cyberport} from './cyberport';
import {Ebuyer} from './ebuyer';
import {Euronics} from './euronics';
import {Evga} from './evga';
import {EvgaEu} from './evga-eu';
import {Galaxus} from './galaxus';
Expand Down Expand Up @@ -58,6 +61,7 @@ import {Scan} from './scan';
import {Store} from './store';
import {Target} from './target';
import {TopAchat} from './topachat';
import {Unieuro} from './unieuro';
import {Very} from './very';
import {VsGamers} from './vsgamers';
import {Walmart} from './walmart';
Expand All @@ -76,6 +80,7 @@ export const storeList = new Map([
[AmazonFr.name, AmazonFr],
[AmazonNl.name, AmazonNl],
[AmazonUk.name, AmazonUk],
[AmazonIt.name, AmazonIt],
[Amd.name, Amd],
[AmdDe.name, AmdDe],
[Aria.name, Aria],
Expand All @@ -90,13 +95,15 @@ export const storeList = new Map([
[Caseking.name, Caseking],
[CanadaComputers.name, CanadaComputers],
[Ccl.name, Ccl],
[Comet.name, Comet],
[Computeruniverse.name, Computeruniverse],
[Coolblue.name, Coolblue],
[Coolmod.name, Coolmod],
[Corsair.name, Corsair],
[Currys.name, Currys],
[Cyberport.name, Cyberport],
[Ebuyer.name, Ebuyer],
[Euronics.name, Euronics],
[Evga.name, Evga],
[EvgaEu.name, EvgaEu],
[Galaxus.name, Galaxus],
Expand Down Expand Up @@ -124,6 +131,7 @@ export const storeList = new Map([
[Scan.name, Scan],
[Target.name, Target],
[TopAchat.name, TopAchat],
[Unieuro.name, Unieuro],
[Very.name, Very],
[VsGamers.name, VsGamers],
[Walmart.name, Walmart],
Expand Down
27 changes: 27 additions & 0 deletions src/store/model/unieuro.ts
@@ -0,0 +1,27 @@
import {Store} from './store';

export const Unieuro: Store = {
labels: {
inStock: {
container: '.price-container',
text: ['Aggiungi al carrello']
}
},
links: [
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url:
'https://www.unieuro.it/online/Playstation-5/PlayStation-5-pidSONPS5DISC'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url:
'https://www.unieuro.it/online/Playstation-5/PlayStation-5-Digital-Edition-pidSONPS5DIGITAL'
}
],
name: 'unieuro'
};

0 comments on commit f663579

Please sign in to comment.