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

fix: add amazon-nl, captcha amazon-de, add ftw3 newegg #293

Merged
merged 10 commits into from
Sep 25, 2020
2 changes: 1 addition & 1 deletion .env-example
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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