feat: memoryexpress website support (#717)

Adding MemoryExpress website in Canada. Only track the online store
stock for now. Might add the stores stock later like microcenter.
Only track Ryzen 5000-series for now because RTX 3000-series is only
available in store backorder.

Co-authored-by: Omelette Du Fromage <lavrenti.rogoff@gmail.com>
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Omelette Du Fromage
2020-11-09 01:18:49 -05:00
committed by GitHub
parent 38937f6880
commit c02241c752
3 changed files with 51 additions and 0 deletions
+1
View File
@@ -160,6 +160,7 @@ environment variables are **optional**._
| EVGA (EU) | `evga-eu`|
| Gamestop | `gamestop`|
| Mediamarkt (DE) | `mediamarkt`|
| MemoryExpress (CA) | `memoryexpress`|
| Micro Center | `microcenter`|
| Mindfactory (DE) | `mindfactory` |
| Newegg | `newegg`|
+2
View File
@@ -31,6 +31,7 @@ import {Evga} from './evga';
import {EvgaEu} from './evga-eu';
import {Gamestop} from './gamestop';
import {Mediamarkt} from './mediamarkt';
import {MemoryExpress} from './memoryexpress';
import {MicroCenter} from './microcenter';
import {Mindfactory} from './mindfactory';
import {Newegg} from './newegg';
@@ -87,6 +88,7 @@ export const storeList = new Map([
[EvgaEu.name, EvgaEu],
[Gamestop.name, Gamestop],
[Mediamarkt.name, Mediamarkt],
[MemoryExpress.name, MemoryExpress],
[MicroCenter.name, MicroCenter],
[Mindfactory.name, Mindfactory],
[Newegg.name, Newegg],
+48
View File
@@ -0,0 +1,48 @@
import {Store} from './store';
export const MemoryExpress: Store = {
labels: {
maxPrice: {
container: '#ProductPricing .GrandTotal.c-capr-pricing__grand-total > div',
euroFormat: false
},
outOfStock: {
container: '.c-capr-inventory-selector__details-online .c-capr-inventory-store__availability',
text: ['Out of Stock']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.memoryexpress.com/Products/MX79473'
},
{
brand: 'amd',
model: '5950x',
series: 'ryzen5950',
url: 'https://www.memoryexpress.com/Products/MX00114450'
},
{
brand: 'amd',
model: '5900x',
series: 'ryzen5900',
url: 'https://www.memoryexpress.com/Products/MX00114451'
},
{
brand: 'amd',
model: '5800x',
series: 'ryzen5800',
url: 'https://www.memoryexpress.com/Products/MX00114452'
},
{
brand: 'amd',
model: '5600x',
series: 'ryzen5600',
url: 'https://www.memoryexpress.com/Products/MX00114455'
}
],
name: 'memoryexpress',
waitUntil: 'domcontentloaded'
};