Skip to content

Commit

Permalink
feat: memoryexpress website support (#717)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3 people committed Nov 9, 2020
1 parent 38937f6 commit c02241c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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`|
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -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],
Expand Down
48 changes: 48 additions & 0 deletions src/store/model/memoryexpress.ts
@@ -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'
};

0 comments on commit c02241c

Please sign in to comment.