mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 08:47:43 +00:00
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:
@@ -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'
|
||||
};
|
||||
@@ -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,4 +1,4 @@
|
||||
import {Browser, BrowserContext, LoadEvent} from 'puppeteer';
|
||||
import {Browser, LoadEvent} from 'puppeteer';
|
||||
|
||||
export type Element = {
|
||||
container?: string;
|
||||
|
||||
Reference in New Issue
Block a user