feat(store): add adorama (#104)

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
bmalaski
2020-09-20 12:14:56 -04:00
committed by GitHub
parent e819e46116
commit 5b91065043
3 changed files with 73 additions and 6 deletions
+7 -6
View File
@@ -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
@@ -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`|
+63
View File
@@ -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
View File
@@ -1,3 +1,5 @@
import {Adorama} from './adorama';
import {Amazon} from './amazon';
import {AmazonCa} from './amazon-ca';
import {Asus} from './asus';
@@ -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],