Skip to content

Commit

Permalink
fix: add amazon-nl, captcha amazon-de, add ftw3 newegg (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
geman220 committed Sep 25, 2020
1 parent 349f55d commit a2983eb
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env-example
Expand Up @@ -9,7 +9,7 @@ EMAIL_USERNAME=""
EMAIL_PASSWORD=""
HEADLESS=""
IN_STOCK_WAIT_TIME=""
LOG_LEVEL=""
#LOG_LEVEL=""
MICROCENTER_LOCATION=""
OPEN_BROWSER=""
PAGE_TIMEOUT=""
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -123,6 +123,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| Amazon | `amazon`|
| Amazon (CA) | `amazon-ca`|
| Amazon (DE) | `amazon-de`|
| Amazon (NL) | `amazon-nl`|
| ASUS | `asus` |
| B&H | `bandh`|
| Best Buy | `bestbuy`|
Expand Down
2 changes: 1 addition & 1 deletion src/store/model/amazon-de.ts
Expand Up @@ -4,7 +4,7 @@ export const AmazonDe: Store = {
labels: {
captcha: {
container: 'body',
text: ['geben sie die unten angezeigten zeichen ein']
text: ['geben sie die unten angezeigten zeichen ein', 'geben sie die zeichen unten ein']
},
inStock: {
container: '#desktop_buybox',
Expand Down
35 changes: 35 additions & 0 deletions src/store/model/amazon-nl.ts
@@ -0,0 +1,35 @@
import {Store} from './store';

export const AmazonNl: Store = {
labels: {
captcha: {
container: 'body',
text: ['voer de karakters in die u hieronder ziet']
},
inStock: {
container: '#desktop_buybox',
text: ['in winkelwagen plaatsen']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.amazon.com/dp/B07MQ36Z6L'
},
{
brand: 'msi',
model: 'ventus',
series: '3080',
url: 'https://www.amazon.nl/3080-VENTUS-3X-10G-OC/dp/B08HM4M621'
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url: 'https://www.amazon.nl/3080-GAMING-TRIO-10G-grafische/dp/B08HM4V2DH'
}
],
name: 'amazon-nl'
};
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -2,6 +2,7 @@ import {Adorama} from './adorama';
import {Amazon} from './amazon';
import {AmazonCa} from './amazon-ca';
import {AmazonDe} from './amazon-de';
import {AmazonNl} from './amazon-nl';
import {Asus} from './asus';
import {BAndH} from './bandh';
import {BestBuy} from './bestbuy';
Expand All @@ -24,6 +25,7 @@ const masterList = new Map([
[Amazon.name, Amazon],
[AmazonCa.name, AmazonCa],
[AmazonDe.name, AmazonDe],
[AmazonNl.name, AmazonNl],
[Asus.name, Asus],
[BAndH.name, BAndH],
[BestBuy.name, BestBuy],
Expand Down
14 changes: 14 additions & 0 deletions src/store/model/newegg.ts
Expand Up @@ -25,6 +25,20 @@ export const Newegg: Store = {
series: '3080',
url: 'https://www.newegg.com/asus-geforce-rtx-3080-tuf-rtx3080-10g-gaming/p/N82E16814126453'
},
{
brand: 'evga',
cartUrl: 'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487518',
model: 'ftw3 ultra',
series: '3080',
url: 'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3897-kr/p/N82E16814487518'
},
{
brand: 'evga',
cartUrl: 'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487519',
model: 'ftw3',
series: '3080',
url: 'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3895-kr/p/N82E16814487519'
},
{
brand: 'evga',
cartUrl: 'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487522',
Expand Down

0 comments on commit a2983eb

Please sign in to comment.