diff --git a/docs/reference/filter.md b/docs/reference/filter.md index ae4e6bb21a..da3092637b 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -40,6 +40,7 @@ Used with the `STORES` variable. |---|---|---| | AComPC | DE | `acompc` | | Adorama | US | `adorama`| +| Akinformatica | IT | `akinformatica`| | Alternate | DE | `alternate`| | Alternate | NL | `alternate-nl`| | Amazon | US | `amazon`| @@ -71,6 +72,7 @@ Used with the `STORES` variable. | Best Buy | CA | `bestbuy-ca`| | Box | UK | `box`| | BPCTech | AU | `bpctech`| +| BPM-Power | IT | `bpm-power`| | CanadaComputers | CA | `canadacomputers` | | Caseking | DE | `caseking`| | CCL | UK | `ccl`| @@ -83,6 +85,7 @@ Used with the `STORES` variable. | CPL | AU | `cpl`| | Currys | UK | `currys`| | Cyberport | DE | `cyberport` | +| Drako | IT | `drako` | | EBGames | CA | `ebgames`| | eBuyer | UK | `ebuyer`| | El Corte Inglés | ES | `elcorteingles`| @@ -99,6 +102,8 @@ Used with the `STORES` variable. | Gamestop | US | `gamestop`| | Gamestop | DE | `gamestop-de`| | Gamestop | IE | `gamestop-ie`| +| Gamestop | IT | `gamestop-it`| +| Hardware Planet | IT | | `hardware-planet` | | Harvey Normans | IE | | `harveynorman-ie` | | John Lewis | UK | `johnlewis`| | Kabum | BR | `kabum`| @@ -117,6 +122,7 @@ Used with the `STORES` variable. | Nvidia | US | `nvidia`| | Nvidia API | | `nvidia-api`| | Office Depot | US | `officedepot`| +| Ollo | IT | `ollo`| | Otto | DE | `otto`| | Overclockers | UK | `overclockers`| | PCCG | AU | `pccg`| diff --git a/src/store/model/akinformatica.ts b/src/store/model/akinformatica.ts new file mode 100644 index 0000000000..188766d9d8 --- /dev/null +++ b/src/store/model/akinformatica.ts @@ -0,0 +1,329 @@ +import {Store} from './store'; + +export const Akinformatica: Store = { + currency: '€', + labels: { + inStock: [ + { + container: '#dispOnLine .available', + text: ['Disponibile Online'] + }, + { + container: '#addCartLinkButton', + text: ['Aggiungi al carrello'] + } + ], + maxPrice: { + container: '#PrezzoListinoIvatoLabel', + euroFormat: true + }, + outOfStock: [ + { + container: '#dispOnLine .available .disabled', + text: ['Disponibile Online'] + }, + { + container: '#preOrderPanel > label', + text: ['PRE-ORDINI APERTI'] + } + ] + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://shop.akinformatica.it/catalogo/adata-xpg/mouse-gaming-adata-xpg-primer---wired--rgb_4710273777139.aspx' + }, + { + brand: 'palit', + model: 'gaming pro', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-palit-geforce-rtx3070-gamingpro-oc-8gb-gddr6x_4710562242089.aspx' + }, + { + brand: 'zotac', + model: 'twin edge', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-zotac-gaming-geforce-rtx-3070-twin-edge-8g_4895173622472.aspx' + }, + { + brand: 'msi', + model: 'ventus 2x oc', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-msi-geforce-rtx-3070-ventus-2x-oc-8g_4719072763091.aspx' + }, + { + brand: 'asus', + model: 'dual', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-asus-geforce-rtx-3070-dual-o8g-8g_4718017927864.aspx' + }, + { + brand: 'gigabyte', + model: 'eagle', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-gigabyte-geforce-rtx-3070-eagle-8gb_4719331307738.aspx' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-msi-geforce-rtx-3070-ventus-3x-oc-8g_4719072763084.aspx' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-msi-geforce-rtx-3070-gaming-x-trio-8g_4719072763053.aspx' + }, + { + brand: 'zotac', + model: 'twin edge oc', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-zotac-gaming-geforce-rtx-3070-twin-edge-oc-8g_4895173622489.aspx' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-gigabyte-geforce-rtx-3070-eagle-oc-8gb_4719331307677.aspx' + }, + { + brand: 'asus', + model: 'tuf', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-asus-geforce-rtx-3070-tuf-o8g-8g_4718017948678.aspx' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-gigabyte-geforce-rtx-3070-gaming-oc-8gb_4719331307691.aspx' + }, + { + brand: 'asus', + model: 'strix oc', + series: '3070', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-asus-geforce-rtx-3070-rog-strix-gaming-oc-8g_4718017938150.aspx' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-msi-geforce-rtx-3090-gaming-x-trio-24g_4719072762506.aspx' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-zotac-geforce-rtx-3090-trinity-24g_4895173622427.aspx' + }, + { + brand: 'msi', + model: 'suprim x', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-msi-geforce-rtx-3090-suprim-x-24g_4719072762490.aspx' + }, + { + brand: 'pny', + model: 'xlr8 epic x', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-pny-geforce-rtx-3090-epic-x-xlr8-gaming-24g_0751492639536.aspx' + }, + { + brand: 'msi', + model: 'ventus 3x', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-msi-geforce-rtx-3090-ventus-3x-24g-oc--consegne-da-marzo_4719072762476.aspx' + }, + { + brand: 'palit', + model: 'gamerock', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-palit-geforce-rtx3090-gamerock-24gb-gddr6x_4710562242041.aspx' + }, + { + brand: 'palit', + model: 'gaming pro', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-palit-geforce-rtx3090-gamingpro-24gb-gddr6x_4710562241969.aspx' + }, + { + brand: 'palit', + model: 'gamerock oc', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-palit-geforce-rtx3090-gamerock-oc-24gb-gddr6x_4710562242065.aspx' + }, + { + brand: 'palit', + model: 'gaming pro oc', + series: '3090', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-palit-geforce-rtx3090-gamingpro-oc-24gb-gddr6x_4710562242027.aspx' + }, + { + brand: 'amd', + model: '5600x', + series: 'ryzen5600', + url: + 'https://shop.akinformatica.it/catalogo/amd-am4/cpu-amd-ryzen-5-5600x---6-core--max-boost-4-60-ghz--socket-am4_0730143312042.aspx' + }, + { + brand: 'amd', + model: '5800x', + series: 'ryzen5800', + url: + 'https://shop.akinformatica.it/catalogo/amd-am4/cpu-amd-ryzen-7-5800x---8-core--max-boost-4-70-ghz--socket-am4_0730143312714.aspx' + }, + { + brand: 'amd', + model: '5900x', + series: 'ryzen5900', + url: + 'https://shop.akinformatica.it/catalogo/amd-am4/cpu-amd-ryzen-9-5950x---16-core--max-boost-4-90-ghz--socket-am4_0730143312745.aspx' + }, + { + brand: 'sapphire', + model: 'nitro+ se', + series: 'rx6800', + url: + 'https://shop.akinformatica.it/catalogo/amd-rx-6800-6800-xt/vga-sapphire-radeon-rx-6800-xt-nitro--oc-se-16g_4895106289901.aspx' + }, + { + brand: 'sapphire', + model: 'nitro+', + series: 'rx6800', + url: + 'https://shop.akinformatica.it/catalogo/amd-rx-6800-6800-xt/vga-sapphire-radeon-rx-6800-xt-nitro--16g_4895106289925.aspx' + }, + { + brand: 'sapphire', + model: 'amd reference', + series: 'rx6900xt', + url: + 'https://shop.akinformatica.it/catalogo/amd-rx-6900-xt/vga-sapphire-radeon-rx-6900-xt-16g_4895106290136.aspx' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-msi-geforce-rtx-3080-ventus-3x-10g-oc--consegne-da-marzo_4719072762520.aspx' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-zotac-geforce-rtx-3080-trinity-10g_4895173622403.aspx' + }, + { + brand: 'asus', + model: 'strix oc', + series: '3080', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-asus-geforce-rtx-3080-rog-strix-gaming-oc-10g_4718017928786.aspx' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-msi-geforce-rtx-3080-gaming-x-trio-10g_4719072762544.aspx' + }, + { + brand: 'asus', + model: 'strix', + series: '3080', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-asus-geforce-rtx-3080-rog-strix-gaming-10g_4718017909150.aspx' + }, + { + brand: 'pny', + model: 'xlr8 epic x', + series: '3080', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-pny-geforce-rtx-3080-epic-x-xlr8-gaming-10g_0751492639567.aspx' + }, + { + brand: 'pny', + model: 'xlr8 epic x', + series: '3080', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-pny-geforce-rtx-3080-epic-x-xlr8-gaming-10g_0751492639550.aspx' + }, + { + brand: 'palit', + model: 'gaming pro oc', + series: '3080', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-palit-geforce-rtx3080-gamingpro-oc-10gb-gddr6x_4710562242003.aspx' + }, + { + brand: 'msi', + model: 'ventus 2x oc', + series: '3060ti', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-msi-geforce-rtx-3060ti-ventus-2x-oc-8g-_4719072763121.aspx' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3060ti', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-msi-geforce-rtx-3060ti-gaming-x-trio-8g-_4719072763145.aspx' + }, + { + brand: 'palit', + model: 'dual oc', + series: '3060ti', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-palit-geforce-rtx-3060ti-dual-oc-8g-gddr6-256bit-3xdp--hdmi-_4710562242287.aspx' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3060ti', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-msi-geforce-rtx-3060ti-ventus-3x-oc-8g_4719072763152.aspx' + }, + { + brand: 'zotac', + model: 'twin edge', + series: '3060ti', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-zotac-gaming-geforce-rtx-3060ti-twin-edge-8g_4895173622502.aspx' + }, + { + brand: 'zotac', + model: 'twin edge oc', + series: '3060ti', + url: + 'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-zotac-gaming-geforce-rtx-3060ti-twin-edge-oc-8g_4895173622519.aspx' + } + ], + name: 'akinformatica', + successStatusCodes: [[0, 399], 404] +}; diff --git a/src/store/model/bpmpower.ts b/src/store/model/bpmpower.ts new file mode 100644 index 0000000000..b57056fa17 --- /dev/null +++ b/src/store/model/bpmpower.ts @@ -0,0 +1,43 @@ +import {Store} from './store'; + +export const BpmPower: Store = { + currency: '€', + labels: { + inStock: { + container: '.dispoSiProd >span', + text: ['Disponibile'] + }, + maxPrice: { + container: 'p.prezzoScheda:nth-child(1)', + euroFormat: true + }, + outOfStock: { + container: '.dispoSiProd >span', + text: ['Esaurito'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.bpm-power.com/it/online/audio/auricolari-audio/apple-airpods-2-2019-b1492931' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3070', + url: + 'https://www.bpm-power.com/it/online/componenti-pc/schede-video/nvidia-msi-rtx-3070-b1710142' + }, + { + brand: 'amd', + model: '5800x', + series: 'ryzen5800', + url: + 'https://www.bpm-power.com/it/online/componenti-pc/processori/cpu-amd-ryzen-7-b1710075' + } + ], + name: 'bpm-power' +}; diff --git a/src/store/model/drako.ts b/src/store/model/drako.ts new file mode 100644 index 0000000000..e6eea4a0df --- /dev/null +++ b/src/store/model/drako.ts @@ -0,0 +1,274 @@ +import {Store} from './store'; + +export const Drako: Store = { + currency: '€', + labels: { + inStock: [ + { + container: + '#bottom_left_panel > div:nth-child(9) > div:nth-child(2)', + text: ['ordinabile'] + } + ], + maxPrice: { + container: '.price', + euroFormat: true + } + }, + links: [ + { + brand: 'test:brand', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=22674&action=add_product', + model: 'test:model', + series: 'test:series', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=22674' + }, + { + brand: 'kfa2', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24303&action=add_product', + model: 'sg', + series: '3090', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24303' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24286&action=add_product', + model: 'gaming oc', + series: '3090', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24286' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24722&action=add_product', + model: 'strix oc', + series: '3090', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24722' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24288&action=add_product', + model: 'strix', + series: '3090', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24288' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24291&action=add_product', + model: 'tuf oc', + series: '3090', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24291' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24680&action=add_product', + model: 'ekwb', + series: '3090', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24680' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24290&action=add_product', + model: 'tuf', + series: '3090', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24290' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24666&action=add_product', + model: 'ekwb', + series: '3080', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24666' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24289&action=add_product', + model: 'strix oc', + series: '3080', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24289' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24723&action=add_product', + model: 'strix white', + series: '3080', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24723' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24287&action=add_product', + model: 'strix', + series: '3080', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24287' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24293&action=add_product', + model: 'tuf oc', + series: '3080', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24293' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24292&action=add_product', + model: 'tuf', + series: '3080', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24292' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24420&action=add_product', + model: 'dual', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24420' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24422&action=add_product', + model: 'strix', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24422' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24721&action=add_product', + model: 'tuf', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24721' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24421&action=add_product', + model: 'tuf oc', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24421' + }, + { + brand: 'gigabyte', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24426&action=add_product', + model: 'aorus master', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24426' + }, + { + brand: 'gigabyte', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24423&action=add_product', + model: 'eagle oc', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24423' + }, + { + brand: 'gigabyte', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24425&action=add_product', + model: 'gaming oc', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24425' + }, + { + brand: 'gigabyte', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24424&action=add_product', + model: 'eagle', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24424' + }, + { + brand: 'kfa2', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24292&action=add_product', + model: 'sg', + series: '3070', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24475' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24604&action=add_product', + model: 'strix', + series: 'rx6800', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24604' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24605&action=add_product', + model: 'tuf', + series: 'rx6800', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24605' + }, + { + brand: 'asus', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24606&action=add_product', + model: 'tuf oc', + series: 'rx6800', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24606' + }, + { + brand: 'gigabyte', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24606&action=add_product', + model: 'amd reference', + series: 'rx6800', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24606' + }, + { + brand: 'amd', + cartUrl: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24456&action=add_product', + model: '5600x', + series: 'ryzen5600', + url: + 'http://www.drako.it/drako_catalog/product_info.php?products_id=24456' + } + ], + name: 'drako', + successStatusCodes: [[0, 399], 404] +}; diff --git a/src/store/model/gamestop-it.ts b/src/store/model/gamestop-it.ts new file mode 100644 index 0000000000..97c96b4bfc --- /dev/null +++ b/src/store/model/gamestop-it.ts @@ -0,0 +1,34 @@ +import {Store} from './store'; + +export const GamestopIT: Store = { + currency: '€', + labels: { + inStock: { + container: '#btnAddToCart', + text: ['Aggiungi al Carrello'] + }, + maxPrice: { + container: '.buySection .prodPriceCont', + euroFormat: true + }, + outOfStock: { + container: '.megaButton .buyDisabled', + text: ['Esaurito'] + } + }, + links: [ + { + brand: 'microsoft', + model: 'xbox series x', + series: 'xboxsx', + url: 'https://www.gamestop.it/XboxSeriesX/Games/132509' + }, + { + brand: 'microsoft', + model: 'xbox series s', + series: 'xboxss', + url: 'https://www.gamestop.it/XboxSeriesX/Games/128220' + } + ], + name: 'gamestop-it' +}; diff --git a/src/store/model/hardware-planet.ts b/src/store/model/hardware-planet.ts new file mode 100644 index 0000000000..aeb935cd6b --- /dev/null +++ b/src/store/model/hardware-planet.ts @@ -0,0 +1,77 @@ +import {Store} from './store'; +import {getProductLinksBuilder} from './helpers/card'; + +export const HardwarePlanet: Store = { + backoffStatusCodes: [404, 429, 503], + currency: '€', + labels: { + inStock: { + container: '.add >button.add-to-cart', + text: ['Aggiungi al carrello'] + }, + maxPrice: { + container: '.product-price', + euroFormat: true + }, + outOfStock: { + container: '#product-availability', + text: ['Non disponibile'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.hardware-planet.it/mouse/2929-vendita-mouse-logitech-mouse-m185-optical-swift-grey-910-002238-5099206027282.html' + }, + { + brand: 'amd', + model: '5600x', + series: 'ryzen5600', + url: + 'https://www.hardware-planet.it/cpu-socket-am4/74745-vendita-cpu-socket-am4-amd-cpu-am4-ryzen-5-5600x-box-wraith-stealth-cooler-100-100000065box.html' + }, + { + brand: 'amd', + model: '5800x', + series: 'ryzen5800', + url: + 'https://www.hardware-planet.it/cpu-socket-am4/74421-vendita-cpu-socket-am4-amd-cpu-am4-ryzen-7-5800x-4700ghz-wof-box-100-100000063wof-730143312714.html/' + }, + { + brand: 'amd', + model: '5950x', + series: 'ryzen5950', + url: + 'https://www.hardware-planet.it/cpu-socket-am4/74422-vendita-cpu-socket-am4-amd-cpu-am4-ryzen-9-5950x-4900-ghz-wof-box-100-100000059wof-730143312745.html' + } + ], + linksBuilder: { + builder: getProductLinksBuilder({ + productsSelector: '.js-product-miniature-wrapper', + sitePrefix: 'https://www.hardware-planet.it', + titleSelector: '.product-title > a' + }), + urls: [ + { + series: '3060ti', + url: + 'https://www.hardware-planet.it/module/iqitsearch/searchiqit?s=rtx+3060' + }, + { + series: '3070', + url: + 'https://www.hardware-planet.it/module/iqitsearch/searchiqit?s=rtx+3070' + }, + { + series: '3080', + url: + 'https://www.hardware-planet.it/module/iqitsearch/searchiqit?s=rtx+3080' + } + ] + }, + name: 'hardware-planet', + waitUntil: 'domcontentloaded' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 2379682c9f..a05c9cca3b 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -1,6 +1,7 @@ import {config, defaultStoreData} from '../../config'; import {AComPC} from './acompc'; import {Adorama} from './adorama'; +import {Akinformatica} from './akinformatica'; import {Alternate} from './alternate'; import {AlternateNL} from './alternate-nl'; import {Amazon} from './amazon'; @@ -32,6 +33,7 @@ import {BestBuy} from './bestbuy'; import {BestBuyCa} from './bestbuy-ca'; import {Box} from './box'; import {Bpctech} from './bpctech'; +import {BpmPower} from './bpmpower'; import {CanadaComputers} from './canadacomputers'; import {Caseking} from './caseking'; import {Ccl} from './ccl'; @@ -44,6 +46,7 @@ import {Corsair} from './corsair'; import {Cpl} from './cpl'; import {Currys} from './currys'; import {Cyberport} from './cyberport'; +import {Drako} from './drako'; import {EbGames} from './ebgames'; import {Ebuyer} from './ebuyer'; import {Elcorteingles} from './elcorteingles'; @@ -60,6 +63,8 @@ import {Game} from './game'; import {Gamestop} from './gamestop'; import {GamestopDE} from './gamestop-de'; import {GamestopIE} from './gamestop-ie'; +import {GamestopIT} from './gamestop-it'; +import {HardwarePlanet} from './hardware-planet'; import {HarveyNormanIE} from './harveynorman-ie'; import {JohnLewis} from './johnlewis'; import {Kabum} from './kabum'; @@ -78,6 +83,7 @@ import {Novatech} from './novatech'; import {Nvidia} from './nvidia'; import {NvidiaApi} from './nvidia-api'; import {OfficeDepot} from './officedepot'; +import {Ollo} from './ollo'; import {Otto} from './otto'; import {Overclockers} from './overclockers'; import {PCComponentes} from './pccomponentes'; @@ -114,6 +120,7 @@ import {logger} from '../../logger'; export const storeList = new Map([ [AComPC.name, AComPC], [Adorama.name, Adorama], + [Akinformatica.name, Akinformatica], [Alternate.name, Alternate], [AlternateNL.name, AlternateNL], [Amazon.name, Amazon], @@ -145,6 +152,7 @@ export const storeList = new Map([ [BestBuyCa.name, BestBuyCa], [Box.name, Box], [Bpctech.name, Bpctech], + [BpmPower.name, BpmPower], [Caseking.name, Caseking], [CanadaComputers.name, CanadaComputers], [Ccl.name, Ccl], @@ -157,6 +165,7 @@ export const storeList = new Map([ [Cpl.name, Cpl], [Currys.name, Currys], [Cyberport.name, Cyberport], + [Drako.name, Drako], [EbGames.name, EbGames], [Ebuyer.name, Ebuyer], [Elcorteingles.name, Elcorteingles], @@ -173,6 +182,8 @@ export const storeList = new Map([ [Gamestop.name, Gamestop], [GamestopDE.name, GamestopDE], [GamestopIE.name, GamestopIE], + [GamestopIT.name, GamestopIT], + [HardwarePlanet.name, HardwarePlanet], [HarveyNormanIE.name, HarveyNormanIE], [JohnLewis.name, JohnLewis], [Kabum.name, Kabum], @@ -191,6 +202,7 @@ export const storeList = new Map([ [Nvidia.name, Nvidia], [NvidiaApi.name, NvidiaApi], [OfficeDepot.name, OfficeDepot], + [Ollo.name, Ollo], [Otto.name, Otto], [Overclockers.name, Overclockers], [Pccg.name, Pccg], diff --git a/src/store/model/ollo.ts b/src/store/model/ollo.ts new file mode 100644 index 0000000000..4368008914 --- /dev/null +++ b/src/store/model/ollo.ts @@ -0,0 +1,166 @@ +import {Store} from './store'; + +export const Ollo: Store = { + currency: '€', + labels: { + inStock: [ + { + container: + 'div.product-availability:nth-child(2) > div:nth-child(1) > span:nth-child(1)', + text: ['Disponibile'] + } + ], + maxPrice: { + container: '.main-product-price', + euroFormat: true + }, + outOfStock: { + container: + 'div.product-availability:nth-child(2) > div:nth-child(1) > span:nth-child(1)', + text: ['Attualmente non disponibile', 'In Pre-ordine'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.ollo.it/apple-airpods-2nd-generation-bluetooth-stereofonico-bianco/p_759688' + }, + { + brand: 'gainward', + model: 'phoenix', + series: '3080', + url: + 'https://www.ollo.it/palit-ned3080019ia-132aa-nvidia-geforce-rtx-3080-10-gb-gddr6x/p_805886' + }, + { + brand: 'palit', + model: 'gaming pro', + series: '3080', + url: + 'https://www.ollo.it/gainward-geforce-rtx-3080-phoenix-nvidia-10-gb-gddr6x/p_813151' + }, + { + brand: 'palit', + model: 'gamerock oc', + series: '3090', + url: + 'https://www.ollo.it/palit-rtx3090-game-rock-oc-nvidia-geforce-rtx-3090-24-gb-gddr6x/p_813155' + }, + { + brand: 'zotac', + model: 'trinity oc', + series: '3080', + url: + 'https://www.ollo.it/zotac-zt-a30800j-10p-nvidia-geforce-rtx-3080-10-gb-gddr6x/p_811027' + }, + { + brand: 'pny', + model: 'xlr8 gaming', + series: '3080', + url: + 'https://www.ollo.it/pny-vcg308010tfxmpb-nvidia-geforce-rtx-3080-10-gb-gddr6x/p_805892' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: + 'https://www.ollo.it/zotac-geforce-rtx-3080-trinity-10gb-gddr6x/p_805602' + }, + { + brand: 'pny', + model: 'xlr8 uprising', + series: '3090', + url: + 'https://www.ollo.it/pny-geforce-rtx-3090-24gb-xlr8-gaming-uprising-epic-x-rgb-triple-fan-edition/p_811356' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3090', + url: + 'https://www.ollo.it/zotac-geforce-rtx-3090-trinity-24gb-gddr6x/p_809667' + }, + { + brand: 'msi', + model: 'ventus 2x oc', + series: '3060ti', + url: + 'https://www.ollo.it/msi-geforce-rtx-3060-ti-ventus-2x-oc/p_810399' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3090', + url: + 'https://www.ollo.it/msi-nvidia-geforce-rtx-3090-ventus-3x-24g-oc/p_803924' + }, + { + brand: 'asus', + model: 'tuf', + series: '3090', + url: + 'https://www.ollo.it/asus-nvidia-geforce-rtx-3090-24g-tuf-rtx3090-o24g-gaming/p_805889' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3060ti', + url: + 'https://www.ollo.it/msi-geforce-rtx-3060-ti-gaming-x-trio/p_810397' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3080', + url: + 'https://www.ollo.it/asus-tuf-gaming-nvidia-geforce-rtx-3080-oc-10gb-gddr6x/p_805890' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3090', + url: + 'https://www.ollo.it/msi-nvidia-geforce-rtx-3090-gaming-x-trio-24g/p_803923' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3060ti', + url: + 'https://www.ollo.it/msi-geforce-rtx-3060-ti-ventus-3x-oc/p_810398' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: + 'https://www.ollo.it/msi-nvidia-geforce-rtx-3080-ventus-3x-10g-oc/p_803926' + }, + { + brand: 'asus', + model: 'tuf', + series: '3080', + url: + 'https://www.ollo.it/asus-geforce-rtx-3080-10g-tuf-rtx3080-10g-gaming/p_805601' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: + 'https://www.ollo.it/msi-geforce-rtx-3080-gaming-x-trio-10g/p_803925' + }, + { + brand: 'asus', + model: 'strix oc', + series: '3080', + url: + 'https://www.ollo.it/asus-rog-strix-rtx-3080-o10g-gaming-geforce-rtx-3080-oc-10gb-gddr6x/p_805698' + } + ], + name: 'ollo' +}; diff --git a/src/store/model/store.ts b/src/store/model/store.ts index ec0174ad66..9085f6cd83 100644 --- a/src/store/model/store.ts +++ b/src/store/model/store.ts @@ -89,6 +89,7 @@ export type Model = | 'ftw3 black' | 'ftw3 ultra' | 'ftw3 ultra hydro copper' + | 'gamerock' | 'gamerock oc' | 'gaming oc' | 'gaming oc pro'