-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
novatech.ts
93 lines (92 loc) 路 2.48 KB
/
novatech.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Novatech: Store = {
labels: {
inStock: {
container: '.newspec-specprice',
text: ['add to basket']
},
maxPrice: {
container: 'p[class="newspec-price"]',
euroFormat: false // Note: Novatech uses non-euroFromat as price seperator
},
outOfStock: {
container: '.newspec-pricesection',
text: [
'very short supply, no confirmed date',
'this product is only available to buy when in stock',
'ordered upon request',
'price to be confirmed'
]
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://www.novatech.co.uk/products/gigabyte-geforce-rtx-2060-oc-v2-6g-graphics-card/gv-n2060oc-6gdv2.html'
},
{
brand: 'amd',
model: '5600x',
series: 'ryzen5600',
url:
'https://www.novatech.co.uk/products/amd-ryzen-5-5600x-six-core-processorcpu-with-stealth-cooler-/100-000000065box.html'
},
{
brand: 'amd',
model: '5800x',
series: 'ryzen5800',
url:
'https://www.novatech.co.uk/products/amd-ryzen-7-5800x-eight-core-processorcpu-without-cooler-/100-000000063wof.html'
},
{
brand: 'amd',
model: '5900x',
series: 'ryzen5900',
url:
'https://www.novatech.co.uk/products/amd-ryzen-9-5900x-twelve-core-processorcpu-without-cooler-/100-100000061wof.html'
},
{
brand: 'amd',
model: '5950x',
series: 'ryzen5950',
url:
'https://www.novatech.co.uk/products/amd-ryzen-9-5950x-sixteen-core-processorcpu-without-cooler-/100-100000059wof.html'
}
],
linksBuilder: {
builder: getProductLinksBuilder({
productsSelector: '.seo-container .search-box-results',
sitePrefix: 'https://www.novatech.co.uk',
titleSelector: '.search-box-title',
urlSelector: 'a[href]'
}),
urls: [
{
series: '3060ti',
url:
'https://www.novatech.co.uk/products/components/nvidiageforcegraphicscards/nvidiartxseries/nvidiartx3060ti/?i=200'
},
{
series: '3080',
url:
'https://www.novatech.co.uk/products/components/nvidiageforcegraphicscards/nvidiartxseries/nvidiartx3080/?i=200'
},
{
series: '3090',
url:
'https://www.novatech.co.uk/products/components/nvidiageforcegraphicscards/nvidiartxseries/nvidiartx3090/?i=200'
},
{
series: '3060ti',
url:
'https://www.novatech.co.uk/products/components/nvidiageforcegraphicscards/nvidiartxseries/nvidiartx3060ti/'
}
]
},
name: 'novatech',
waitUntil: 'domcontentloaded'
};