-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
aria.ts
46 lines (45 loc) 路 1.27 KB
/
aria.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Aria: Store = {
labels: {
inStock: {
container: '#addQuantity',
text: ['add to shopping basket']
},
maxPrice: {
container: '.priceBig',
euroFormat: false // Note: Aria uses non-euroFromat as price seperator
},
outOfStock: {
container: '.fBox',
text: ['out of stock', 'there is currently no stock of this item']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.aria.co.uk/Products/Components/Graphics+Cards/NVIDIA+GeForce/GeForce+RTX+2060+Super/Gigabyte+NVIDIA+GeForce+RTX+2060+SUPER+8GB+WINDFORCE+OC+Turing+Graphics+Card+%2B+RTX+Bundle%21?productId=71541'
}
],
linksBuilder: {
builder: getProductLinksBuilder({
productsSelector: '#productListingInner .listTable .listTableTr',
sitePrefix: 'https://www.aria.co.uk',
titleSelector: 'strong > a[href]'
}),
urls: [
{
series: '3080',
url: 'https://www.aria.co.uk/Products/Components/Graphics+Cards/NVIDIA+GeForce/GeForce+RTX+3080'
},
{
series: '3090',
url: 'https://www.aria.co.uk/Products/Components/Graphics+Cards/NVIDIA+GeForce/GeForce+RTX+3090'
}
]
},
name: 'aria',
waitUntil: 'domcontentloaded'
};