Skip to content

Commit

Permalink
feat(store): add adorama (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
bmalaski and jef committed Sep 20, 2020
1 parent e819e46 commit 5b91065
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Expand Up @@ -28,11 +28,11 @@ The purpose of this bot is to get an Nvidia card. It tries multiple things to do

> :point_right: You may get false positives from time to time, so I apologize for that. The library currently waits for all calls to be completed before parsing, but sometimes this can have unknown behavior. Patience is a virtue :)
| | **Amazon** | **ASUS** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **3070**| | | | | | | | |
| **3080** | `` | `` | `` | `` | `` | `` | `` | `` |
| **3090** | | | | | | | | |
| | **Adorama** | **Amazon** | **ASUS** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **3070**| | | | | | | | | |
| **3080** | `` | `` | `` | `` | `` | `` | `` | `` | `` |
| **3090** | | | | | | | | | |

## Installation and prerequisites

Expand Down Expand Up @@ -88,10 +88,11 @@ Here is a list of variables that you can use to customize your newly copied `.en

| **Stores** | **Environment variable** |
|:---:|:---:|
| Best Buy | `bestbuy`|
| Adorama | `adorama`|
| Amazon | `amazon`|
| Amazon.ca | `amazon-ca`|
| ASUS | `asus` |
| Best Buy | `bestbuy`|
| B&H | `bandh`|
| EVGA | `evga`|
| Micro Center | `microcenter`|
Expand Down
63 changes: 63 additions & 0 deletions src/store/model/adorama.ts
@@ -0,0 +1,63 @@
import {Store} from './store';

export const Adorama: Store = {
links: [
{
brand: 'pny',
model: 'xlr8',
url: 'https://www.adorama.com/pnv301tfxmpb.html',
oosLabels: ['temporarily not available', 'out of stock'],
captchaLabels: ['please verify you are a human']
},
{
brand: 'msi',
model: 'gaming x trio',
url: 'https://www.adorama.com/msig380gxt1.html',
oosLabels: ['temporarily not available', 'out of stock'],
captchaLabels: ['please verify you are a human']
},
{
brand: 'evga',
model: 'ftw3 ultra',
url: 'https://www.adorama.com/ev10g53897kr.html',
oosLabels: ['temporarily not available', 'out of stock'],
captchaLabels: ['please verify you are a human']
},
{
brand: 'evga',
model: 'xc3 ultra',
url: 'https://www.adorama.com/ev10g53885kr.html',
oosLabels: ['temporarily not available', 'out of stock'],
captchaLabels: ['please verify you are a human']
},
{
brand: 'evga',
model: 'ftw3',
url: 'https://www.adorama.com/ev10g53895kr.html',
oosLabels: ['temporarily not available', 'out of stock'],
captchaLabels: ['please verify you are a human']
},
{
brand: 'evga',
model: 'xc3',
url: 'https://www.adorama.com/ev10g53883kr.html',
oosLabels: ['temporarily not available', 'out of stock'],
captchaLabels: ['please verify you are a human']
},
{
brand: 'evga',
model: 'xc3 black',
url: 'https://www.adorama.com/ev10g53881kr.html',
oosLabels: ['temporarily not available', 'out of stock'],
captchaLabels: ['please verify you are a human']
},
{
brand: 'msi',
model: 'ventus 3x oc',
url: 'https://www.adorama.com/msig38v3x10c.html',
oosLabels: ['temporarily not available', 'out of stock'],
captchaLabels: ['please verify you are a human']
}
],
name: 'adorama'
};
3 changes: 3 additions & 0 deletions src/store/model/index.ts
@@ -1,3 +1,5 @@

import {Adorama} from './adorama';
import {Amazon} from './amazon';
import {AmazonCa} from './amazon-ca';
import {Asus} from './asus';
Expand All @@ -11,6 +13,7 @@ import {Nvidia} from './nvidia';
import {Store} from './store';

const masterList = new Map([
[Adorama.name, Adorama],
[Amazon.name, Amazon],
[AmazonCa.name, AmazonCa],
[Asus.name, Asus],
Expand Down

0 comments on commit 5b91065

Please sign in to comment.