From ea095a364c250f805704c1189c0f3e697e09673d Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 9 Apr 2021 18:46:32 +0200 Subject: [PATCH] chore(alternate): update links and selectors (#2282) Add "aorus elite", "ghost", "ichill x3 red", "merc core", "merc ultra", "nitro+ oc", "nitro+ oc se", "pegasus", "pegasus oc", "phantom", "pulse oc", "stormx oc", "taichi x oc", "qick" model Updated selectors of Alternate search algorithm, because it was outdated --- src/store/model/alternate.ts | 632 +++++++++++++++++++++++++++++++++-- src/store/model/store.ts | 18 +- 2 files changed, 617 insertions(+), 33 deletions(-) diff --git a/src/store/model/alternate.ts b/src/store/model/alternate.ts index 57058f2c5f..37646426e5 100644 --- a/src/store/model/alternate.ts +++ b/src/store/model/alternate.ts @@ -4,7 +4,7 @@ export const Alternate: Store = { currency: '€', labels: { inStock: { - container: '.stockStatus', + container: 'span.d-flex > b:nth-child(1)', text: [ 'auf lager', 'ware neu eingetroffen', @@ -13,16 +13,16 @@ export const Alternate: Store = { ], }, maxPrice: { - container: 'div.price > span', + container: '.price > span:nth-child(1)', euroFormat: true, }, outOfStock: [ { - container: '.stockStatus', + container: 'span.d-flex > b:nth-child(1)', text: ['liefertermin unbekannt'], }, { - container: '.stockStatus', + container: 'span.d-flex > b:nth-child(1)', text: ['Artikel kann nicht gekauft werden'], }, ], @@ -32,7 +32,343 @@ export const Alternate: Store = { brand: 'test:brand', model: 'test:model', series: 'test:series', - url: 'https://www.alternate.de/html/product/1662088', + url: 'https://www.alternate.de/html/product/1679012', + }, + { + brand: 'asus', + model: 'tuf', + series: '3060', + url: 'https://www.alternate.de/html/product/1725773', + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1716805', + }, + { + brand: 'evga', + model: 'xc gaming', + series: '3060', + url: 'https://www.alternate.de/html/product/1727976', + }, + { + brand: 'gainward', + model: 'ghost', + series: '3060', + url: 'https://www.alternate.de/html/product/1725925', + }, + { + brand: 'gainward', + model: 'ghost oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1725930', + }, + { + brand: 'gainward', + model: 'pegasus', + series: '3060', + url: 'https://www.alternate.de/html/product/1725933', + }, + { + brand: 'gainward', + model: 'pegasus oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1725932', + }, + { + brand: 'gigabyte', + model: 'aorus elite', + series: '3060', + url: 'https://www.alternate.de/html/product/1734878', + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1723539', + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1723538', + }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1726410', + }, + { + brand: 'inno3d', + model: 'ichill x3 red', + series: '3060', + url: 'https://www.alternate.de/html/product/1717795', + }, + { + brand: 'inno3d', + model: 'twin x2 oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1717794', + }, + { + brand: 'palit', + model: 'dual', + series: '3060', + url: 'https://www.alternate.de/html/product/1725916', + }, + { + brand: 'palit', + model: 'dual oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1725915', + }, + { + brand: 'palit', + model: 'stormx oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1725929', + }, + { + brand: 'zotac', + model: 'amp white', + series: '3060', + url: 'https://www.alternate.de/html/product/1715300', + }, + { + brand: 'zotac', + model: 'twin edge oc', + series: '3060', + url: 'https://www.alternate.de/html/product/1715299', + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1693462', + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1698594', + }, + { + brand: 'gainward', + model: 'ghost', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1698655', + }, + { + brand: 'gainward', + model: 'ghost oc', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1694300', + }, + { + brand: 'gainward', + model: 'phoenix', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1698654', + }, + { + brand: 'gainward', + model: 'phoenix gs', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1694299', + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1694048', + }, + { + brand: 'inno3d', + model: 'ichill x3 red', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1696931', + }, + { + brand: 'inno3d', + model: 'twin x2', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1709206', + }, + { + brand: 'inno3d', + model: 'twin x2 oc', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1696932', + }, + { + brand: 'msi', + model: 'gaming x', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1714488', + }, + { + brand: 'palit', + model: 'dual', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1698653', + }, + { + brand: 'palit', + model: 'dual oc', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1694308', + }, + { + brand: 'palit', + model: 'gaming pro', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1698650', + }, + { + brand: 'palit', + model: 'gaming pro oc', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1694305', + }, + { + brand: 'zotac', + model: 'twin edge oc', + series: '3060ti', + url: 'https://www.alternate.de/html/product/1694335', + }, + { + brand: 'asus', + model: 'dual oc', + series: '3070', + url: 'https://www.alternate.de/html/product/1677326', + }, + { + brand: 'asus', + model: 'strix', + series: '3070', + url: 'https://www.alternate.de/html/product/1677327', + }, + { + brand: 'asus', + model: 'strix oc', + series: '3070', + url: 'https://www.alternate.de/html/product/1677330', + }, + { + brand: 'asus', + model: 'tuf', + series: '3070', + url: 'https://www.alternate.de/html/product/1679872', + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3070', + url: 'https://www.alternate.de/html/product/1687863', + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3070', + url: 'https://www.alternate.de/html/product/1687861', + }, + { + brand: 'gainward', + model: 'phantom', + series: '3070', + url: 'https://www.alternate.de/html/product/1684579', + }, + { + brand: 'gainward', + model: 'phantom gs', + series: '3070', + url: 'https://www.alternate.de/html/product/1684582', + }, + { + brand: 'gainward', + model: 'phoenix', + series: '3070', + url: 'https://www.alternate.de/html/product/1684578', + }, + { + brand: 'gainward', + model: 'phoenix gs', + series: '3070', + url: 'https://www.alternate.de/html/product/1680777', + }, + { + brand: 'gigabyte', + model: 'aorus master', + series: '3070', + url: 'https://www.alternate.de/html/product/1688810', + }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3070', + url: 'https://www.alternate.de/html/product/1688819', + }, + { + brand: 'inno3d', + model: 'ichill x3', + series: '3070', + url: 'https://www.alternate.de/html/product/1681756', + }, + { + brand: 'inno3d', + model: 'ichill x4', + series: '3070', + url: 'https://www.alternate.de/html/product/1681759', + }, + { + brand: 'inno3d', + model: 'twin x2', + series: '3070', + url: 'https://www.alternate.de/html/product/1681760', + }, + { + brand: 'inno3d', + model: 'twin x2 oc', + series: '3070', + url: 'https://www.alternate.de/html/product/1681768', + }, + { + brand: 'palit', + model: 'gaming pro', + series: '3070', + url: 'https://www.alternate.de/html/product/1684572', + }, + { + brand: 'palit', + model: 'gaming pro oc', + series: '3070', + url: 'https://www.alternate.de/html/product/1684564', + }, + { + brand: 'palit', + model: 'gamerock', + series: '3070', + url: 'https://www.alternate.de/html/product/1684571', + }, + { + brand: 'palit', + model: 'gamerock oc', + series: '3070', + url: 'https://www.alternate.de/html/product/1684570', + }, + { + brand: 'zotac', + model: 'amp holo', + series: '3070', + url: 'https://www.alternate.de/html/product/1702466', + }, + { + brand: 'zotac', + model: 'twin edge oc', + series: '3070', + url: 'https://www.alternate.de/html/product/1679097', }, { brand: 'asus', @@ -40,12 +376,24 @@ export const Alternate: Store = { series: '3080', url: 'https://www.alternate.de/html/product/1672868', }, + { + brand: 'asus', + model: 'strix white', + series: '3080', + url: 'https://www.alternate.de/html/product/1699867', + }, { brand: 'asus', model: 'strix oc', series: '3080', url: 'https://www.alternate.de/html/product/1672867', }, + { + brand: 'asus', + model: 'strix oc white', + series: '3080', + url: 'https://www.alternate.de/html/product/1699868', + }, { brand: 'asus', model: 'tuf', @@ -88,12 +436,24 @@ export const Alternate: Store = { series: '3080', url: 'https://www.alternate.de/html/product/1674164', }, + { + brand: 'gainward', + model: 'phantom', + series: '3080', + url: 'https://www.alternate.de/html/product/1713332', + }, { brand: 'gainward', model: 'phantom gs', series: '3080', url: 'https://www.alternate.de/html/product/1688597', }, + { + brand: 'gainward', + model: 'phoenix', + series: '3080', + url: 'https://www.alternate.de/html/product/1673443', + }, { brand: 'gainward', model: 'phoenix gs', @@ -102,15 +462,21 @@ export const Alternate: Store = { }, { brand: 'gigabyte', - model: 'aorus master', + model: 'aorus xtreme', series: '3080', url: 'https://www.alternate.de/html/product/1680168', }, { brand: 'gigabyte', - model: 'aorus xtreme', + model: 'aorus xtreme waterforce wb', series: '3080', - url: 'https://www.alternate.de/html/product/1680168', + url: 'https://www.alternate.de/html/product/1694051', + }, + { + brand: 'gigabyte', + model: 'eagle', + series: '3080', + url: 'https://www.alternate.de/html/product/1692001', }, { brand: 'gigabyte', @@ -130,6 +496,12 @@ export const Alternate: Store = { series: '3080', url: 'https://www.alternate.de/html/product/1681134', }, + { + brand: 'inno3d', + model: 'ichill frostbite', + series: '3080', + url: 'https://www.alternate.de/html/product/1693867', + }, { brand: 'inno3d', model: 'ichill x3', @@ -160,12 +532,24 @@ export const Alternate: Store = { series: '3080', url: 'https://www.alternate.de/html/product/1672345', }, + { + brand: 'palit', + model: 'gamerock', + series: '3080', + url: 'https://www.alternate.de/html/product/1688679', + }, { brand: 'palit', model: 'gamerock oc', series: '3080', url: 'https://www.alternate.de/html/product/1688594', }, + { + brand: 'palit', + model: 'gaming pro', + series: '3080', + url: 'https://www.alternate.de/html/product/1673437', + }, { brand: 'palit', model: 'gaming pro oc', @@ -208,6 +592,12 @@ export const Alternate: Store = { series: '3090', url: 'https://www.alternate.de/html/product/1672872', }, + { + brand: 'asus', + model: 'strix oc white', + series: '3090', + url: 'https://www.alternate.de/html/product/1701891', + }, { brand: 'asus', model: 'tuf', @@ -250,12 +640,42 @@ export const Alternate: Store = { series: '3090', url: 'https://www.alternate.de/html/product/1673529', }, + { + brand: 'evga', + model: 'xc3 ultra hybrid', + series: '3090', + url: 'https://www.alternate.de/html/product/1703237', + }, + { + brand: 'gainward', + model: 'phantom', + series: '3090', + url: 'https://www.alternate.de/html/product/1688769', + }, + { + brand: 'gainward', + model: 'phantom gs', + series: '3090', + url: 'https://www.alternate.de/html/product/1688598', + }, + { + brand: 'gainward', + model: 'phoenix', + series: '3090', + url: 'https://www.alternate.de/html/product/1673441', + }, { brand: 'gainward', model: 'phoenix gs', series: '3090', url: 'https://www.alternate.de/html/product/1673440', }, + { + brand: 'gigabyte', + model: 'aorus master', + series: '3090', + url: 'https://www.alternate.de/html/product/1687793', + }, { brand: 'gigabyte', model: 'aorus xtreme', @@ -264,9 +684,15 @@ export const Alternate: Store = { }, { brand: 'gigabyte', - model: 'aorus master', + model: 'aorus xtreme waterforce', series: '3090', - url: 'https://www.alternate.de/html/product/1687793', + url: 'https://www.alternate.de/html/product/1694043', + }, + { + brand: 'gigabyte', + model: 'aorus xtreme waterforce wb', + series: '3090', + url: 'https://www.alternate.de/html/product/1694045', }, { brand: 'gigabyte', @@ -286,12 +712,24 @@ export const Alternate: Store = { series: '3090', url: 'https://www.alternate.de/html/product/1687703', }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3090', + url: 'https://www.alternate.de/html/product/1691159', + }, { brand: 'inno3d', model: 'gaming x3', series: '3090', url: 'https://www.alternate.de/html/product/1673131', }, + { + brand: 'inno3d', + model: 'ichill frostbite', + series: '3090', + url: 'https://www.alternate.de/html/product/1693868', + }, { brand: 'inno3d', model: 'ichill x3', @@ -304,30 +742,60 @@ export const Alternate: Store = { series: '3090', url: 'https://www.alternate.de/html/product/1673129', }, + { + brand: 'palit', + model: 'gamerock oc', + series: '3090', + url: 'https://www.alternate.de/html/product/1688672', + }, { brand: 'msi', model: 'gaming x trio', series: '3090', url: 'https://www.alternate.de/html/product/1672341', }, + { + brand: 'msi', + model: 'suprim x', + series: '3090', + url: 'https://www.alternate.de/html/product/1689857', + }, { brand: 'msi', model: 'ventus 3x oc', series: '3090', url: 'https://www.alternate.de/html/product/1672346', }, + { + brand: 'palit', + model: 'gaming pro', + series: '3090', + url: 'https://www.alternate.de/html/product/1673432', + }, { brand: 'palit', model: 'gaming pro oc', series: '3090', url: 'https://www.alternate.de/html/product/1673434', }, + { + brand: 'palit', + model: 'gamerock', + series: '3090', + url: 'https://www.alternate.de/html/product/1688678', + }, { brand: 'zotac', model: 'trinity', series: '3090', url: 'https://www.alternate.de/html/product/1672611', }, + { + brand: 'zotac', + model: 'trinity oc', + series: '3090', + url: 'https://www.alternate.de/html/product/1712450', + }, { brand: 'amd', model: '5600x', @@ -353,34 +821,52 @@ export const Alternate: Store = { url: 'https://www.alternate.de/html/product/1685584', }, { - brand: 'sony', - model: 'ps5 console', - series: 'sonyps5c', - url: 'https://www.alternate.de/html/product/1651220', + brand: 'gigabyte', + model: 'gaming oc', + series: 'rx6800', + url: 'https://www.alternate.de/html/product/1697045', }, { - brand: 'sony', - model: 'ps5 digital', - series: 'sonyps5de', - url: 'https://www.alternate.de/html/product/1651221', + brand: 'msi', + model: 'gaming x trio', + series: 'rx6800', + url: 'https://www.alternate.de/html/product/1702966', + }, + { + brand: 'sapphire', + model: 'nitro+ oc', + series: 'rx6800', + url: 'https://www.alternate.de/html/product/1696483', + }, + { + brand: 'sapphire', + model: 'pulse oc', + series: 'rx6800', + url: 'https://www.alternate.de/html/product/1702008', }, { brand: 'xfx', model: 'merc', - series: 'rx6800xt', - url: 'https://www.alternate.de/html/product/1698792', + series: 'rx6800', + url: 'https://www.alternate.de/html/product/1698793', }, { - brand: 'sapphire', - model: 'nitro oc se', + brand: 'xfx', + model: 'qick', + series: 'rx6800', + url: 'https://www.alternate.de/html/product/1716091', + }, + { + brand: 'asrock', + model: 'phantom gaming', series: 'rx6800xt', - url: 'https://www.alternate.de/html/product/1696478', + url: 'https://www.alternate.de/html/product/1705279', }, { - brand: 'sapphire', - model: 'nitro oc', + brand: 'asrock', + model: 'taichi x oc', series: 'rx6800xt', - url: 'https://www.alternate.de/html/product/1696482', + url: 'https://www.alternate.de/html/product/1704005', }, { brand: 'asus', @@ -388,35 +874,107 @@ export const Alternate: Store = { series: 'rx6800xt', url: 'https://www.alternate.de/html/product/1695392', }, + { + brand: 'asus', + model: 'tuf oc', + series: 'rx6800xt', + url: 'https://www.alternate.de/html/product/1696417', + }, + { + brand: 'gigabyte', + model: 'aorus master', + series: 'rx6800xt', + url: 'https://www.alternate.de/html/product/1705712', + }, + { + brand: 'gigabyte', + model: 'aorus master type-c', + series: 'rx6800xt', + url: 'https://www.alternate.de/html/product/1705710', + }, { brand: 'gigabyte', model: 'gaming oc', series: 'rx6800xt', url: 'https://www.alternate.de/html/product/1697044', }, + { + brand: 'msi', + model: 'gaming x trio', + series: 'rx6800xt', + url: 'https://www.alternate.de/html/product/1702969', + }, + { + brand: 'sapphire', + model: 'nitro oc', + series: 'rx6800xt', + url: 'https://www.alternate.de/html/product/1696482', + }, + { + brand: 'sapphire', + model: 'nitro+ oc se', + series: 'rx6800xt', + url: 'https://www.alternate.de/html/product/1696478', + }, + { + brand: 'xfx', + model: 'merc', + series: 'rx6800xt', + url: 'https://www.alternate.de/html/product/1698792', + }, + { + brand: 'xfx', + model: 'merc core', + series: 'rx6800xt', + url: 'https://www.alternate.de/html/product/1716084', + }, { brand: 'asus', model: 'tuf oc', series: 'rx6900xt', url: 'https://www.alternate.de/html/product/1702773', }, + { + brand: 'gigabyte', + model: 'aorus master', + series: 'rx6900xt', + url: 'https://www.alternate.de/html/product/1723388', + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: 'rx6900xt', + url: 'https://www.alternate.de/html/product/1713711', + }, { brand: 'msi', model: 'amd reference', series: 'rx6900xt', url: 'https://www.alternate.de/html/product/1700508', }, + { + brand: 'msi', + model: 'gaming x trio', + series: 'rx6900xt', + url: 'https://www.alternate.de/html/product/1712555', + }, + { + brand: 'sapphire', + model: 'nitro+ oc', + series: 'rx6900xt', + url: 'https://www.alternate.de/html/product/1704994', + }, { brand: 'xfx', model: 'merc', series: 'rx6900xt', - url: 'https://www.alternate.de/html/product/1704614', + url: 'https://www.alternate.de/html/product/1713052', }, { - brand: 'microsoft', - model: 'xbox series x', - series: 'xboxsx', - url: 'https://www.alternate.de/html/product/1675115', + brand: 'xfx', + model: 'merc ultra', + series: 'rx6900xt', + url: 'https://www.alternate.de/html/product/1704614', }, { brand: 'microsoft', @@ -424,12 +982,24 @@ export const Alternate: Store = { series: 'xboxss', url: 'https://www.alternate.de/html/product/1675117', }, + { + brand: 'microsoft', + model: 'xbox series x', + series: 'xboxsx', + url: 'https://www.alternate.de/html/product/1675115', + }, { brand: 'sony', model: 'ps5 console', series: 'sonyps5c', url: 'https://www.alternate.de/html/product/1651220', }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5de', + url: 'https://www.alternate.de/html/product/1651221', + }, ], name: 'alternate', }; diff --git a/src/store/model/store.ts b/src/store/model/store.ts index 19612497bd..073a9114f9 100644 --- a/src/store/model/store.ts +++ b/src/store/model/store.ts @@ -73,6 +73,7 @@ export type Model = | 'amp extreme holo' | 'amp holo' | 'amp white' + | 'aorus elite' | 'aorus master' | 'aorus master type-c' | 'aorus xtreme' @@ -107,6 +108,7 @@ export type Model = | 'gaming x trio' | 'gaming x' | 'gaming x3' + | 'ghost' | 'ghost oc' | 'suprim x' | 'suprim' @@ -114,6 +116,7 @@ export type Model = | 'hurricane' | 'ichill x2' | 'ichill x3' + | 'ichill x3 red' | 'ichill x4' | 'ichill frostbite' | 'igame advanced' @@ -122,10 +125,18 @@ export type Model = | 'igame vulcan oc' | 'ko oc' | 'ko' + | 'merc' + | 'merc core' + | 'merc ultra' | 'nitro+' | 'nitro+ se' + | 'nitro+ oc' + | 'nitro+ oc se' | 'nitro oc se' | 'nitro oc' + | 'pegasus' + | 'pegasus oc' + | 'phantom' | 'phantom gaming' | 'phantom gs' | 'phoenix gs oc' @@ -134,18 +145,20 @@ export type Model = | 'ps5 console' | 'ps5 digital' | 'pulse' + | 'pulse oc' | 'red devil' | 'red dragon' | 'sg oc' | 'sg' - | 'merc' | 'single fan' + | 'stormx oc' | 'strix lc' | 'strix oc' | 'strix' | 'strix oc white' | 'strix white' | 'taichi' + | 'taichi x oc' | 'trinity oc' | 'trinity' | 'tuf oc' @@ -174,7 +187,8 @@ export type Model = | 'xlr8 epic x' | 'xlr8 gaming' | 'xlr8 revel' - | 'xlr8 uprising'; + | 'xlr8 uprising' + | 'qick'; export type Link = { brand: Brand;