mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 02:57:34 +00:00
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:
committed by
GitHub
parent
38937f6880
commit
c02241c752
@@ -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`|
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -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'
|
||||
};
|
||||
Reference in New Issue
Block a user