Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(store): add some italian stores with ps5 links (#976)
- Loading branch information
Showing
5 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
}; |