feat(store): add argos with ps5

Updated env-example
Add max price for test series

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-12-01 23:56:15 -05:00
parent 29478bff2d
commit b2f5c1a3ed
6 changed files with 42 additions and 3 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ const store = {
sf: envOrNumber(process.env.MAX_PRICE_SERIES_CORSAIR_SF),
sonyps5c: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5C),
sonyps5de: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5DE),
'test:series': -1,
'test:series': envOrNumber(process.env.MAX_PRICE_SERIES_TEST),
xboxss: -1,
xboxsx: -1
}
+34
View File
@@ -0,0 +1,34 @@
import {Store} from './store';
export const Argos: Store = {
labels: {
inStock: {
container: 'button[data-test="add-to-trolley-button-button"',
text: ['to trolley']
},
maxPrice: {
container: 'li[itemprop="price"]'
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.argos.co.uk/product/5718469'
},
{
brand: 'asus',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.argos.co.uk/product/6795199'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://www.argos.co.uk/product/6795151'
}
],
name: 'argos'
};
+2
View File
@@ -15,6 +15,7 @@ import {AmdCa} from './amd-ca';
import {AmdDe} from './amd-de';
import {AmdIt} from './amd-it';
import {AntOnline} from './antonline';
import {Argos} from './argos';
import {Aria} from './aria';
import {Arlt} from './arlt';
import {Asus} from './asus';
@@ -93,6 +94,7 @@ export const storeList = new Map([
[AmdDe.name, AmdDe],
[AmdIt.name, AmdIt],
[AntOnline.name, AntOnline],
[Argos.name, Argos],
[Aria.name, Aria],
[Arlt.name, Arlt],
[Asus.name, Asus],
+1 -1
View File
@@ -1,4 +1,4 @@
import {Browser, BrowserContext, LoadEvent} from 'puppeteer';
import {Browser, LoadEvent} from 'puppeteer';
export type Element = {
container?: string;