Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(store): add adorama #104

Merged
merged 5 commits into from
Sep 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
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** |
jef marked this conversation as resolved.
Show resolved Hide resolved
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **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`|
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😅 Thanks!

| B&H | `bandh`|
| EVGA | `evga`|
| Micro Center | `microcenter`|
Expand Down
63 changes: 63 additions & 0 deletions src/store/model/adorama.ts
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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