From df5ba68e94dc150e5eecd716a0f47d6b4c398317 Mon Sep 17 00:00:00 2001 From: Wulfre <6633817+Wulfre@users.noreply.github.com> Date: Sun, 20 Sep 2020 08:36:19 -0400 Subject: [PATCH] chore(store): normalize model names (#96) Co-authored-by: Jef LeCompte --- src/store/model/amazon-ca.ts | 20 +++++------ src/store/model/amazon.ts | 49 ++++++++++++++++++++++---- src/store/model/bandh.ts | 18 ++++------ src/store/model/bestbuy.ts | 8 ++--- src/store/model/evga.ts | 4 +-- src/store/model/microcenter.ts | 8 ++--- src/store/model/newegg.ts | 64 +++++++++++++++++++++++++++++++--- 7 files changed, 128 insertions(+), 43 deletions(-) diff --git a/src/store/model/amazon-ca.ts b/src/store/model/amazon-ca.ts index de1f0f7..a59119e 100644 --- a/src/store/model/amazon-ca.ts +++ b/src/store/model/amazon-ca.ts @@ -4,56 +4,56 @@ export const AmazonCa: Store = { links: [ { brand: 'msi', - model: 'gaming trio', + model: 'gaming x trio', url: 'https://www.amazon.ca/MSI-GeForce-RTX-3080-10G/dp/B08HR7SV3M?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'evga', - model: 'ftw3gaming', + model: 'ftw3', url: 'https://www.amazon.ca/EVGA-GeForce-Technology-Backplate-10G-P5-3895-KR/dp/B08HR3DPGW?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'evga', - model: 'ftw3ultra', + model: 'ftw3 ultra', url: 'https://www.amazon.ca/EVGA-GeForce-Technology-Backplate-10G-P5-3897-KR/dp/B08HR3Y5GQ?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'evga', - model: 'xc3ultra', + model: 'xc3 ultra', url: 'https://www.amazon.ca/EVGA-GeForce-Cooling-Backplate-10G-P5-3885-KR/dp/B08HR55YB5?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'evga', - model: 'xc3gaming', + model: 'xc3', url: 'https://www.amazon.ca/EVGA-GeForce-Cooling-Backplate-10G-P5-3883-KR/dp/B08HR4RJ3Q?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'evga', - model: 'xc3black', + model: 'xc3 black', url: 'https://www.amazon.ca/EVGA-GeForce-Gaming-Cooling-10G-P5-3881-KR/dp/B08HR6FMF3?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'gigabyte', - model: 'windforce', + model: 'gaming oc', url: 'https://www.amazon.ca/GIGABYTE-GeForce-Graphics-WINDFORCE-GV-N3080GAMING/dp/B08HJTH61J?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'gigabyte', - model: 'windforce eagle', + model: 'eagle oc', url: 'https://www.amazon.ca/GIGABYTE-GeForce-Graphics-WINDFORCE-GV-N3080EAGLE/dp/B08HJS2JLJ?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] @@ -67,14 +67,14 @@ export const AmazonCa: Store = { }, { brand: 'asus', - model: 'tufoc', + model: 'tuf oc', url: 'https://www.amazon.ca/Asus-90YV0FB1-M0AM00-TUF-RTX3080-O10G-GAMING/dp/B08HH5WF97?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'msi', - model: 'ventus', + model: 'ventus 3x oc', url: 'https://www.amazon.ca/MSI-GeForce-RTX-3080-10G/dp/B08HR5SXPS?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] diff --git a/src/store/model/amazon.ts b/src/store/model/amazon.ts index 30ccb13..1279940 100644 --- a/src/store/model/amazon.ts +++ b/src/store/model/amazon.ts @@ -11,52 +11,87 @@ export const Amazon: Store = { }, { brand: 'msi', - model: 'gaming trio', + model: 'gaming x trio', url: 'https://www.amazon.com/MSI-GeForce-RTX-3080-10G/dp/B08HR7SV3M?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'evga', - model: 'ftw3', + model: 'ftw3 ultra', url: 'https://www.amazon.com/EVGA-10G-P5-3897-KR-GeForce-Technology-Backplate/dp/B08HR3Y5GQ?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'evga', - model: 'xc3', + model: 'xc3 ultra', url: 'https://www.amazon.com/EVGA-10G-P5-3885-KR-GeForce-Cooling-Backplate/dp/B08HR55YB5?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, + { + brand: 'evga', + model: 'ftw3', + url: 'https://www.amazon.com/EVGA-10G-P5-3895-KR-GeForce-Technology-Backplate/dp/B08HR3DPGW?ref_=ast_sto_dp', + oosLabels: ['currently unavailable'], + captchaLabels: ['enter the characters you see below'] + }, + { + brand: 'evga', + model: 'xc3', + url: 'https://www.amazon.com/EVGA-10G-P5-3883-KR-GeForce-Cooling-Backplate/dp/B08HR4RJ3Q?ref_=ast_sto_dp', + oosLabels: ['currently unavailable'], + captchaLabels: ['enter the characters you see below'] + }, + { + brand: 'evga', + model: 'xc3 black', + url: 'https://www.amazon.com/EVGA-10G-P5-3881-KR-GeForce-GAMING-Cooling/dp/B08HR6FMF3?ref_=ast_sto_dp', + oosLabels: ['currently unavailable'], + captchaLabels: ['enter the characters you see below'] + }, { brand: 'gigabyte', - model: 'windforce', + model: 'gaming oc', url: 'https://www.amazon.com/GIGABYTE-GeForce-Graphics-WINDFORCE-GV-N3080GAMING/dp/B08HJTH61J?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'gigabyte', - model: 'windforce eagle', + model: 'eagle oc', url: 'https://www.amazon.com/GIGABYTE-GeForce-Graphics-WINDFORCE-GV-N3080EAGLE/dp/B08HJS2JLJ?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, { brand: 'asus', - model: 'tuf', + model: 'tuf oc', url: 'https://www.amazon.com/ASUS-Graphics-DisplayPort-Military-Grade-Certification/dp/B08HH5WF97?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] }, + { + brand: 'asus', + model: 'tuf', + url: 'https://www.amazon.com/ASUS-Graphics-DisplayPort-Military-Grade-Certification/dp/B08HHDP9DW?ref_=ast_sto_dp', + oosLabels: ['currently unavailable'], + captchaLabels: ['enter the characters you see below'] + }, { brand: 'msi', - model: 'ventus', + model: 'ventus 3x oc', url: 'https://www.amazon.com/MSI-GeForce-RTX-3080-10G/dp/B08HR5SXPS?ref_=ast_sto_dp', oosLabels: ['currently unavailable'], captchaLabels: ['enter the characters you see below'] + }, + { + brand: 'zotac', + model: 'trinity', + url: 'https://www.amazon.com/ZOTAC-Graphics-IceStorm-Advanced-ZT-A30800D-10P/dp/B08HJNKT3P?ref_=ast_sto_dp', + oosLabels: ['currently unavailable'], + captchaLabels: ['enter the characters you see below'] } ], name: 'amazon' diff --git a/src/store/model/bandh.ts b/src/store/model/bandh.ts index 63439dc..d1106fd 100644 --- a/src/store/model/bandh.ts +++ b/src/store/model/bandh.ts @@ -2,12 +2,6 @@ import {Store} from './store'; export const BAndH: Store = { links: [ - { - brand: 'gigabyte', - model: 'black', - url: 'https://www.bhphotovideo.com/c/product/1593333-REG/gigabyte_gv_n3080gaming_oc_10gd_geforce_rtx_3080_gaming.html?SID=s1600391647213ytuua52439', - oosLabels: ['notify when available'] - }, { brand: 'asus', model: 'tuf', @@ -16,7 +10,7 @@ export const BAndH: Store = { }, { brand: 'gigabyte', - model: 'gaming-oc', + model: 'gaming oc', url: 'https://www.bhphotovideo.com/c/product/1593333-REG/gigabyte_gv_n3080gaming_oc_10gd_geforce_rtx_3080_gaming.html', oosLabels: ['notify when available'] }, @@ -28,31 +22,31 @@ export const BAndH: Store = { }, { brand: 'asus', - model: 'tuf-oc', + model: 'tuf oc', url: 'https://www.bhphotovideo.com/c/product/1593650-REG/asus_tuf_rtx3080_o10g_gaming_tuf_gaming_geforce_rtx.html', oosLabels: ['notify when available'] }, { brand: 'msi', - model: 'xtrio', + model: 'gaming x trio', url: 'https://www.bhphotovideo.com/c/product/1593996-REG/msi_g3080gxt10_geforce_rtx_3080_gaming.html', oosLabels: ['notify when available'] }, { brand: 'msi', - model: 'ventus', + model: 'ventus 3x oc', url: 'https://www.bhphotovideo.com/c/product/1593997-REG/msi_g3080v3x10c_geforce_rtx_3080_ventus.html', oosLabels: ['notify when available'] }, { brand: 'msi', - model: 'TRIO2', + model: 'gaming x trio - duplicate', url: 'https://www.bhphotovideo.com/c/product/1593645-REG/msi_geforce_rtx_3080_gaming.html', oosLabels: ['notify when available'] }, { brand: 'msi', - model: 'ventus-oc', + model: 'ventus 3x oc - duplicate', url: 'https://www.bhphotovideo.com/c/product/1593646-REG/msi_geforce_rtx_3080_ventus.html', oosLabels: ['notify when available'] } diff --git a/src/store/model/bestbuy.ts b/src/store/model/bestbuy.ts index 0be8eeb..e530f34 100644 --- a/src/store/model/bestbuy.ts +++ b/src/store/model/bestbuy.ts @@ -26,28 +26,28 @@ export const BestBuy: Store = { { cartUrl: 'https://api.bestbuy.com/click/-/6430620/cart', brand: 'gigabyte', - model: 'black', + model: 'gaming oc', url: 'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3080-10g-gddr6x-pci-express-4-0-graphics-card-black/6430620.p?acampID=0&cmp=RMX&loc=Hatch&ref=198&skuId=6430620', oosLabels: ['sold out', 'coming soon'] }, { cartUrl: 'https://api.bestbuy.com/click/-/6430621/cart', brand: 'gigabyte', - model: 'eagle', + model: 'eagle oc', url: 'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3080-10g-gddr6x-pci-express-4-0-graphics-card-black/6430621.p?skuId=6430621', oosLabels: ['sold out', 'coming soon'] }, { cartUrl: 'https://api.bestbuy.com/click/-/6430175/cart', brand: 'msi', - model: 'ventus 3x', + model: 'ventus 3x oc', url: 'https://www.bestbuy.com/site/msi-geforce-rtx-3080-ventus-3x-10g-oc-bv-gddr6x-pci-express-4-0-graphic-card-black-silver/6430175.p?skuId=6430175', oosLabels: ['sold out', 'coming soon'] }, { cartUrl: 'https://api.bestbuy.com/click/-/6429440/cart', brand: 'nvidia', - model: 'founder edition', + model: 'founders edition', url: 'https://www.bestbuy.com/site/nvidia-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card-titanium-and-black/6429440.p?skuId=6429440', oosLabels: ['sold out', 'coming soon'] } diff --git a/src/store/model/evga.ts b/src/store/model/evga.ts index bcc248d..9d6c31d 100644 --- a/src/store/model/evga.ts +++ b/src/store/model/evga.ts @@ -16,13 +16,13 @@ export const Evga: Store = { }, { brand: 'evga', - model: 'xc3 gaming', + model: 'xc3', url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3883-KR', oosLabels: ['out of stock'] }, { brand: 'evga', - model: 'xc3 ultra gaming', + model: 'xc3 ultra', url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3885-KR', oosLabels: ['out of stock'] } diff --git a/src/store/model/microcenter.ts b/src/store/model/microcenter.ts index 8a27583..f925ad7 100644 --- a/src/store/model/microcenter.ts +++ b/src/store/model/microcenter.ts @@ -4,19 +4,19 @@ export const MicroCenter: Store = { links: [ { brand: 'evga', - model: 'xc3 ultra gaming', + model: 'xc3 ultra', url: 'https://www.microcenter.com/product/628344/evga-geforce-rtx-3080-xc3-ultra-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card', oosLabels: ['sold out'] }, { brand: 'msi', - model: 'ventus 3x overclocked', + model: 'ventus 3x', url: 'https://www.microcenter.com/product/628331/msi-geforce-rtx-3080-ventus-3x-overclocked-triple-fan-10gb-gddr6x-pcie-40-graphics-card', oosLabels: ['sold out'] }, { brand: 'asus', - model: 'tuf gaming', + model: 'tuf', url: 'https://www.microcenter.com/product/628303/asus-geforce-rtx-3080-tuf-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card', oosLabels: ['sold out'] }, @@ -34,7 +34,7 @@ export const MicroCenter: Store = { }, { brand: 'zotac', - model: 'trinity overclocked', + model: 'trinity', url: 'https://www.microcenter.com/product/628607/zotac-geforce-rtx-3080-trinity-overclocked-triple-fan-10gb-gddr6x-pcie-40-graphics-card', oosLabels: ['sold out'] } diff --git a/src/store/model/newegg.ts b/src/store/model/newegg.ts index f7b2ae1..4dfae82 100644 --- a/src/store/model/newegg.ts +++ b/src/store/model/newegg.ts @@ -11,31 +11,87 @@ export const NewEgg: Store = { }, { brand: 'evga', - model: 'black gaming', + model: 'xc3 black', url: 'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3881-kr/p/N82E16814487522', oosLabels: ['auto notify', 'out of stock'], captchaLabels: ['are you a human?'] }, { brand: 'evga', - model: 'argb led icx3', + model: 'xc3', url: 'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3883-kr/p/N82E16814487521', oosLabels: ['auto notify', 'out of stock'], captchaLabels: ['are you a human?'] }, { brand: 'evga', - model: 'xc3 ultra gaming', + model: 'xc3 ultra', url: 'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3885-kr/p/N82E16814487520', oosLabels: ['auto notify', 'out of stock'], captchaLabels: ['are you a human?'] }, { brand: 'msi', - model: 'ventus', + model: 'ventus 3x', url: 'https://www.newegg.com/msi-geforce-rtx-3080-rtx-3080-ventus-3x-10g/p/N82E16814137600', oosLabels: ['auto notify', 'out of stock'], captchaLabels: ['are you a human?'] + }, + { + brand: 'msi', + model: 'ventus 3x oc', + url: 'https://www.newegg.com/msi-geforce-rtx-3080-rtx-3080-ventus-3x-10g-oc/p/N82E16814137598', + oosLabels: ['auto notify', 'out of stock'], + captchaLabels: ['are you a human?'] + }, + { + brand: 'msi', + model: 'gaming x trio', + url: 'https://www.newegg.com/msi-geforce-rtx-3080-rtx-3080-gaming-x-trio-10g/p/N82E16814137597', + oosLabels: ['auto notify', 'out of stock'], + captchaLabels: ['are you a human?'] + }, + { + brand: 'gigabyte', + model: 'gaming oc', + url: 'https://www.newegg.com/gigabyte-geforce-rtx-3080-gv-n3080gaming-oc-10gd/p/N82E16814932329', + oosLabels: ['auto notify', 'out of stock'], + captchaLabels: ['are you a human?'] + }, + { + brand: 'gigabyte', + model: 'eagle oc', + url: 'https://www.newegg.com/gigabyte-geforce-rtx-3080-gv-n3080eagle-oc-10gd/p/N82E16814932330', + oosLabels: ['auto notify', 'out of stock'], + captchaLabels: ['are you a human?'] + }, + { + brand: 'zotac', + model: 'trinity', + url: 'https://www.newegg.com/zotac-geforce-rtx-3080-zt-a30800d-10p/p/N82E16814500502', + oosLabels: ['auto notify', 'out of stock'], + captchaLabels: ['are you a human?'] + }, + { + brand: 'asus', + model: 'rog strix', + url: 'https://www.newegg.com/asus-geforce-rtx-3080-rog-strix-rtx3080-o10g-gaming/p/N82E16814126457', + oosLabels: ['auto notify', 'out of stock'], + captchaLabels: ['are you a human?'] + }, + { + brand: 'asus', + model: 'tuf oc', + url: 'https://www.newegg.com/asus-geforce-rtx-3080-tuf-rtx3080-o10g-gaming/p/N82E16814126452', + oosLabels: ['auto notify', 'out of stock'], + captchaLabels: ['are you a human?'] + }, + { + brand: 'zotac', + model: 'trinity oc', + url: 'https://www.newegg.com/zotac-geforce-rtx-3080-zt-t30800j-10p/p/N82E16814500504', + oosLabels: ['auto notify', 'out of stock'], + captchaLabels: ['are you a human?'] } ], name: 'newegg'