Compare commits

...

290 Commits

Author SHA1 Message Date
github-actions[bot] 89e3709440 chore: release 3.5.0 (#1745) 2021-03-02 12:52:24 -05:00
MrToshio a7be09d56e feat(store): add ldlc (FR) (#2037)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2021-03-02 12:50:01 -05:00
Jef LeCompte e3d09803ad fix: remove package-lock.json
This fixes strange bug with downloading Chromium
on node 15.
2021-03-02 12:33:09 -05:00
Jef LeCompte 40c4a8c1b9 ci: bump node-version 2021-03-02 12:14:38 -05:00
Jef LeCompte eee669b1b3 feat: use node 15, use package version (#2066) 2021-03-02 12:02:35 -05:00
Jef LeCompte 9e8c83622d ci: fix pr lint trigger 2021-03-02 11:59:01 -05:00
Jef LeCompte f583029bf3 refactor: make link labels > store labels 2021-03-02 11:53:53 -05:00
Jef LeCompte 8ee6815c0f fix(amazon-uk): add label for ps5
Fixes #2036
2021-03-02 11:52:23 -05:00
SalamUchiha 6934d5b31c chore(newegg): add 3060 links (#2039) 2021-03-02 11:11:01 -05:00
Patrick Huy cfe292eb3e chore(store): add 3060 for mediamarkt, saturn and notebooksbilliger (#2041) 2021-02-27 16:34:20 -05:00
Afonso Jorge Ramos a3c726b45c feat(store): add novoatalho (PT) (#2043) 2021-02-27 16:33:39 -05:00
Afonso Jorge Ramos 11e14655e1 chore(globaldata): add 3060, 3060ti, amd (#2044) 2021-02-27 16:32:50 -05:00
Jef LeCompte b3a88f6608 chore: bump dependencies 2021-02-26 10:50:24 -05:00
Jef LeCompte 659edcd421 ci: rerun pr lint if synced 2021-02-26 10:47:57 -05:00
Joel Calado 5effbae882 feat(store): add globaldata (#2004) 2021-02-26 10:46:40 -05:00
JW6677 4d1e1ba3e7 chore(store): add 3060 products (#2029) 2021-02-26 10:02:55 -05:00
Guillaume Malette 69e005905a docs: add information around 3060 (#2031) 2021-02-26 10:01:24 -05:00
Michael Pietersen cb7d215c3a chore: best buy & microcenter 3060 product links (#2033) 2021-02-26 10:00:10 -05:00
Guillaume Malette 1288f9271a chore(canadacomputers): add 3060 card (#2028) 2021-02-25 15:13:00 -05:00
Jef LeCompte e527e43e85 ci: update pr lint 2021-02-25 15:10:54 -05:00
Jef LeCompte 7cf60f84e1 ci: update pr lint secret 2021-02-25 15:06:48 -05:00
Jef LeCompte fbb024a9ce docs: add terraform reference
Ref: 488bc544c9
2021-02-23 12:33:37 -05:00
Joel Calado d422c7d0d3 chore(pcdiga): add 3090, 3070, 3060ti (#2003) 2021-02-23 12:26:06 -05:00
Jef LeCompte 488bc544c9 docs: add terraform to mkdocs
Ref: #1987
2021-02-23 12:14:41 -05:00
dan sweeting d341ef72aa feat: add terraform infra as code for AWS fargate (#1987) 2021-02-23 12:10:33 -05:00
dependabot[bot] 347f49b2d4 chore(deps-dev): bump webpack from 5.23.0 to 5.24.0 (#2009)
Bumps [webpack](https://github.com/webpack/webpack) from 5.23.0 to 5.24.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.23.0...v5.24.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-23 12:02:39 -05:00
Jef LeCompte 1c113efc42 ci: change pr linter 2021-02-23 11:44:49 -05:00
Jef LeCompte 03539ca666 chore: remove old problem matcher 2021-02-23 10:05:43 -05:00
Jef LeCompte 42808b836c docs: update badge 2021-02-23 10:03:06 -05:00
Jef LeCompte e8ee59fae1 ci: run ci on main 2021-02-23 10:00:44 -05:00
dependabot[bot] 4324706f32 chore(deps): bump amannn/action-semantic-pull-request from v3.3.0 to v3.4.0 (#1965)
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from v3.3.0 to v3.4.0.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v3.3.0...db6e259b93f286e3416eef27aaae88935d16cf2e)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-22 00:42:16 -05:00
dependabot[bot] b6030b3cc3 chore(deps-dev): bump webpack from 5.22.0 to 5.23.0 (#1993)
Bumps [webpack](https://github.com/webpack/webpack) from 5.22.0 to 5.23.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.22.0...v5.23.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-22 00:42:10 -05:00
dependabot[bot] 557ff511e3 chore(deps): bump node from 14.15.4-alpine3.12 to 15.9.0-alpine3.12 (#1992)
Bumps node from 14.15.4-alpine3.12 to 15.9.0-alpine3.12.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-22 00:41:59 -05:00
dependabot[bot] 9e3922e0d1 chore(deps-dev): bump @types/node from 14.14.28 to 14.14.31 (#2005)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.28 to 14.14.31.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-22 00:41:51 -05:00
Jef LeCompte 2c3c47b4a9 ci: pin version to major 2021-02-22 00:38:57 -05:00
Jef LeCompte 9d5af9f8f9 docs: fix badge link 2021-02-22 00:18:42 -05:00
Jef LeCompte 07306891d7 docs: update badges 2021-02-22 00:17:41 -05:00
Jef LeCompte 5f81a8a25f ci: fix nightly release 2021-02-21 23:45:10 -05:00
david e6803d4d7c feat(store): add netonnet-no (#1989) 2021-02-20 19:26:18 -05:00
Joel Calado 2501f6b5cc feat(store): add PCDiga.com (#1990) 2021-02-20 19:23:04 -05:00
david 5a5927ba1e feat(store): add Norwegian stores (#1985)
Adds elkjop.no, komplett.no, dustinhome.no, power.no and proshop.no
2021-02-18 09:53:57 -05:00
Jef LeCompte 8d5792bf9e chore: update dependencies
Removed puppeteer types and puppeteer-extra
2021-02-18 09:52:26 -05:00
Nick Baldallo b1ece9edad chore(pccomponentes): add 3090, 3060ti, rx6900xt (#1962) 2021-02-18 09:14:29 -05:00
dependabot[bot] 2cd2991cca chore(deps): bump amannn/action-semantic-pull-request from v3.2.6 to v3.3.0 (#1933)
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from v3.2.6 to v3.3.0.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v3.2.6...3301e0e038fd3af9f257f815119b6bdf371bf2c3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 12:35:20 -05:00
Jef LeCompte c1c9bc49a2 chore: bump dependencies 2021-02-10 15:49:53 -05:00
dependabot[bot] 4acf6e616f chore(deps): bump google-github-actions/release-please-action from v2.16 to v2.17 (#1916)
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from v2.16 to v2.17.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2.16...b7fac390e7d06ee9053c67ce6781c006c8ca3f47)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-10 15:32:02 -05:00
dependabot[bot] af90b1a0a3 chore(deps): bump actions/cache from v2 to v2.1.4 (#1906)
Bumps [actions/cache](https://github.com/actions/cache) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-10 15:30:48 -05:00
TomZanna edb39f8f05 feat(notification): add Streamlabs support (#1872) 2021-02-09 08:31:21 -05:00
Ben Curtis 1009ce6636 feat: add restart time for leaking Chromium in Ubuntu (#1880)
docs: add documentation for RESTART_TIME
2021-02-07 16:05:53 -05:00
Jef LeCompte 2548ca4a74 chore: bump dependencies 2021-02-07 16:02:35 -05:00
Peter J. Milanese c22c960dc1 feat(notification): add simple SmartThings switch activation (#1902)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2021-02-07 15:32:18 -05:00
dependabot[bot] b20bd4a496 chore(deps-dev): bump @types/node from 14.14.22 to 14.14.24 (#1877)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.22 to 14.14.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 19:50:45 -05:00
dependabot[bot] d02b40b5b8 chore(deps-dev): bump webpack from 5.19.0 to 5.20.1 (#1869)
Bumps [webpack](https://github.com/webpack/webpack) from 5.19.0 to 5.20.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.19.0...v5.20.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 19:50:25 -05:00
dependabot[bot] 728f21a62c chore(deps-dev): bump @types/puppeteer from 5.4.2 to 5.4.3 (#1876)
Bumps [@types/puppeteer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/puppeteer) from 5.4.2 to 5.4.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/puppeteer)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 19:49:33 -05:00
dependabot[bot] 0cc4e4c4b2 chore(deps): bump puppeteer-extra-plugin-stealth from 2.6.7 to 2.7.4 (#1878)
Bumps [puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra) from 2.6.7 to 2.7.4.
- [Release notes](https://github.com/berstend/puppeteer-extra/releases)
- [Commits](https://github.com/berstend/puppeteer-extra/compare/puppeteer-extra-plugin-stealth@2.6.7...puppeteer-extra-plugin-stealth@2.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 19:49:06 -05:00
wofnull 0e65f33690 fix(amazon-ca): out of stock check was missing (#1885) 2021-02-04 19:47:43 -05:00
Jason 4455e4ed8d feat(sms): add US Cellular (#1874) 2021-02-04 19:47:09 -05:00
wofnull 2572c8af80 fix(wipoid): corrected 3070 / 3080 links (#1879) 2021-02-04 19:45:42 -05:00
dependabot[bot] 233c4496e2 chore(deps): bump twitch-auth from 4.4.5 to 4.4.7 (#1855)
Bumps [twitch-auth](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch-auth) from 4.4.5 to 4.4.7.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.4.7/packages/twitch-auth)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-03 10:53:36 -05:00
dependabot[bot] 7aa2212115 chore(deps-dev): bump c8 from 7.4.0 to 7.5.0 (#1863)
Bumps [c8](https://github.com/bcoe/c8) from 7.4.0 to 7.5.0.
- [Release notes](https://github.com/bcoe/c8/releases)
- [Changelog](https://github.com/bcoe/c8/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcoe/c8/compare/v7.4.0...v7.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-03 10:52:12 -05:00
Yildirim 4f57df016b fix(nvidia): update inStock text (#1850)
Co-authored-by: ssaddique <ssaddique@axway.com>
2021-02-02 15:25:09 -05:00
wofnull 329318427f fix(amazon-ca): update selector (#1851) 2021-02-02 15:24:42 -05:00
dependabot[bot] 630f46ce47 chore(deps-dev): bump webpack from 5.18.0 to 5.19.0 (#1849)
Bumps [webpack](https://github.com/webpack/webpack) from 5.18.0 to 5.19.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.18.0...v5.19.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 15:24:09 -05:00
dependabot[bot] 1cc63c051c chore(deps): bump dorny/paths-filter from v2.7.0 to v2.8.0 (#1848)
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from v2.7.0 to v2.8.0.
- [Release notes](https://github.com/dorny/paths-filter/releases)
- [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dorny/paths-filter/compare/v2.7.0...7c0f15b688b020e95e00f15c61299b022f08ca95)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 15:23:59 -05:00
dependabot[bot] 127d846fbe chore(deps): bump open from 7.3.1 to 7.4.0 (#1856)
Bumps [open](https://github.com/sindresorhus/open) from 7.3.1 to 7.4.0.
- [Release notes](https://github.com/sindresorhus/open/releases)
- [Commits](https://github.com/sindresorhus/open/compare/v7.3.1...v7.4.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 15:23:33 -05:00
dependabot[bot] 4b8b6feda6 chore(deps): bump google-github-actions/release-please-action from v2.15 to v2.16 (#1857)
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from v2.15 to v2.16.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2.15...61a3f25af95f0c859244635ec47bc92ed9116a21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 15:23:27 -05:00
dependabot[bot] b6d03317ba chore(deps): bump twitch from 4.4.6 to 4.4.7 (#1858)
Bumps [twitch](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch) from 4.4.6 to 4.4.7.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.4.7/packages/twitch)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 15:23:17 -05:00
Ben Curtis 8df4339bdb feat: clean up proxy logging with n/N in each lookup (#1839) 2021-01-31 14:36:58 -05:00
dependabot[bot] bb8c89b775 chore(deps): bump twitch from 4.4.5 to 4.4.6 (#1831)
Bumps [twitch](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch) from 4.4.5 to 4.4.6.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.4.6/packages/twitch)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-29 10:43:13 -05:00
Christian d63685f290 fix(alternate): update URLs (#1814) 2021-01-28 16:46:24 -05:00
wofnull 95b4a153bd fix(web): 404 Error / page not visible (#1825) 2021-01-28 16:44:32 -05:00
dependabot[bot] 4fe0f50941 chore(deps): bump twilio from 3.55.0 to 3.55.1 (#1824)
Bumps [twilio](https://github.com/twilio/twilio-node) from 3.55.0 to 3.55.1.
- [Release notes](https://github.com/twilio/twilio-node/releases)
- [Changelog](https://github.com/twilio/twilio-node/blob/main/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-node/compare/3.55.0...3.55.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-28 16:43:53 -05:00
dependabot[bot] e488ef22fb chore(deps-dev): bump webpack from 5.17.0 to 5.18.0 (#1807)
Bumps [webpack](https://github.com/webpack/webpack) from 5.17.0 to 5.18.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.17.0...v5.18.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-27 10:10:37 -05:00
Yildirim de1427c076 fix(docs): nvidia store changes (#1797)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2021-01-26 08:10:01 -05:00
wofnull 1015358b50 fix(galaxus): update selector (#1730) 2021-01-26 07:21:17 -05:00
dependabot[bot] a2072449d2 chore(deps-dev): bump webpack from 5.16.0 to 5.17.0 (#1793)
Bumps [webpack](https://github.com/webpack/webpack) from 5.16.0 to 5.17.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.16.0...v5.17.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 07:20:37 -05:00
dependabot[bot] 8c17d21dfd chore(deps-dev): bump @types/node from 14.14.21 to 14.14.22 (#1751)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.21 to 14.14.22.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 07:20:24 -05:00
dependabot[bot] 8ac3a3bc37 chore(deps-dev): bump sinon from 9.2.3 to 9.2.4 (#1781)
Bumps [sinon](https://github.com/sinonjs/sinon) from 9.2.3 to 9.2.4.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v9.2.3...v9.2.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 07:20:05 -05:00
dependabot[bot] 8c383235af chore(deps): bump twitch-chat-client from 4.4.0 to 4.4.5 (#1784)
Bumps [twitch-chat-client](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch-chat-client) from 4.4.0 to 4.4.5.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.4.5/packages/twitch-chat-client)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 07:19:51 -05:00
Jef LeCompte ecb27ebf0a chore(config): remove old nvidia config
Ref: 2143b15809
2021-01-26 07:14:51 -05:00
dependabot[bot] 3b204f15ac chore(deps): bump puppeteer-extra-plugin-stealth from 2.6.6 to 2.6.7 (#1794)
Bumps [puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/berstend/puppeteer-extra/releases)
- [Commits](https://github.com/berstend/puppeteer-extra/compare/puppeteer-extra-plugin-stealth@2.6.6...puppeteer-extra-plugin-stealth@2.6.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 07:12:08 -05:00
Yildirim 2143b15809 feat(nvidia): updated store for europe (#1732) 2021-01-26 07:11:20 -05:00
dependabot[bot] f932009c01 chore(deps): bump amannn/action-semantic-pull-request from v3.2.3 to v3.2.6 (#1795)
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from v3.2.3 to v3.2.6.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v3.2.3...81acd1c603cf23bd6f6fbe16be9e882cd25cd4e6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 07:07:31 -05:00
dependabot[bot] a10ae42454 chore(deps): bump twitch-auth from 4.4.0 to 4.4.5 (#1782)
Bumps [twitch-auth](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch-auth) from 4.4.0 to 4.4.5.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.4.5/packages/twitch-auth)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-25 17:26:15 -05:00
dependabot[bot] ba6eccc90a chore(deps): bump twitch from 4.4.0 to 4.4.5 (#1783)
Bumps [twitch](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch) from 4.4.0 to 4.4.5.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.4.5/packages/twitch)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-25 15:40:42 -05:00
Jordan Tucker 9791568cd4 fix(discord): ensure first group in list is notified (#1788)
This fix ensures that the `series` of a `link` is found in
`notifyGroupSeries`. Before this fix, the first key in
`notifyGroupSeries` was excluded.
2021-01-25 15:40:30 -05:00
hifihedgehog ce609fb518 fix(microcenter): properly flag in stock items (#1754) 2021-01-20 12:51:57 -05:00
dependabot[bot] 5f0c656b30 chore(deps): bump amannn/action-semantic-pull-request from v3.1.0 to v3.2.3 (#1750)
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from v3.1.0 to v3.2.3.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v3.1.0...71a74e9d131e8d7c16cd672a42937ac88b1375db)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-20 17:39:23 +00:00
dependabot[bot] 113e92df8b chore(deps-dev): bump webpack from 5.15.0 to 5.16.0 (#1752)
Bumps [webpack](https://github.com/webpack/webpack) from 5.15.0 to 5.16.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.15.0...v5.16.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-20 12:37:52 -05:00
sohaiiil c81282ef9f feat(store): corsair-uk (#1733) 2021-01-19 12:34:12 -05:00
wofnull aec8cfdae2 chore(newegg-sg): add missing 3060ti, 3070, 3080, 3090 cards (#1742) 2021-01-19 12:33:25 -05:00
wofnull 9bf0e30222 chore(newegg): add missing 3060ti, 3070, 3080, 3090 cards (#1741) 2021-01-19 12:31:34 -05:00
wofnull 13f1c3d50c chore(neweggca): add missing 3060ti, 3070, 3080, 3090 cards (#1743) 2021-01-19 12:25:38 -05:00
wofnull 9695e29a02 fix(vuugo): add out of stock check (#1731) 2021-01-18 13:23:05 -05:00
github-actions[bot] 11e64942a0 chore: release 3.4.1 (#1723) 2021-01-17 18:21:25 -05:00
Jef LeCompte c177aedd21 fix(proxy): build proxyList correctly
Also remove unnecessary `all` npm script.
2021-01-17 18:19:06 -05:00
github-actions[bot] b7930b25fd chore: release 3.4.0 (#1719) 2021-01-17 16:08:03 -05:00
Jef LeCompte 05720e519b ci: update verbiage for steps (#1721) 2021-01-17 16:07:06 -05:00
Jef LeCompte 8ece4b6412 ci: update names and steps (#1720) 2021-01-17 15:59:32 -05:00
Jef LeCompte 7997d6d22a ci: fix release-please 2021-01-17 15:35:03 -05:00
github-actions[bot] f474cc6966 chore: release 3.4.0 (#1391) 2021-01-17 15:27:32 -05:00
Jef LeCompte f87053cb02 refactor: use gts instead of xo
feat: add browser opening to test:notification
feat: add c8 and mocha for testing
feat: update Docker and ci
style: update editorconfig
2021-01-17 15:21:53 -05:00
Jef LeCompte dbde7814af chore: clean up and bump node version 2021-01-17 13:44:05 -05:00
wofnull b2ebac36c0 feat(caseking): add 3060ti/3070 cards / add missing 3080/3090 cards (#1715)
* Caseking add Asus 3060ti Models:
https://www.caseking.de/asus-geforce-rtx-3060-ti-rog-strix-o8g-8192-mb-gddr6-gcas-407.html
https://www.caseking.de/asus-geforce-rtx-3060-ti-dual-o8g-8192-mb-gddr6-gcas-410.html
https://www.caseking.de/asus-geforce-rtx-3060-ti-tuf-o8g-8192-mb-gddr6-gcas-412.html
https://www.caseking.de/asus-geforce-rtx-3060-ti-dual-8g-8192-mb-gddr6-gcas-411.html
https://www.caseking.de/asus-geforce-rtx-3060-ti-tuf-8g-8192-mb-gddr6-gcas-408.html
https://www.caseking.de/asus-geforce-rtx-3060-ti-rog-strix-8g-8192-mb-gddr6-gcas-409.html

* Caseking add EVGA 3060ti Moddels
https://www.caseking.de/evga-geforce-rtx-3060-ti-xc-gaming-8192-mb-gddr6-gcev-431.html
https://www.caseking.de/evga-geforce-rtx-3060-ti-ftw3-ultra-gaming-8192-mb-gddr6-gcev-403.html
https://www.caseking.de/evga-geforce-rtx-3060-ti-ftw3-black-gaming-8192-mb-gddr6-gcev-430.html
https://www.caseking.de/evga-geforce-rtx-3060-ti-xc-black-gaming-8192-mb-gddr6-gcev-432.html
https://www.caseking.de/evga-geforce-rtx-3060-ti-ftw3-gaming-8192-mb-gddr6-gcev-429.html

* Caseking add Gigabyte 3060ti Models:
https://www.caseking.de/gigabyte-geforce-rtx-3060-ti-eagle-oc-8g-8192-mb-gddr6-gcgb-349.html
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3060-ti-master-8g-8192-mb-gddr6-gcgb-346.html
https://www.caseking.de/gigabyte-geforce-rtx-3060-ti-gaming-oc-pro-8g-8192-mb-gddr6-gcgb-347.html
https://www.caseking.de/gigabyte-geforce-rtx-3060-ti-gaming-oc-8g-8192-mb-gddr6-gcgb-348.html
https://www.caseking.de/gigabyte-geforce-rtx-3060-ti-eagle-8g-8192-mb-gddr6-gcgb-350.html

* Caseking add Inno3d 3060ti Models:
https://www.caseking.de/inno3d-geforce-rtx-3060-ti-twin-x2-oc-8192-mb-gddr6-gci3-180.html
https://www.caseking.de/inno3d-geforce-rtx-3060-ti-ichill-x3-8192-mb-gddr6-gci3-179.html
https://www.caseking.de/inno3d-geforce-rtx-3060-ti-twin-x2-8192-mb-gddr6-gci3-181.html

* Caseking add MSI 3060ti Models
https://www.caseking.de/msi-geforce-rtx-3060-ti-gaming-x-trio-8192-mb-gddr6-gcmc-255.html
https://www.caseking.de/msi-geforce-rtx-3060-ti-ventus-2x-oc-8192-mb-gddr6-gcmc-246.html
https://www.caseking.de/msi-geforce-rtx-3060-ti-ventus-3x-oc-8192-mb-gddr6-gcmc-245.html

* Caseking add PNY 3060ti Models
https://www.caseking.de/pny-geforce-rtx-3060-ti-xlr8-gaming-revel-epic-x-8192-mb-gddr6-gcpn-080.html
https://www.caseking.de/pny-geforce-rtx-3060-ti-uprising-8g-8192-mb-gddr6-gcpn-079.html

* Caseking add Zotac 3060ti Models:
https://www.caseking.de/zotac-gaming-geforce-rtx-3060-ti-twin-edge-8192-mb-gddr6-gczt-169.html
https://www.caseking.de/zotac-gaming-geforce-rtx-3060-ti-twin-edge-oc-8192-mb-gddr6-gczt-170.html

* Caseking add Asus 3070 Models:
https://www.caseking.de/asus-geforce-rtx-3070-dual-8g-8192-mb-gddr6-gcas-404.html
https://www.caseking.de/asus-geforce-rtx-3070-tuf-o8g-8192-mb-gddr6-gcas-406.html
https://www.caseking.de/asus-geforce-rtx-3070-rog-strix-o8g-8192-mb-gddr6-gcas-403.html
https://www.caseking.de/asus-geforce-rtx-3070-dual-o8g-8192-mb-gddr6-gcas-405.html
https://www.caseking.de/asus-geforce-rtx-3070-rog-strix-8g-8192-mb-gddr6-gcas-415.html

* Caseking add EVGA 3070 Models

* Caseking add Gigabyte 3070 Models:
https://www.caseking.de/gigabyte-geforce-rtx-3070-gaming-oc-8g-8192-mb-gddr6-gcgb-338.html
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3070-master-8g-8192-mb-gddr6-gcgb-343.html
https://www.caseking.de/gigabyte-geforce-rtx-3070-vision-oc-8g-8192-mb-gddr6-gcgb-344.html
https://www.caseking.de/gigabyte-geforce-rtx-3070-eagle-8g-8192-mb-gddr6-gcgb-340.html
https://www.caseking.de/gigabyte-geforce-rtx-3070-eagle-oc-8g-8192-mb-gddr6-gcgb-339.html

List from EVGA Previuous commit:
https://www.caseking.de/evga-geforce-rtx-3070-xc3-black-gaming-8192-mb-gddr6-gcev-424.html
https://www.caseking.de/evga-geforce-rtx-3070-xc3-ultra-gaming-8192-mb-gddr6-gcev-426.html
https://www.caseking.de/evga-geforce-rtx-3070-ftw3-ultra-8192-mb-gddr6-gcev-428.html
https://www.caseking.de/evga-geforce-rtx-3070-xc3-8192-mb-gddr6-gcev-425.html
https://www.caseking.de/evga-geforce-rtx-3070-ftw3-8192-mb-gddr6-gcev-427.html

* Caseking add Inno3D 3070 Models:
https://www.caseking.de/inno3d-geforce-rtx-3070-twin-x2-8192-mb-gddr6-gci3-176.html
https://www.caseking.de/inno3d-geforce-rtx-3070-ichill-x3-8192-mb-gddr6-gci3-174.html
https://www.caseking.de/inno3d-geforce-rtx-3070-ichill-x4-8192-mb-gddr6-gci3-173.html
https://www.caseking.de/inno3d-geforce-rtx-3070-twin-x2-oc-8192-mb-gddr6-gci3-175.html

* Caseking add MSI 3070 Models:
https://www.caseking.de/msi-geforce-rtx-3070-gaming-x-trio-8192-mb-gddr6-gcmc-250.html
https://www.caseking.de/msi-geforce-rtx-3070-suprim-8g-8192-mb-gddr6-gcmc-256.html
https://www.caseking.de/msi-geforce-rtx-3070-ventus-2x-oc-8192-mb-gddr6-gcmc-249.html
https://www.caseking.de/msi-geforce-rtx-3070-ventus-3x-oc-8192-mb-gddr6-gcmc-251.html
https://www.caseking.de/msi-geforce-rtx-3070-suprim-x-8g-8192-mb-gddr6-gcmc-254.html

* Caseking add PNY 3070 Models:
https://www.caseking.de/pny-geforce-rtx-3070-xlr8-gaming-revel-epic-x-rgb-8192-mb-gddr6-gcpn-078.html
https://www.caseking.de/pny-geforce-rtx-3070-dual-fan-8192-mb-gddr6-gcpn-077.html

* Caseking add Zotac 3070 Models:
https://www.caseking.de/zotac-gaming-geforce-rtx-3070-twin-edge-8192-mb-gddr6-gczt-164.html
https://www.caseking.de/zotac-gaming-geforce-rtx-3070-twin-edge-oc-8192-mb-gddr6-gczt-168.html
https://www.caseking.de/zotac-gaming-geforce-rtx-3070-twin-edge-oc-white-8192-mb-gddr6-gczt-171.html

* Caseking added missing 3080 Models from Store:
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3080-xtreme-10g-10240-mb-gddr6x-gcgb-333.html
https://www.caseking.de/msi-geforce-rtx-3080-suprim-x-10g-10240-mb-gddr6x-gcmc-253.html
https://www.caseking.de/asus-geforce-rtx-3080-ekwb-10g-10240-mb-gddr6x-gcas-413.html
https://www.caseking.de/inno3d-geforce-rtx-3080-ichill-frostbite-10240-mb-gddr6x-gci3-177.html
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3080-xtreme-waterforce-wb-10g-10240-mb-gddr6x-gcgb-352.html
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3080-xtreme-waterforce-10g-10240-mb-gddr6x-gcgb-351.html
https://www.caseking.de/evga-geforce-rtx-3080-xc3-ultra-hybrid-gaming-10240-mb-gddr6x-gcev-435.html
https://www.caseking.de/evga-geforce-rtx-3080-ftw3-ultra-hybrid-gaming-10240-mb-gddr6x-gcev-436.html
https://www.caseking.de/gigabyte-geforce-rtx-3080-eagle-10g-10240-mb-gddr6x-gcgb-353.html

* Caseking added missing 3090 Models from Store:
https://www.caseking.de/asus-geforce-rtx-3090-ekwb-24g-24576-mb-gddr6x-gcas-414.html
https://www.caseking.de/msi-geforce-rtx-3090-ventus-3x-24g-oc-24576-mb-gddr6x-gcmc-243.html
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3090-xtreme-waterforce-wb-24g-24576-mb-gddr6x-gcgb-355.html
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3090-xtreme-waterforce-24g-24576-mb-gddr6x-gcgb-354.html
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3090-xtreme-24g-24576-mb-gddr6x-gcgb-335.html
https://www.caseking.de/evga-geforce-rtx-3090-ftw3-ultra-hybrid-gaming-24576-mb-gddr6x-gcev-434.html
https://www.caseking.de/evga-geforce-rtx-3090-xc3-ultra-hybrid-gaming-24576-mb-gddr6x-gcev-433.html
https://www.caseking.de/gigabyte-aorus-geforce-rtx-3090-master-24g-24576-mb-gddr6x-gcgb-334.html
https://www.caseking.de/inno3d-geforce-rtx-3090-ichill-frostbite-24576-mb-gddr6x-gci3-178.html
https://www.caseking.de/msi-geforce-rtx-3090-suprim-x-24g-24576-mb-gddr6x-gcmc-252.html
https://www.caseking.de/gigabyte-geforce-rtx-3090-vision-oc-24g-24576-mb-gddr6x-gcgb-341.html
https://www.caseking.de/gigabyte-geforce-rtx-3090-turbo-24g-24576-mb-gddr6x-gcgb-330.html
https://www.caseking.de/gigabyte-geforce-rtx-3090-eagle-24g-24576-mb-gddr6x-gcgb-342.html

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2021-01-17 13:42:01 -05:00
pbaum83 b03d24217f feat: add command parameter to set custom dotenv conf (#1590) 2021-01-17 12:47:33 -05:00
wofnull 2fa893795f feat(store): addition of several australian sites (#1651)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2021-01-17 12:45:13 -05:00
dependabot[bot] 122e68a764 chore(deps-dev): bump @types/node from 14.14.20 to 14.14.21 (#1695)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.20 to 14.14.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-17 12:36:41 -05:00
Martazza cb898c7923 feat(store): add more italian sites (#1701) 2021-01-17 12:36:28 -05:00
neatchee 09827741ae feat(store): specify links to navigate to between product searches (#1542)
Fixes #1504

When querying a store, if `deterrentLinks` has been defined, pick one at random and navigate there then wait 3 seconds. This should help reduce the likelihood of being sent to a captcha on subsequent page loads from the same store.
2021-01-17 08:27:08 -05:00
wofnull 2120d2901d fix(galaxus): update selector (#1705) 2021-01-17 08:22:31 -05:00
wofnull 3f191bbd00 fix(newegg): false positives (all stores) (#1714) 2021-01-17 08:22:10 -05:00
dependabot[bot] 724f6b19a1 chore(deps-dev): bump @types/node-fetch from 2.5.7 to 2.5.8 (#1696)
Bumps [@types/node-fetch](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node-fetch) from 2.5.7 to 2.5.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node-fetch)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-15 15:30:01 -05:00
wofnull bc45fd8d11 chore(galaxus): update selector (#1693) 2021-01-15 13:27:07 -05:00
wofnull 0a1198b69c fix(acompc): false positives (#1699)
Update selector has changed
2021-01-15 13:26:35 -05:00
wofnull e0849c4dc2 fix(computeruniverse): false positives (#1698)
Add additional out of stock message
2021-01-15 13:26:14 -05:00
dependabot[bot] 75b2460aea chore(deps-dev): bump webpack from 5.13.0 to 5.14.0 (#1692)
Bumps [webpack](https://github.com/webpack/webpack) from 5.13.0 to 5.14.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.13.0...v5.14.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-14 13:30:11 -05:00
dependabot[bot] 50ee40a2d4 chore(deps): bump puppeteer-extra from 3.1.15 to 3.1.16 (#1678)
Bumps [puppeteer-extra](https://github.com/berstend/puppeteer-extra) from 3.1.15 to 3.1.16.
- [Release notes](https://github.com/berstend/puppeteer-extra/releases)
- [Commits](https://github.com/berstend/puppeteer-extra/compare/puppeteer-extra@3.1.15...puppeteer-extra@3.1.16)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-14 13:25:55 -05:00
dependabot[bot] 9d7f908e04 chore(deps): bump puppeteer-extra-plugin-block-resources from 2.2.7 to 2.2.8 (#1691)
Bumps [puppeteer-extra-plugin-block-resources](https://github.com/berstend/puppeteer-extra) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/berstend/puppeteer-extra/releases)
- [Commits](https://github.com/berstend/puppeteer-extra/compare/puppeteer-extra-plugin-block-resources@2.2.7...puppeteer-extra-plugin-block-resources@2.2.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-14 13:25:45 -05:00
dependabot[bot] 3b14ec7574 chore(deps): bump google-github-actions/release-please-action from v2.14 to v2.15 (#1655)
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from v2.14 to v2.15.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2.14...88a82e1f9574f0a8bcacf1a13f84ef3d2c6659f3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2021-01-14 13:19:02 -05:00
dependabot[bot] 57b3a500ae chore(deps): bump @slack/web-api from 5.15.0 to 6.0.0 (#1669)
Bumps [@slack/web-api](https://github.com/slackapi/node-slack-sdk) from 5.15.0 to 6.0.0.
- [Release notes](https://github.com/slackapi/node-slack-sdk/releases)
- [Commits](https://github.com/slackapi/node-slack-sdk/compare/@slack/web-api@5.15.0...@slack/web-api@6.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-14 13:18:42 -05:00
wofnull b821eab273 fix(bandh): asus cards / out of stock check added (#1670) 2021-01-14 13:18:29 -05:00
dependabot[bot] 513f578fdc chore(deps): bump puppeteer-extra-plugin-stealth from 2.6.5 to 2.6.6 (#1680)
Bumps [puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra) from 2.6.5 to 2.6.6.
- [Release notes](https://github.com/berstend/puppeteer-extra/releases)
- [Commits](https://github.com/berstend/puppeteer-extra/compare/puppeteer-extra-plugin-stealth@2.6.5...puppeteer-extra-plugin-stealth@2.6.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-14 13:17:34 -05:00
dependabot[bot] a6a69e7ae5 chore(deps): bump twilio from 3.54.2 to 3.55.0 (#1679)
Bumps [twilio](https://github.com/twilio/twilio-node) from 3.54.2 to 3.55.0.
- [Release notes](https://github.com/twilio/twilio-node/releases)
- [Changelog](https://github.com/twilio/twilio-node/blob/main/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-node/compare/3.54.2...3.55.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-14 13:17:21 -05:00
dependabot[bot] 58761fc48e chore(deps): bump puppeteer-extra-plugin-adblocker from 2.11.9 to 2.11.10 (#1681)
Bumps [puppeteer-extra-plugin-adblocker](https://github.com/berstend/puppeteer-extra) from 2.11.9 to 2.11.10.
- [Release notes](https://github.com/berstend/puppeteer-extra/releases)
- [Commits](https://github.com/berstend/puppeteer-extra/compare/puppeteer-extra-plugin-adblocker@2.11.9...puppeteer-extra-plugin-adblocker@2.11.10)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-14 13:17:08 -05:00
wofnull 3ab0de6e86 chore(computeruniverse): add 3060ti cards (#1665) 2021-01-14 08:39:09 -05:00
wofnull be541713a8 fix(wipoid): added 3090/3080/3070/3060ti/ryzen store items (#1683) 2021-01-14 08:22:21 -05:00
wofnull 84382def6f feat(vsgamers): add maxPrice selector(#1682) 2021-01-14 08:14:44 -05:00
wofnull a768eb4cf5 fix(galaxus): update selector ( 14.01.2020 07:00 ) (#1664) 2021-01-14 08:13:54 -05:00
Jef LeCompte ca2580d72b docs: add hyperlinks 2021-01-12 17:36:46 -05:00
Jef LeCompte 9c35e728ac docs(twitch): add instructions on how to get tokens 2021-01-12 17:30:51 -05:00
Jef LeCompte 52c7e74372 chore(lint): add void for dangling promise 2021-01-12 12:18:50 -05:00
Jef LeCompte c479ce2b6a chore(deps): bump dependencies 2021-01-12 10:36:54 -05:00
xal3xhx 83508bc5ea feat(twilio): add support to have multiple numbers (#1450)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2021-01-11 13:48:03 -05:00
wofnull c9cda1e4e5 feat(galaxus): update selector, add out of stock check (#1607) 2021-01-11 12:16:04 -05:00
Jef LeCompte d0a4667a64 feat(asus): add outOfStock label (#1653)
Resolves #368
2021-01-11 12:14:15 -05:00
dependabot[bot] 459e9af34c chore(deps-dev): bump webpack from 5.11.1 to 5.12.3 (#1650)
Bumps [webpack](https://github.com/webpack/webpack) from 5.11.1 to 5.12.3.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.11.1...v5.12.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-11 12:01:34 -05:00
dependabot[bot] 8ed5daf729 chore(deps): bump amannn/action-semantic-pull-request from v2.2.0 to v3.1.0 (#1652)
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from v2.2.0 to v3.1.0.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v2.2.0...d2ab30dcffc66150340abb5b947d518a3c3ce9cb)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-11 12:01:22 -05:00
dependabot[bot] f8af5a85c0 chore(deps): bump messaging-api-telegram from 1.0.1 to 1.0.4 (#1649)
Bumps [messaging-api-telegram](https://github.com/Yoctol/messaging-apis) from 1.0.1 to 1.0.4.
- [Release notes](https://github.com/Yoctol/messaging-apis/releases)
- [Changelog](https://github.com/Yoctol/messaging-apis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Yoctol/messaging-apis/compare/v1.0.1...v1.0.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-11 11:56:44 -05:00
Matt Conte 20bea85e41 fix(store): Update 30 series links and models for store.asus.com (#1645)
Fixes #1637
2021-01-10 13:03:01 -05:00
tilda 943ab837e2 docs: fix spelling in "Creating a Discord webhook" (#1646) 2021-01-10 13:02:14 -05:00
Benjamin Knofe 9c2ea8dbe9 feat(proshop-de): add proshop-de inStock selector (#1633) 2021-01-08 15:34:10 -05:00
dependabot[bot] 30f3fab419 chore(deps): bump open from 7.3.0 to 7.3.1 (#1630)
Bumps [open](https://github.com/sindresorhus/open) from 7.3.0 to 7.3.1.
- [Release notes](https://github.com/sindresorhus/open/releases)
- [Commits](https://github.com/sindresorhus/open/compare/v7.3.0...v7.3.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-08 10:27:57 -05:00
Jordan Tucker c0638d2e4b feat(web): properly set for attribute for labels (#1626) 2021-01-08 10:23:16 -05:00
dependabot[bot] 426a8ce015 chore(deps): bump google-github-actions/release-please-action from v2.13 to v2.14 (#1629)
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from v2.13 to v2.14.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2.13...7e0f05fbdf9f233ed4d15b06069125e83ae0c7e0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-08 10:05:49 -05:00
dependabot[bot] 21d0a94a8e chore(deps): bump @slack/web-api from 5.14.0 to 5.15.0 (#1606)
Bumps [@slack/web-api](https://github.com/slackapi/node-slack-sdk) from 5.14.0 to 5.15.0.
- [Release notes](https://github.com/slackapi/node-slack-sdk/releases)
- [Commits](https://github.com/slackapi/node-slack-sdk/compare/@slack/web-api@5.14.0...@slack/web-api@5.15.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-07 11:14:17 -05:00
wofnull 8faf3202e7 fix(bestbuy): shorter pageview urls and missing carturl links (#1613)
Fixes #1610
2021-01-07 10:53:08 -05:00
wofnull ef926d2282 feat(store): add SG Location for Amazon and Newegg (#1600) 2021-01-07 10:51:20 -05:00
dependabot[bot] 3f62921439 chore(deps-dev): bump nodemon from 2.0.6 to 2.0.7 (#1621)
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.6...v2.0.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-07 10:42:40 -05:00
dependabot[bot] 1ed8eca6f9 chore(deps): bump twilio from 3.54.1 to 3.54.2 (#1622)
Bumps [twilio](https://github.com/twilio/twilio-node) from 3.54.1 to 3.54.2.
- [Release notes](https://github.com/twilio/twilio-node/releases)
- [Changelog](https://github.com/twilio/twilio-node/blob/main/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-node/compare/3.54.1...3.54.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-07 10:42:24 -05:00
Jef LeCompte 53cb59aada chore: update bug template 2021-01-06 17:22:52 -05:00
dependabot[bot] 8d0a32ca22 chore(deps-dev): bump @types/node from 14.14.19 to 14.14.20 (#1597)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.19 to 14.14.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-05 14:07:04 -05:00
wofnull 445a00728f fix(galaxus): update selector (#1599) 2021-01-05 08:18:58 -05:00
dependabot[bot] 6a4049bbc3 chore(deps-dev): bump webpack from 5.11.0 to 5.11.1 (#1541)
Bumps [webpack](https://github.com/webpack/webpack) from 5.11.0 to 5.11.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.11.0...v5.11.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 18:13:33 -05:00
dependabot[bot] 13d4ee6a71 chore(deps): bump twitch from 4.3.6 to 4.3.8 (#1533)
Bumps [twitch](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch) from 4.3.6 to 4.3.8.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.3.8/packages/twitch)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 18:13:23 -05:00
dependabot[bot] a74980b728 chore(deps): bump twitch-chat-client from 4.3.6 to 4.3.8 (#1534)
Bumps [twitch-chat-client](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch-chat-client) from 4.3.6 to 4.3.8.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.3.8/packages/twitch-chat-client)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-03 02:17:20 -05:00
dependabot[bot] 8a1874216a chore(deps-dev): bump @types/node from 14.14.16 to 14.14.19 (#1585)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.16 to 14.14.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-03 02:16:42 -05:00
dependabot[bot] 0ef76d66bc chore(deps): bump google-github-actions/release-please-action from v2.12.3 to v2.13 (#1558)
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from v2.12.3 to v2.13.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2.12.3...f8ac173f7087940f7d90793fd96e1f83d43ee772)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-03 02:16:22 -05:00
Anthony Tam 082776cfca fix(store): update missing/mislabeled cards for Canadian retailers (#1574) 2021-01-03 02:13:18 -05:00
wofnull ad5bd55c1a fix(galaxus): update selector (#1578) 2021-01-03 02:11:48 -05:00
X123Moin 4f86d2462e fix(store): update out of stock detection for MediaMarkt and Saturn (#1549)
Fixes #1545
2021-01-03 02:09:14 -05:00
Anthony Tam 8ab6e1f1d8 feat(store): add GPU and CPU support for Vuugo (#1555) 2021-01-03 02:06:51 -05:00
CyberMew f9a3d03f35 feat(pushover): add screenshot to push notification if available (#1552) 2021-01-03 02:05:36 -05:00
Reid Kornman 9ef83fd1d2 chore(bestbuy): add 3060ti cards (#1548) 2021-01-03 02:04:53 -05:00
Staffan 8e5c28e10b chore(proshop-dk): add 3060ti, add 3070, update 3080, update 3090, add ryzen cpus (#1526) 2021-01-03 02:03:11 -05:00
dependabot[bot] de69f7ae8a chore(deps): bump twitch-auth from 4.3.6 to 4.3.8 (#1532)
Bumps [twitch-auth](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch-auth) from 4.3.6 to 4.3.8.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.3.8/packages/twitch-auth)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-03 02:02:05 -05:00
Collin Garvey ca1564e8fa chore(philips-hue): correct the log text (#1523) 2020-12-27 02:18:06 -05:00
Jef LeCompte a908ce417b chore(redis): init client once
Regression of 6bc7737ef0
2020-12-26 07:37:33 -08:00
Jef LeCompte 6bc7737ef0 fix: disable redis if not configured
Fixes #1516
2020-12-26 07:28:49 -08:00
Dan Robinson 14998d87f9 chore(evga): add 3060ti cards 2020-12-25 19:24:04 -05:00
dependabot[bot] 76761c5b8d chore(deps): bump amannn/action-semantic-pull-request (#1494)
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from v2.1.1 to v2.2.0.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v2.1.1...e92d269774194a4d390ad91a817b19ccb588410e)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 19:22:47 -05:00
dependabot[bot] a402c64f5e chore(deps): bump cheerio from 1.0.0-rc.3 to 1.0.0-rc.5 (#1495)
Bumps [cheerio](https://github.com/cheeriojs/cheerio) from 1.0.0-rc.3 to 1.0.0-rc.5.
- [Release notes](https://github.com/cheeriojs/cheerio/releases)
- [Changelog](https://github.com/cheeriojs/cheerio/blob/main/History.md)
- [Commits](https://github.com/cheeriojs/cheerio/compare/1.0.0-rc.3...v1.0.0-rc.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 19:22:35 -05:00
dependabot[bot] e893d79ad7 chore(deps-dev): bump @types/node from 14.14.14 to 14.14.16 (#1506)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.14 to 14.14.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 19:14:49 -05:00
Bailey Miller fb82526a42 feat: add redis (#1390) 2020-12-25 19:14:21 -05:00
neatchee 90fb430b71 fix(amazon-de-warehouse): update wrong maxPrice selector (#1514) 2020-12-25 19:10:19 -05:00
Sergej Lopatkin 5b70ff14cb feat(store): add equippr & futurex for DE region (#1501) 2020-12-25 19:03:36 -05:00
erwinc1 0c6e2d587d fix: properly pass array entries as separate indices (#1502) 2020-12-25 19:01:23 -05:00
neatchee 1cf618c1c1 feat(lookup): add protection against infinite recursion for Cloudflare (#1505)
Fixes #1459
Fixes #1490
2020-12-23 22:23:43 -08:00
StanZha 28d1cf90b8 chore(store): rx6800xt for memoryexpress, amazon-ca (#1491)
* rx6900xt urls added for amd official store, newegg and bestbuy

* added rx6900xt microcenter url

* linter issue fix

* few more 6800xt added for Canada
2020-12-22 11:57:57 -05:00
Jef LeCompte f34a808451 feat(lookup): add max price for xbox
Resolves #1436
2020-12-21 16:09:37 -05:00
sohaiiil eb59dc3433 fix(store): link builder in UK stores (#1486)
Going to use static links instead now.
2020-12-21 13:01:53 -05:00
KnotenJoe beee355563 feat(store): add pcking and acompc (#1470)
* Create pcking

Another store for Germany.  I tested the code on my pc.

* docs: add pcking to store list

* Rename pcking to pcking.ts

* Update index.ts

* Update filter.md

* Update index.ts

* Create acompc.ts

* chore: linting

* chore: linting

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2020-12-21 12:58:46 -05:00
David Gauch 5a6b252ae1 chore(newegg): add links for rx6800xt and rx6800 (#1484)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2020-12-21 17:40:39 +00:00
Jef LeCompte 0c80d6caea docs: add missing font key 2020-12-21 12:37:39 -05:00
Jef LeCompte 272b49b4ac docs: change fonts to Roboto 2020-12-21 12:33:33 -05:00
James Hinton ec8d3571cf feat(store): add johnlewis store, add shopto store (#1481)
* add `johnlewis` store

* feat: add `shopto` store

* chore: linting

* chore: linting

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2020-12-20 18:00:00 -05:00
KnotenJoe 7a5bc22ba8 fix(galaxus): maxPrice selector (#1469) 2020-12-20 17:51:31 -05:00
sohaiiil 673b5f325c docs(reference): add AWD-IT (#1460) 2020-12-19 12:12:33 -05:00
Richard Chen Zheng 70b2e7c408 docs(reference): add AMD 6800, 6800xt, 6900xt (#1463) 2020-12-19 12:11:19 -05:00
Phillip Kramp 4debcd33a7 chore(amazon): add nvidia and amd cards (#1430) 2020-12-18 09:23:55 -05:00
dependabot[bot] 0b7d92341a chore(deps): bump google-github-actions/release-please-action from v2.12.2 to v2.12.3 (#1454)
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from v2.12.2 to v2.12.3.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2.12.2...ecf21cd22e32f8a23d66f762091b994d1a60c1c4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-18 09:23:11 -05:00
dependabot[bot] 0cc5de95ca chore(deps): bump dorny/paths-filter from v2.6.0 to v2.7.0 (#1453)
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from v2.6.0 to v2.7.0.
- [Release notes](https://github.com/dorny/paths-filter/releases)
- [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dorny/paths-filter/compare/v2.6.0...4e7fcc37b4770a7082a9be52b4c543d2839f55df)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-18 09:21:58 -05:00
dependabot[bot] bc788cbd95 chore(deps-dev): bump webpack from 5.10.3 to 5.11.0 (#1456)
Bumps [webpack](https://github.com/webpack/webpack) from 5.10.3 to 5.11.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.10.3...v5.11.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-18 09:11:45 -05:00
Mark Dietzer ab037029b6 fix(proxy): update proxy module (#1451)
Fixes #1437
2020-12-18 09:07:03 -05:00
Jef LeCompte 6e2a16238c feat: remove stale user agents, use top 50
This change should vastly improve success rate.
2020-12-17 19:39:23 -05:00
neatchee f86a8259f3 feat(lookup): handle Cloudflare DDoS protection (#1434)
Resolves #1297
2020-12-17 11:49:43 -05:00
dependabot[bot] 2b5588bd46 chore(deps): bump actions/setup-node from v2.1.3 to v2.1.4 (#1439)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.3 to v2.1.4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.3...c46424eee26de4078d34105d3de3cc4992202b1e)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 11:45:41 -05:00
dependabot[bot] cdc3a84d2d chore(deps-dev): bump @types/node from 14.14.13 to 14.14.14 (#1431)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.13 to 14.14.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 11:45:35 -05:00
dependabot[bot] ef9afb8d69 chore(deps-dev): bump webpack from 5.10.1 to 5.10.3 (#1432)
Bumps [webpack](https://github.com/webpack/webpack) from 5.10.1 to 5.10.3.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.10.1...v5.10.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 11:45:28 -05:00
dependabot[bot] 8836a1c1c4 chore(deps): bump twilio from 3.54.0 to 3.54.1 (#1440)
Bumps [twilio](https://github.com/twilio/twilio-node) from 3.54.0 to 3.54.1.
- [Release notes](https://github.com/twilio/twilio-node/releases)
- [Changelog](https://github.com/twilio/twilio-node/blob/main/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-node/compare/3.54.0...3.54.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 11:45:19 -05:00
Jef LeCompte 96ae818e84 fix(lookup): remove mobile versions of user agent
Removing mobile versions of user agents should help
us with false positives, as the mobile version may give
different selectors which we cannot parse correctly.
2020-12-17 11:34:27 -05:00
Eugene Shalygin 7425e6437f chore(store): add some radeon models for German stores (#1426) 2020-12-15 17:11:20 -05:00
Mark Dietzer f65df4ce56 fix(proxy): fix requests with proxies (#1408) 2020-12-15 17:08:38 -05:00
Jef LeCompte ecdb7a058d style(docs): change code font to JetBrains Mono 2020-12-15 10:23:52 -05:00
carrierfry 02d29c3c64 fix(lookup): check out of stock before price (#1422) 2020-12-15 09:27:05 -05:00
RitoFaith ca59777917 feat(azerty): add ryzen 5000 series (#878) 2020-12-15 08:10:26 -05:00
Jef LeCompte 8db16dd0cb docs: fix hotlink 2020-12-15 07:49:16 -05:00
Jef LeCompte a9b2ecfd48 docs: fix banner location 2020-12-15 00:37:08 -05:00
Jef LeCompte 8fdfa4d57c style(notification): update desktop look and feel 2020-12-15 00:35:20 -05:00
Jef LeCompte 64898b8ae3 chore(deps): bump twitch, notifier, mailer, typescript, node, and webpack 2020-12-15 00:28:04 -05:00
Jef LeCompte d592cd5d77 chore: update template, typos in docs (#1386) 2020-12-15 00:23:04 -05:00
StanZha 316b3bbb81 chore(store): add rx6900xt for newegg(-ca), amd-ca, bestbuy, and microcenter (#1420) 2020-12-15 00:22:47 -05:00
Mark Dietzer be1953b206 feat(proxy): fallback to a global proxy list (#1388) 2020-12-13 16:37:54 -05:00
Mark Dietzer 445689efc4 fix(webui): handling of file serving (#1383) 2020-12-13 10:40:04 -05:00
sohaiiil 2d25c464f8 docs(store): add missing uk store (#1384) 2020-12-13 10:38:27 -05:00
Jef LeCompte 704fa393c2 ci: update release-please 2020-12-13 00:48:25 -05:00
dependabot[bot] 769f19efa2 chore(deps): bump GoogleCloudPlatform/release-please-action from v2.10 to v2.12.2 (#1339)
Bumps [GoogleCloudPlatform/release-please-action](https://github.com/GoogleCloudPlatform/release-please-action) from v2.10 to v2.12.2.
- [Release notes](https://github.com/GoogleCloudPlatform/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/release-please-action/compare/v2.10...9a3489838773d66aa63a899ec5dbd26f43b4837b)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-13 00:44:31 -05:00
github-actions[bot] b97d581607 chore: release 3.3.0 (#1233) 2020-12-13 00:41:50 -05:00
Mark Dietzer eb700762a4 fix(adblock): proxy another function to produce less errors (#1379) 2020-12-13 00:40:57 -05:00
Jef LeCompte 38630d478a docs: update mkdocs appearance 2020-12-13 00:26:47 -05:00
Jef LeCompte 2a5e2e8733 chore: update logos 2020-12-13 00:23:20 -05:00
James White 579cb97a0d feat(store): add several Australian stores, add some 3080 brands/models (#1367) 2020-12-12 20:14:02 -05:00
Conor Broderick f70998f0d9 feat(store): add Irish store variants (#1373) 2020-12-12 20:08:05 -05:00
sohaiiil 02825d009b fix(store): update UK stores (#1372) 2020-12-12 20:07:10 -05:00
Jef LeCompte 0d75025cbb docs(discord): add xbox* groups
Resolves #1352
2020-12-12 09:46:43 -05:00
Mike H db47827e6e docs(filter): update El Corte Inglés location (#1369) 2020-12-12 09:44:03 -05:00
Jef LeCompte c3beedced8 fix(newegg): price selector and mobile inStock
Fixes #1356
2020-12-12 09:38:35 -05:00
Dylan Fontaine 0525119b9b fix(bestbuy-ca): update selectors to help false positives (#1278)
Resolves #895
2020-12-12 09:23:19 -05:00
Jef LeCompte b6964b02f3 fix(amazon-nl): inStock selector
Fixes #1366
2020-12-12 09:19:28 -05:00
moiLegacy 7329c6ede0 fix(newegg): dedupe nitro+ models (#1300)
Fixes #1230
2020-12-12 09:06:41 -05:00
sohaiiil cccfde245a feat(discord): dynamic currency symbol (#1328) 2020-12-12 09:01:54 -05:00
Jef LeCompte ad0b2fe525 fix(discord): notification groupings 2020-12-11 18:04:22 -05:00
Jef LeCompte 064ce83f03 ci: add workflow_dispatch for quick releases 2020-12-11 13:28:32 -05:00
Jef LeCompte ef452d8e58 fix(config): remove quotes 2020-12-11 13:27:19 -05:00
Jef LeCompte dca916b64e fix(config): disable docker by default 2020-12-11 12:50:18 -05:00
Jef LeCompte e2bf5749c1 docs: update docker-compose title 2020-12-11 12:38:29 -05:00
Jef LeCompte da78362045 docs: update docker-compose information 2020-12-11 12:37:33 -05:00
Egidijus Ligeika c74ea28014 fix(docker): run in docker, and build scripts for docker (#1291)
Updates unnecessary need to grant special privileges when running in Docker.
2020-12-11 12:13:11 -05:00
Will Whitney 67b19a7a8b feat(playstation): add queuing selector (#1173) 2020-12-11 12:08:47 -05:00
Jef LeCompte 5786481b31 docs: medimax is de store 2020-12-11 12:02:48 -05:00
Jef LeCompte 9b7c7e2881 fix: .env backwards compatibility 2020-12-11 08:11:57 -05:00
Jef LeCompte 7e3020a927 docs: include max prices for adding a store
Based on https://github.com/jef/streetmerchant/discussions/1146#discussioncomment-168047
2020-12-11 02:56:37 -05:00
Jef LeCompte 3386e8f50d revert: allow users to still use USER_AGENT
Removed from documentation, but older users can utilize
until fully removed in 4.0.0
2020-12-11 02:50:04 -05:00
dependabot[bot] 7bfcc81fdc chore(deps): bump twilio from 3.53.0 to 3.54.0 (#1287)
Bumps [twilio](https://github.com/twilio/twilio-node) from 3.53.0 to 3.54.0.
- [Release notes](https://github.com/twilio/twilio-node/releases)
- [Changelog](https://github.com/twilio/twilio-node/blob/main/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-node/compare/3.53.0...3.54.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 02:41:05 -05:00
dependabot[bot] 37962f00e5 chore(deps): bump twitch-chat-client from 4.3.5 to 4.3.6 (#1308)
Bumps [twitch-chat-client](https://github.com/d-fischer/twitch/tree/HEAD/packages/twitch-chat-client) from 4.3.5 to 4.3.6.
- [Release notes](https://github.com/d-fischer/twitch/releases)
- [Commits](https://github.com/d-fischer/twitch/commits/v4.3.6/packages/twitch-chat-client)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 02:06:54 -05:00
dependabot[bot] d92d58d235 chore(deps-dev): bump @types/puppeteer from 5.4.1 to 5.4.2 (#1289)
Bumps [@types/puppeteer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/puppeteer) from 5.4.1 to 5.4.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/puppeteer)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 02:06:35 -05:00
Jef LeCompte 9b3906ca00 refactor: change .env to be dotenv (#1341) 2020-12-11 01:57:49 -05:00
dependabot[bot] 0683430768 chore(deps): bump actions/setup-node from v2.1.2 to v2.1.3 (#1338)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.2...27082cecf3ff7a1742dbd5e12605f0cb59dce2d9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 01:16:34 -05:00
dependabot[bot] b6ea0ea991 chore(deps-dev): bump @types/node from 14.14.10 to 14.14.12 (#1340)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.10 to 14.14.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 01:16:23 -05:00
Jef LeCompte 68eede5487 docs: update format for models and countries 2020-12-11 01:14:39 -05:00
moodswung 29175c77a8 feat(store): add darkhero motherboard to asus and microcenter (#1336) 2020-12-11 01:13:26 -05:00
xeaon a44621f8f5 fix: add setRequestInterception (#1312)
Fixes #826
2020-12-11 01:09:08 -05:00
Dylan Fontaine 27cfb94de8 feat(store): add EBGames (#1281) 2020-12-11 01:02:32 -05:00
Jef LeCompte b599c23b51 feat(lookup): use random user agents (#1335) 2020-12-11 00:33:32 -05:00
Jef LeCompte 2115c0c906 chore: remove default label on bug issue 2020-12-10 15:14:21 -05:00
Eugene Shalygin 4f60ad2a82 chore(store): add a few AMD listings for German stores (#1321) 2020-12-10 13:28:30 -05:00
Warwick Marangos 8d192317ba feat(notification): add sound player executable option (#1301)
Pass the path to the player executable as a players array to play-sound so that it will check if the executable exists.
2020-12-09 20:59:10 -05:00
SizzlinSeal 3841666d03 chore(amazon-ca): add rtx 3070 cards (#1299) 2020-12-09 19:17:22 -05:00
Sebastian 2632386a5b feat(notification): add discord groups (#1211) 2020-12-09 14:54:51 -05:00
Jef LeCompte 9dc04b3638 chore: move linksBuilder log, add outOfStock amd-de 2020-12-09 11:30:56 -05:00
Jef LeCompte b2738370b4 chore(amazon): fix evga model 2020-12-09 10:32:42 -05:00
moiLegacy 54ef0ef995 chore(officedepot): add 3070 (#1280) 2020-12-09 02:23:43 -05:00
StanZha ba5c50495b chore(store): add rx6900xt for microcenter, newegg, bestbuy, amd (#1284) 2020-12-09 02:22:57 -05:00
Jef LeCompte 0e7de05fd2 docs: fix reference 2020-12-08 22:24:49 -05:00
Jef LeCompte 578027a36b chore(evga): add 3080 hydro copper
Resolve #965
2020-12-08 17:58:08 -05:00
Jef LeCompte 5e1dfc3568 fix(eprice): inStock selector
Fixes #1067

Co-authored-by: Maecenass
2020-12-08 17:47:02 -05:00
Zethus Suen 5955d10a7f feat(docs): add table sorting (#1258) 2020-12-08 17:22:33 -05:00
Jef LeCompte 64f55c1b86 chore: update labels 2020-12-08 17:09:36 -05:00
Jef LeCompte 1538937661 chore: fix issue template config 2020-12-08 17:06:58 -05:00
Jef LeCompte 46bed1ef3c chore: update issue templates 2020-12-08 17:02:00 -05:00
Jef LeCompte b56d214059 docs: fix hotlink
Fixes #1273
2020-12-08 16:51:13 -05:00
Jef LeCompte 625ae0ee53 docs: add rotating proxy note 2020-12-08 16:33:55 -05:00
Jef LeCompte d7602f3a0f docs: add discussion board 2020-12-08 15:54:26 -05:00
dtsulik b806e1bb9c chore(newegg): add powercolor red devil, red dragon (#1219) 2020-12-08 15:41:17 -05:00
Jef LeCompte 58f0a9c774 fix(bestbuy-ca): add outOfStock text
Resolves #1269
2020-12-08 15:18:05 -05:00
Jef LeCompte 48a46d0217 chore: remove husky, use include with tsconfig
Let CI handle linting
2020-12-08 15:07:47 -05:00
Jeremy Beasley 53eeff0bfc docs: fix typo in README (#1268) 2020-12-08 15:02:42 -05:00
Dylan Fontaine ac0bd2ac14 feat(store): add Toys R Us (#1257) 2020-12-08 15:01:08 -05:00
Jef LeCompte 0072dda90b fix(pushover): add expire and retry
Fixes #983
2020-12-08 14:20:15 -05:00
Jef LeCompte d56bcddb05 chore(store): add xbox to bestbuy-ca and amazon-ca
Resolves #982
2020-12-08 13:49:30 -05:00
Jef LeCompte 5aa4fdc7b9 chore: remove feature request and questions
Remove issue templates in favor of new https://github.com/jef/streetmerchant/discussions! This is beneficial so we can keep issues related to app development.
2020-12-08 13:01:45 -05:00
Jef LeCompte 60508e2ddb chore(deps): update twitch, husky, ts-node, xo 2020-12-08 11:50:04 -05:00
dependabot[bot] 4f7c9ed84f chore(deps-dev): bump @types/cheerio from 0.22.22 to 0.22.23 (#1251)
Bumps [@types/cheerio](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/cheerio) from 0.22.22 to 0.22.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/cheerio)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-08 11:47:47 -05:00
Luca Rinaldi e3eb38655a fix(store): italian store checks (#1212) 2020-12-08 11:37:30 -05:00
Dylan Fontaine b535b470ca feat(store): add Walmart (CA) (#1253) 2020-12-08 11:35:00 -05:00
Hangur 30bed2ac01 feat(store): add Megekko (#1216) 2020-12-08 08:36:20 -05:00
Darwin Do 84a6ff5973 chore(amazon): add 3060ti cards (#1229) 2020-12-07 12:01:41 -05:00
Simone Cavazzoni 84f2cb7d52 fix(amazon-it): maxPrice selector and links (#1239) 2020-12-07 12:00:27 -05:00
Jef LeCompte d5bd7e3db2 docs: update image link 2020-12-07 00:26:10 -05:00
Jef LeCompte 1f63e99804 fix(ci): mkdocs deps 2020-12-07 00:21:38 -05:00
Jef LeCompte 243109a4ff feat(docs): add mkdocs 2020-12-07 00:18:43 -05:00
253 changed files with 50617 additions and 22513 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
root = true root = true
[*] [*]
indent_style = tab indent_style = space
indent_size = 2
end_of_line = lf end_of_line = lf
charset = utf-8 charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
[*.{yml, json, md}] [*.md]
indent_style = space indent_size = 4
indent_size = 2
-98
View File
@@ -1,98 +0,0 @@
# ** All configuration variables are optional **
# Read https://github.com/jef/streetmerchant#customization for help on customizing this file
#############################################################################################
ASCII_BANNER=""
ASCII_COLOR=""
AUTO_ADD_TO_CART=""
BROWSER_TRUSTED=""
COUNTRY=""
DESKTOP_NOTIFICATIONS=""
DISCORD_NOTIFY_GROUP=""
DISCORD_WEB_HOOK=""
EMAIL_PASSWORD=""
EMAIL_TO=""
EMAIL_USERNAME=""
HEADLESS=""
IN_STOCK_WAIT_TIME=""
LOG_LEVEL=""
LOW_BANDWIDTH=""
MAX_PRICE_SERIES_3060TI=""
MAX_PRICE_SERIES_3070=""
MAX_PRICE_SERIES_3080=""
MAX_PRICE_SERIES_3090=""
MAX_PRICE_SERIES_CORSAIR_SF=""
MAX_PRICE_SERIES_RX6800=""
MAX_PRICE_SERIES_RX6800XT=""
MAX_PRICE_SERIES_RX6900XT=""
MAX_PRICE_SERIES_RYZEN5600=""
MAX_PRICE_SERIES_RYZEN5800=""
MAX_PRICE_SERIES_RYZEN5900=""
MAX_PRICE_SERIES_RYZEN5950=""
MAX_PRICE_SERIES_SONYPS5C=""
MAX_PRICE_SERIES_SONYPS5DE=""
MAX_PRICE_SERIES_TEST=""
MICROCENTER_LOCATION=""
MQTT_BROKER_ADDRESS=""
MQTT_BROKER_PORT=""
MQTT_CLIENT_ID=""
MQTT_PASSWORD=""
MQTT_QOS=""
MQTT_TOPIC=""
MQTT_USERNAME=""
NVIDIA_ADD_TO_CART_ATTEMPTS=""
NVIDIA_SESSION_TTL=""
OPEN_BROWSER=""
PAGE_BACKOFF_MIN=""
PAGE_BACKOFF_MAX=""
PAGE_SLEEP_MIN=""
PAGE_SLEEP_MAX=""
PAGE_TIMEOUT=""
PAGERDUTY_INTEGRATION_KEY=""
PAGERDUTY_SEVERITY=""
PHILIPS_HUE_API_KEY=""
PHILIPS_HUE_CLOUD_ACCESS_TOKEN=""
PHILIPS_HUE_CLOUD_CLIENT_ID=""
PHILIPS_HUE_CLOUD_CLIENT_SECRET=""
PHILIPS_HUE_CLOUD_REFRESH_TOKEN=""
PHILIPS_HUE_LAN_BRIDGE_IP=""
PHILIPS_HUE_LIGHT_COLOR=""
PHILIPS_HUE_LIGHT_IDS=""
PHILIPS_HUE_LIGHT_PATTERN=""
PHONE_CARRIER=""
PHONE_NUMBER=""
PLAY_SOUND=""
PROXY_ADDRESS=""
PROXY_PROTOCOL=""
PROXY_PORT=""
PUSHBULLET=""
PUSHOVER_TOKEN=""
PUSHOVER_USER=""
PUSHOVER_PRIORITY=""
SCREENSHOT=""
SHOW_ONLY_BRANDS=""
SHOW_ONLY_MODELS=""
SHOW_ONLY_SERIES=""
SLACK_CHANNEL=""
SLACK_TOKEN=""
SMTP_ADDRESS=""
SMTP_PORT=""
STORES=""
TELEGRAM_ACCESS_TOKEN=""
TELEGRAM_CHAT_ID=""
TWILIO_ACCOUNT_SID=""
TWILIO_AUTH_TOKEN=""
TWILIO_FROM_NUMBER=""
TWILIO_TO_NUMBER=""
TWITCH_ACCESS_TOKEN=""
TWITCH_CHANNEL=""
TWITCH_CLIENT_ID=""
TWITCH_CLIENT_SECRET=""
TWITCH_REFRESH_TOKEN=""
TWITTER_ACCESS_TOKEN_KEY=""
TWITTER_ACCESS_TOKEN_SECRET=""
TWITTER_CONSUMER_KEY=""
TWITTER_CONSUMER_SECRET=""
TWITTER_TWEET_TAGS=""
USER_AGENT=""
WEB_PORT=""
+2
View File
@@ -0,0 +1,2 @@
build/
docs/
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "./node_modules/gts/",
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
}
}
+33
View File
@@ -0,0 +1,33 @@
---
name: "\U0001F41B Bug report"
about: Report a bug for this project
title: ''
labels: ''
assignees: ''
---
## Expected Behavior
<!-- Tell us what should happen -->
## Current Behavior
<!-- Tell us what happens instead of the expected behavior -->
## Steps to Reproduce
<!-- Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. -->
<!-- Include code to reproduce, if relevant -->
## Environment
- OS:
<!-- Put your dotenv within backticks below. Be sure to remove any secrets/passwords. -->
```dotenv
```
## Logs
<!-- Provide a brief log -->
-41
View File
@@ -1,41 +0,0 @@
---
name: 🐛 Bug report
about: Report a bug for this project
title: ''
labels: 'type: bug'
assignees: jef
---
<!--- Feel free to join our discord server (https://discord.gg/gbVY4vB9JF) for general support --->
<!--- If this acts as a feature request please ask yourself if this modification is something the whole userbase will benefit from --->
## Expected Behavior
<!--- Tell us what should happen -->
## Current Behavior
<!--- Tell us what happens instead of the expected behavior -->
## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.
3.
4.
## Environment
**OS:**
**.env file:**
```dotenv
```
## Logs
<!--- Provide a brief log -->
+11
View File
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: 💡 Have an idea for a new feature?
url: https://github.com/jef/streetmerchant/discussions
about: Create a new idea discussion!
- name: 🙇 Need help with streetmerchant?
url: https://github.com/jef/streetmerchant/discussions
about: Create a new help discussion if it hasn't been asked before!
- name: 💬 Want to talk with others that use streetmerchant?
url: https://discord.gg/gbVY4vB9JF
about: Join our Discord to hangout and talk shop!
-16
View File
@@ -1,16 +0,0 @@
---
name: 🚀 Feature request
about: Suggest a feature for this project
title: ''
labels: 'type: enhancement'
assignees: jef
---
## Description
<!-- Describe the feature here -->
## Possible solution
<!-- Describe the possible solution here -->
-12
View File
@@ -1,12 +0,0 @@
---
name: 🤔 Question
about: Open to all questions
title: ''
labels: 'type: question'
assignees: jef
---
## Description
<!-- Describe the question here -->
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
npm run test
+25 -16
View File
@@ -1,39 +1,48 @@
name: ci name: Continuous Integration
on: on:
pull_request: pull_request:
branches: branches:
- main - main
push:
branches:
- main
jobs: jobs:
build-and-lint: build-lint:
name: Build and lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout repository
- uses: actions/setup-node@v2.1.2 uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with: with:
node-version: 14.15.0 node-version: 15.10.0
- uses: actions/cache@v2 - name: Setup build cache
uses: actions/cache@v2
with: with:
path: ~/.npm path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node- restore-keys: ${{ runner.os }}-node-
- name: Add problem matcher - name: Install dependencies
run: echo "::add-matcher::.github/xo-problem-matcher.json" run: npm ci
- name: Pull dependencies - name: Compile TypeScript
run: | run: npm run compile
npm ci - name: Run linter
npm run build run: npm run lint
npm run lint
build-docker: build-docker:
name: Build Docker image
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout repository
- uses: dorny/paths-filter@v2.6.0 uses: actions/checkout@v2
- name: Run paths filter
uses: dorny/paths-filter@v2
id: filter id: filter
with: with:
filters: | filters: |
build: build:
- 'Dockerfile' - 'Dockerfile'
- 'package*.json' - 'package*.json'
- name: Build image - name: Build Docker image
if: steps.filter.outputs.build == 'true' if: steps.filter.outputs.build == 'true'
run: docker build . run: docker build .
+20
View File
@@ -0,0 +1,20 @@
name: Documentation
on:
push:
branches:
- main
jobs:
build-deploy:
name: Build and publish documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Python packages
run: pip install mkdocs-material mkdocs-git-revision-date-plugin mkdocs-macros-plugin
- name: Build and publish documentation
run: mkdocs gh-deploy --force
+23
View File
@@ -0,0 +1,23 @@
name: Nightly Release
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}
jobs:
build-release:
name: Build and release Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login into GitHub Container Registry
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Build Docker image
run: |
docker build \
-t "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}" \
-t "ghcr.io/${GITHUB_REPOSITORY}:nightly" .
- name: Release Docker image
run: |
docker push "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}"
docker push "ghcr.io/${GITHUB_REPOSITORY}:nightly"
-18
View File
@@ -1,18 +0,0 @@
name: nightly
on:
schedule:
- cron: '0 0 * * *'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: login into github package registry
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: build nightly docker image
run: |
docker build \
-t "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}" \
-t "ghcr.io/${GITHUB_REPOSITORY}:nightly" .
- name: publish nightly image
run: docker push "ghcr.io/${GITHUB_REPOSITORY}"
+9 -6
View File
@@ -1,15 +1,18 @@
name: pr-lint name: Pull Request Linter
on: on:
pull_request_target: pull_request:
types: types:
- opened - opened
- edited - edited
- reopened - reopened
- synchronize - synchronize
jobs: jobs:
main: lint-pr:
name: Lint pull request title
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: amannn/action-semantic-pull-request@v2.1.1 - name: Lint pull request title
env: uses: jef/conventional-commits-pr-action@v1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with:
comment: false
token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,22 +1,27 @@
name: cd name: Release
on: on:
push: push:
branches: branches:
- main - main
jobs: jobs:
publish: build-tag-release:
name: Build, tag, and release Docker image
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout repository
- uses: GoogleCloudPlatform/release-please-action@v2.10 uses: actions/checkout@v2
- name: Setup release please
uses: google-github-actions/release-please-action@v2
id: release id: release
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple release-type: node
changelog-path: CHANGELOG.md
package-name: streetmerchant package-name: streetmerchant
- name: login into github package registry - name: Login into GitHub Container Registry
if: ${{ steps.release.outputs.release_created }}
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: build latest docker image - name: Build Docker image
if: ${{ steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}
run: | run: |
docker build \ docker build \
@@ -24,6 +29,8 @@ jobs:
-t "ghcr.io/${GITHUB_REPOSITORY}:latest" . -t "ghcr.io/${GITHUB_REPOSITORY}:latest" .
env: env:
TAG_NAME: ${{ steps.release.outputs.tag_name }} TAG_NAME: ${{ steps.release.outputs.tag_name }}
- name: publish latest image - name: Release Docker image
if: ${{ steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}
run: docker push "ghcr.io/${GITHUB_REPOSITORY}" run: |
docker push "ghcr.io/${GITHUB_REPOSITORY}:${TAG_NAME}"
docker push "ghcr.io/${GITHUB_REPOSITORY}:latest"
+2 -2
View File
@@ -1,4 +1,4 @@
name: 'Close stale issues' name: Stale Checker
on: on:
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
@@ -21,6 +21,6 @@ jobs:
stale-pr-message: ${{ env.STALE_MESSAGE }} stale-pr-message: ${{ env.STALE_MESSAGE }}
env: env:
CLOSE_MESSAGE: 'This issue has been closed because it is stale. Reopen if necessary.' CLOSE_MESSAGE: 'This issue has been closed because it is stale. Reopen if necessary.'
EXEMPT_LABEL: 'status: needs discussion' EXEMPT_LABEL: 'status: needs discussion,priority: low,priority: medium, priority: high,status: help wanted,status: in progress'
STALE_LABEL: 'status: stale' STALE_LABEL: 'status: stale'
STALE_MESSAGE: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' STALE_MESSAGE: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days'
-21
View File
@@ -1,21 +0,0 @@
{
"problemMatcher": [
{
"owner": "xo",
"pattern": [
{
"regexp": "^\\s+(.*):(\\d+):(\\d+)$",
"file": 1
},
{
"regexp": "^\\s+✖\\s+(\\d+):(\\d+)\\s+(.*)\\s+(.*)$",
"line": 1,
"column": 2,
"message": 3,
"code": 4,
"loop": true
}
]
}
]
}
+6 -3
View File
@@ -2,11 +2,12 @@
.vs/ .vs/
.vscode/ .vscode/
build/ build/
coverage/
node_modules/ node_modules/
.env* .env
.*env dotenv
!.env-example *.proxies
success-*.png success-*.png
*.wav *.wav
@@ -16,3 +17,5 @@ success-*.png
desktop.ini desktop.ini
twitch.json twitch.json
terraform/terraform.tfstate
terraform/terraform.tfstate.backup
+1 -1
View File
@@ -1 +1 @@
14.15.0 15.10.0
+3
View File
@@ -0,0 +1,3 @@
module.exports = {
...require('gts/.prettierrc.json')
}
+152
View File
@@ -1,5 +1,157 @@
# Changelog # Changelog
## [3.5.0](https://www.github.com/jef/streetmerchant/compare/v3.4.1...v3.5.0) (2021-03-02)
### Features
* add restart time for leaking Chromium in Ubuntu ([#1880](https://www.github.com/jef/streetmerchant/issues/1880)) ([1009ce6](https://www.github.com/jef/streetmerchant/commit/1009ce6636c21c378121bd83b251a371a1b8568e))
* add terraform infra as code for AWS fargate ([#1987](https://www.github.com/jef/streetmerchant/issues/1987)) ([d341ef7](https://www.github.com/jef/streetmerchant/commit/d341ef72aa6b74e54c11aeb455516b2a69a8a664))
* clean up proxy logging with n/N in each lookup ([#1839](https://www.github.com/jef/streetmerchant/issues/1839)) ([8df4339](https://www.github.com/jef/streetmerchant/commit/8df4339bdb3d96cb448e3acb727fdc534688bfc0))
* **notification:** add simple SmartThings switch activation ([#1902](https://www.github.com/jef/streetmerchant/issues/1902)) ([c22c960](https://www.github.com/jef/streetmerchant/commit/c22c960dc179f5ed74ae41a25178e6d2feed0bf9))
* **notification:** add Streamlabs support ([#1872](https://www.github.com/jef/streetmerchant/issues/1872)) ([edb39f8](https://www.github.com/jef/streetmerchant/commit/edb39f8f05451c3cc1994c0beb2338bae04ab585))
* **nvidia:** updated store for europe ([#1732](https://www.github.com/jef/streetmerchant/issues/1732)) ([2143b15](https://www.github.com/jef/streetmerchant/commit/2143b158090dc065a29bdde4c6dc592a5a745c07))
* **sms:** add US Cellular ([#1874](https://www.github.com/jef/streetmerchant/issues/1874)) ([4455e4e](https://www.github.com/jef/streetmerchant/commit/4455e4ed8df84a37fa16fdc58d130c11a997f9b5))
* **store:** add globaldata ([#2004](https://www.github.com/jef/streetmerchant/issues/2004)) ([5effbae](https://www.github.com/jef/streetmerchant/commit/5effbae882bed9d287f8ccc84e9dd38a6ebdebb1))
* **store:** add ldlc (FR) ([#2037](https://www.github.com/jef/streetmerchant/issues/2037)) ([a7be09d](https://www.github.com/jef/streetmerchant/commit/a7be09d56eda441cb1625ebb642cccab63d71f31))
* **store:** add netonnet-no ([#1989](https://www.github.com/jef/streetmerchant/issues/1989)) ([e6803d4](https://www.github.com/jef/streetmerchant/commit/e6803d4d7c60424c043b540f0cb555bd29b9d7aa))
* **store:** add Norwegian stores ([#1985](https://www.github.com/jef/streetmerchant/issues/1985)) ([5a5927b](https://www.github.com/jef/streetmerchant/commit/5a5927ba1ef5d138f5741b672b1fe2466e5760c2))
* **store:** add novoatalho (PT) ([#2043](https://www.github.com/jef/streetmerchant/issues/2043)) ([a3c726b](https://www.github.com/jef/streetmerchant/commit/a3c726b45c5ab8f0a6c8a239e0de0a913c4e0c55))
* **store:** add PCDiga.com ([#1990](https://www.github.com/jef/streetmerchant/issues/1990)) ([2501f6b](https://www.github.com/jef/streetmerchant/commit/2501f6b5cc46aa05bfe94ca238b5866e4fd60f36))
* **store:** corsair-uk ([#1733](https://www.github.com/jef/streetmerchant/issues/1733)) ([c81282e](https://www.github.com/jef/streetmerchant/commit/c81282ef9fd95c39dc6d338f3d79de16906c89b6))
* use node 15, use package version ([#2066](https://www.github.com/jef/streetmerchant/issues/2066)) ([eee669b](https://www.github.com/jef/streetmerchant/commit/eee669b1b3e54ada1180877fe766aaded9e02936))
### Bug Fixes
* **alternate:** update URLs ([#1814](https://www.github.com/jef/streetmerchant/issues/1814)) ([d63685f](https://www.github.com/jef/streetmerchant/commit/d63685f2905eb7f207f13da7682ad6a81d9d7aca))
* **amazon-ca:** out of stock check was missing ([#1885](https://www.github.com/jef/streetmerchant/issues/1885)) ([0e65f33](https://www.github.com/jef/streetmerchant/commit/0e65f336902dec99aa10a4b4823f4d2411674cae))
* **amazon-ca:** update selector ([#1851](https://www.github.com/jef/streetmerchant/issues/1851)) ([3293184](https://www.github.com/jef/streetmerchant/commit/329318427fc3eb1081751289401269119a252905))
* **amazon-uk:** add label for ps5 ([8ee6815](https://www.github.com/jef/streetmerchant/commit/8ee6815c0fb6ea129d2de600d10e6732e90ce924)), closes [#2036](https://www.github.com/jef/streetmerchant/issues/2036)
* **discord:** ensure first group in list is notified ([#1788](https://www.github.com/jef/streetmerchant/issues/1788)) ([9791568](https://www.github.com/jef/streetmerchant/commit/9791568cd4205b00ce9c5d301937efc17089b769))
* **docs:** nvidia store changes ([#1797](https://www.github.com/jef/streetmerchant/issues/1797)) ([de1427c](https://www.github.com/jef/streetmerchant/commit/de1427c076e5051673635fb9ec7e9880f0e3c260))
* **galaxus:** update selector ([#1730](https://www.github.com/jef/streetmerchant/issues/1730)) ([1015358](https://www.github.com/jef/streetmerchant/commit/1015358b502a30a8cfc9fedfeab2dc09098d9615))
* **microcenter:** properly flag in stock items ([#1754](https://www.github.com/jef/streetmerchant/issues/1754)) ([ce609fb](https://www.github.com/jef/streetmerchant/commit/ce609fb518fa7811a77e3ab7d26ecacf86ac35e6))
* **nvidia:** update inStock text ([#1850](https://www.github.com/jef/streetmerchant/issues/1850)) ([4f57df0](https://www.github.com/jef/streetmerchant/commit/4f57df016ba2ab6fdd5e7ca7e98ea6d9fba463a7))
* remove package-lock.json ([e3d0980](https://www.github.com/jef/streetmerchant/commit/e3d09803ad3d53b5c4310b3e369a69c99515fd8c))
* **vuugo:** add out of stock check ([#1731](https://www.github.com/jef/streetmerchant/issues/1731)) ([9695e29](https://www.github.com/jef/streetmerchant/commit/9695e29a02ea320842954db9f2ea51612b983490))
* **web:** 404 Error / page not visible ([#1825](https://www.github.com/jef/streetmerchant/issues/1825)) ([95b4a15](https://www.github.com/jef/streetmerchant/commit/95b4a153bd8b708cfefd07e3f16e787bb069da48))
* **wipoid:** corrected 3070 / 3080 links ([#1879](https://www.github.com/jef/streetmerchant/issues/1879)) ([2572c8a](https://www.github.com/jef/streetmerchant/commit/2572c8af80685be514ff762f8203e7de7cab8634))
### [3.4.1](https://www.github.com/jef/streetmerchant/compare/v3.4.0...v3.4.1) (2021-01-17)
### Bug Fixes
* **proxy:** build proxyList correctly ([c177aed](https://www.github.com/jef/streetmerchant/commit/c177aedd210e14cb7d401295cb16ece1dfb1ebe7))
## [3.4.0](https://www.github.com/jef/streetmerchant/compare/v3.3.0...v3.4.0) (2021-01-17)
### Features
* add browser opening to test:notification ([f87053c](https://www.github.com/jef/streetmerchant/commit/f87053cb02e04b3cb2c0cf253187a9e9857c9858))
* add c8 and mocha for testing ([f87053c](https://www.github.com/jef/streetmerchant/commit/f87053cb02e04b3cb2c0cf253187a9e9857c9858))
* add command parameter to set custom dotenv conf ([#1590](https://www.github.com/jef/streetmerchant/issues/1590)) ([b03d242](https://www.github.com/jef/streetmerchant/commit/b03d24217f8ff5a56ddf19c019d10b48afec813f))
* add redis ([#1390](https://www.github.com/jef/streetmerchant/issues/1390)) ([fb82526](https://www.github.com/jef/streetmerchant/commit/fb82526a427e503fff1f1cf56b091ff0c8a5a96e))
* **asus:** add outOfStock label ([#1653](https://www.github.com/jef/streetmerchant/issues/1653)) ([d0a4667](https://www.github.com/jef/streetmerchant/commit/d0a4667a643398d836652642b993107ed05619d8)), closes [#368](https://www.github.com/jef/streetmerchant/issues/368)
* **azerty:** add ryzen 5000 series ([#878](https://www.github.com/jef/streetmerchant/issues/878)) ([ca59777](https://www.github.com/jef/streetmerchant/commit/ca59777917777401affc5b72a68238983f286237))
* **caseking:** add 3060ti/3070 cards / add missing 3080/3090 cards ([#1715](https://www.github.com/jef/streetmerchant/issues/1715)) ([b2ebac3](https://www.github.com/jef/streetmerchant/commit/b2ebac36c078d8001501d45e3a2bbf5f91a1a489))
* **galaxus:** update selector, add out of stock check ([#1607](https://www.github.com/jef/streetmerchant/issues/1607)) ([c9cda1e](https://www.github.com/jef/streetmerchant/commit/c9cda1e4e597c7103a32c32c9e5a79824ad44de5))
* **lookup:** add max price for xbox ([f34a808](https://www.github.com/jef/streetmerchant/commit/f34a808451b735c384f4b763cedd816c85ab7abc)), closes [#1436](https://www.github.com/jef/streetmerchant/issues/1436)
* **lookup:** add protection against infinite recursion for Cloudflare ([#1505](https://www.github.com/jef/streetmerchant/issues/1505)) ([1cf618c](https://www.github.com/jef/streetmerchant/commit/1cf618c1c12d3ab94688139a8410bed181af3eb2)), closes [#1459](https://www.github.com/jef/streetmerchant/issues/1459) [#1490](https://www.github.com/jef/streetmerchant/issues/1490)
* **lookup:** handle Cloudflare DDoS protection ([#1434](https://www.github.com/jef/streetmerchant/issues/1434)) ([f86a825](https://www.github.com/jef/streetmerchant/commit/f86a8259f37f0ed25b00e243b29aa28c3e68bdff)), closes [#1297](https://www.github.com/jef/streetmerchant/issues/1297)
* **proshop-de:** add proshop-de inStock selector ([#1633](https://www.github.com/jef/streetmerchant/issues/1633)) ([9c2ea8d](https://www.github.com/jef/streetmerchant/commit/9c2ea8dbe91f46e24eae1e9e717164d99f94d0e1))
* **proxy:** fallback to a global proxy list ([#1388](https://www.github.com/jef/streetmerchant/issues/1388)) ([be1953b](https://www.github.com/jef/streetmerchant/commit/be1953b2069fce72969904c1bc18055df73f4b6b))
* **pushover:** add screenshot to push notification if available ([#1552](https://www.github.com/jef/streetmerchant/issues/1552)) ([f9a3d03](https://www.github.com/jef/streetmerchant/commit/f9a3d03f356d7ed2072772b86c7776f62dcd32b5))
* remove stale user agents, use top 50 ([6e2a162](https://www.github.com/jef/streetmerchant/commit/6e2a16238c54bc448f3ae5243ef8729f384ea59b))
* **store:** add `johnlewis` store, add `shopto` store ([#1481](https://www.github.com/jef/streetmerchant/issues/1481)) ([ec8d357](https://www.github.com/jef/streetmerchant/commit/ec8d3571cfbbd3a028aed9b5650eb8a52c9af587))
* **store:** add equippr & futurex for DE region ([#1501](https://www.github.com/jef/streetmerchant/issues/1501)) ([5b70ff1](https://www.github.com/jef/streetmerchant/commit/5b70ff14cb9ab5e0a72922624d54b40bb0642bcd))
* **store:** add GPU and CPU support for Vuugo ([#1555](https://www.github.com/jef/streetmerchant/issues/1555)) ([8ab6e1f](https://www.github.com/jef/streetmerchant/commit/8ab6e1f1d801c3ae52987fe9e8550adbe2015ea6))
* **store:** add more italian sites ([#1701](https://www.github.com/jef/streetmerchant/issues/1701)) ([cb898c7](https://www.github.com/jef/streetmerchant/commit/cb898c7923ce8a45548807571e734ad232ce0004))
* **store:** add pcking and acompc ([#1470](https://www.github.com/jef/streetmerchant/issues/1470)) ([beee355](https://www.github.com/jef/streetmerchant/commit/beee35556376056b31d6719fb090ce58b7ea985f))
* **store:** add SG Location for Amazon and Newegg ([#1600](https://www.github.com/jef/streetmerchant/issues/1600)) ([ef926d2](https://www.github.com/jef/streetmerchant/commit/ef926d2282cedaef38bc3d4d427820f4aa65dc8d))
* **store:** addition of several australian sites ([#1651](https://www.github.com/jef/streetmerchant/issues/1651)) ([2fa8937](https://www.github.com/jef/streetmerchant/commit/2fa893795f21535e1799116843e0668b669835ab))
* **store:** specify links to navigate to between product searches ([#1542](https://www.github.com/jef/streetmerchant/issues/1542)) ([0982774](https://www.github.com/jef/streetmerchant/commit/09827741aec2158e88c19fd6b0156c32736671c8))
* **twilio:** add support to have multiple numbers ([#1450](https://www.github.com/jef/streetmerchant/issues/1450)) ([83508bc](https://www.github.com/jef/streetmerchant/commit/83508bc5ea509aac0742c525a6434ef8f8001899))
* update Docker and ci ([f87053c](https://www.github.com/jef/streetmerchant/commit/f87053cb02e04b3cb2c0cf253187a9e9857c9858))
* **vsgamers:** add maxPrice selector([#1682](https://www.github.com/jef/streetmerchant/issues/1682)) ([84382de](https://www.github.com/jef/streetmerchant/commit/84382def6f23b1e8b1ad8c14fb4f423f32a35eb7))
* **web:** properly set `for` attribute for labels ([#1626](https://www.github.com/jef/streetmerchant/issues/1626)) ([c0638d2](https://www.github.com/jef/streetmerchant/commit/c0638d2e4b923abacaf81fb09fd80948cd5e7ce9))
### Bug Fixes
* **acompc:** false positives ([#1699](https://www.github.com/jef/streetmerchant/issues/1699)) ([0a1198b](https://www.github.com/jef/streetmerchant/commit/0a1198b69c4e7b22fcf9c9d0ed94ff51da4f8bce))
* **amazon-de-warehouse:** update wrong maxPrice selector ([#1514](https://www.github.com/jef/streetmerchant/issues/1514)) ([90fb430](https://www.github.com/jef/streetmerchant/commit/90fb430b712aa6a89227a17d37a83380326db21b))
* **bandh:** asus cards / out of stock check added ([#1670](https://www.github.com/jef/streetmerchant/issues/1670)) ([b821eab](https://www.github.com/jef/streetmerchant/commit/b821eab273f3d8d4cecc1642467dbbad63f4e763))
* **bestbuy:** shorter pageview urls and missing carturl links ([#1613](https://www.github.com/jef/streetmerchant/issues/1613)) ([8faf320](https://www.github.com/jef/streetmerchant/commit/8faf3202e79825de5289659435c5f93b4e892086)), closes [#1610](https://www.github.com/jef/streetmerchant/issues/1610)
* **computeruniverse:** false positives ([#1698](https://www.github.com/jef/streetmerchant/issues/1698)) ([e0849c4](https://www.github.com/jef/streetmerchant/commit/e0849c4dc2427a9f8be1927847a1fb2609a24600))
* disable redis if not configured ([6bc7737](https://www.github.com/jef/streetmerchant/commit/6bc7737ef04e5592e19b0b6a76e5fb0cd4b048df)), closes [#1516](https://www.github.com/jef/streetmerchant/issues/1516)
* **galaxus:** maxPrice selector ([#1469](https://www.github.com/jef/streetmerchant/issues/1469)) ([7a5bc22](https://www.github.com/jef/streetmerchant/commit/7a5bc22ba8cede51311b80182c18fb0227532cd2))
* **galaxus:** update selector ( 14.01.2020 07:00 ) ([#1664](https://www.github.com/jef/streetmerchant/issues/1664)) ([a768eb4](https://www.github.com/jef/streetmerchant/commit/a768eb4cf54f81657532ae0c5e00588cc167eae2))
* **galaxus:** update selector ([#1578](https://www.github.com/jef/streetmerchant/issues/1578)) ([ad5bd55](https://www.github.com/jef/streetmerchant/commit/ad5bd55c1ad9f54c9c1aa7ae875bd430d6304fac))
* **galaxus:** update selector ([#1599](https://www.github.com/jef/streetmerchant/issues/1599)) ([445a007](https://www.github.com/jef/streetmerchant/commit/445a00728fec1c8b6bded8583d4a6712c195143b))
* **galaxus:** update selector ([#1705](https://www.github.com/jef/streetmerchant/issues/1705)) ([2120d29](https://www.github.com/jef/streetmerchant/commit/2120d2901d03ae2238bd56d46e0c43dcb16af70e))
* **lookup:** check out of stock before price ([#1422](https://www.github.com/jef/streetmerchant/issues/1422)) ([02d29c3](https://www.github.com/jef/streetmerchant/commit/02d29c3c64a7976622da6cbdf099b76b455082d0))
* **lookup:** remove mobile versions of user agent ([96ae818](https://www.github.com/jef/streetmerchant/commit/96ae818e84c99d0597e0ddd7b5ecfe1a0615d1ed))
* **newegg:** false positives (all stores) ([#1714](https://www.github.com/jef/streetmerchant/issues/1714)) ([3f191bb](https://www.github.com/jef/streetmerchant/commit/3f191bbd00e7474fbef71ddd28955672835ef1a0))
* properly pass array entries as separate indices ([#1502](https://www.github.com/jef/streetmerchant/issues/1502)) ([0c6e2d5](https://www.github.com/jef/streetmerchant/commit/0c6e2d587d81041b07a561b3f53b8b1ebcb9f843))
* **proxy:** fix requests with proxies ([#1408](https://www.github.com/jef/streetmerchant/issues/1408)) ([f65df4c](https://www.github.com/jef/streetmerchant/commit/f65df4ce56891c368dab8dd6fe85a584cf9e6f49))
* **proxy:** update proxy module ([#1451](https://www.github.com/jef/streetmerchant/issues/1451)) ([ab03702](https://www.github.com/jef/streetmerchant/commit/ab037029b654f5e169a97c9e7a2c4dfa6cf1e768)), closes [#1437](https://www.github.com/jef/streetmerchant/issues/1437)
* **store:** link builder in UK stores ([#1486](https://www.github.com/jef/streetmerchant/issues/1486)) ([eb59dc3](https://www.github.com/jef/streetmerchant/commit/eb59dc3433c54027695fb68cfe69b1d90fce3fec))
* **store:** Update 30 series links and models for store.asus.com ([#1645](https://www.github.com/jef/streetmerchant/issues/1645)) ([20bea85](https://www.github.com/jef/streetmerchant/commit/20bea85e411277f70b987675b53055b69d450e0f)), closes [#1637](https://www.github.com/jef/streetmerchant/issues/1637)
* **store:** update missing/mislabeled cards for Canadian retailers ([#1574](https://www.github.com/jef/streetmerchant/issues/1574)) ([082776c](https://www.github.com/jef/streetmerchant/commit/082776cfca740ac0a22736f791c62705a62185be))
* **store:** update out of stock detection for MediaMarkt and Saturn ([#1549](https://www.github.com/jef/streetmerchant/issues/1549)) ([4f86d24](https://www.github.com/jef/streetmerchant/commit/4f86d2462e5d1eba6a7d7839585c0fe8c1b70da5)), closes [#1545](https://www.github.com/jef/streetmerchant/issues/1545)
* **webui:** handling of file serving ([#1383](https://www.github.com/jef/streetmerchant/issues/1383)) ([445689e](https://www.github.com/jef/streetmerchant/commit/445689efc49bf8edb0b5a027611f02ea0d0f126f))
* **wipoid:** added 3090/3080/3070/3060ti/ryzen store items ([#1683](https://www.github.com/jef/streetmerchant/issues/1683)) ([be54171](https://www.github.com/jef/streetmerchant/commit/be541713a8855f18b5102917751842e514796e00))
## [3.3.0](https://www.github.com/jef/streetmerchant/compare/v3.2.0...v3.3.0) (2020-12-13)
### Features
* **discord:** dynamic currency symbol ([#1328](https://www.github.com/jef/streetmerchant/issues/1328)) ([cccfde2](https://www.github.com/jef/streetmerchant/commit/cccfde245affc11506c69d1ef6c30c09953307d4))
* **docs:** add mkdocs ([243109a](https://www.github.com/jef/streetmerchant/commit/243109a4ffdfe1d1efe961af0b5cf28fd7e6ef1d))
* **docs:** add table sorting ([#1258](https://www.github.com/jef/streetmerchant/issues/1258)) ([5955d10](https://www.github.com/jef/streetmerchant/commit/5955d10a7f2106c5ae1275fadacf2945626ca008))
* **lookup:** use random user agents ([#1335](https://www.github.com/jef/streetmerchant/issues/1335)) ([b599c23](https://www.github.com/jef/streetmerchant/commit/b599c23b51735212e5369ce03a44bbd1bccafa42))
* **notification:** add discord groups ([#1211](https://www.github.com/jef/streetmerchant/issues/1211)) ([2632386](https://www.github.com/jef/streetmerchant/commit/2632386a5b99f3b23166e88f92af809f0036a6b7))
* **notification:** add sound player executable option ([#1301](https://www.github.com/jef/streetmerchant/issues/1301)) ([8d19231](https://www.github.com/jef/streetmerchant/commit/8d192317badfd71a7cd8f0115ba9e6fc951c1874))
* **playstation:** add queuing selector ([#1173](https://www.github.com/jef/streetmerchant/issues/1173)) ([67b19a7](https://www.github.com/jef/streetmerchant/commit/67b19a7a8b3dead5f5ab9575ee2b4f09924ce851))
* **store:** add darkhero motherboard to asus and microcenter ([#1336](https://www.github.com/jef/streetmerchant/issues/1336)) ([29175c7](https://www.github.com/jef/streetmerchant/commit/29175c77a8fcbc082c944b057a919dfcc22ba606))
* **store:** add EBGames ([#1281](https://www.github.com/jef/streetmerchant/issues/1281)) ([27cfb94](https://www.github.com/jef/streetmerchant/commit/27cfb94de8d9ccef3c7fc76b250aee17d7c80257))
* **store:** add Irish store variants ([#1373](https://www.github.com/jef/streetmerchant/issues/1373)) ([f70998f](https://www.github.com/jef/streetmerchant/commit/f70998f0d9a6cdfbc59fb31fecb87f801b0b3037))
* **store:** add Megekko ([#1216](https://www.github.com/jef/streetmerchant/issues/1216)) ([30bed2a](https://www.github.com/jef/streetmerchant/commit/30bed2ac016e9e543f67b1098819a484bc1394c3))
* **store:** add several Australian stores, add some 3080 brands/models ([#1367](https://www.github.com/jef/streetmerchant/issues/1367)) ([579cb97](https://www.github.com/jef/streetmerchant/commit/579cb97a0d151cc374a37493b043ba4a399b55db))
* **store:** add Toys R Us ([#1257](https://www.github.com/jef/streetmerchant/issues/1257)) ([ac0bd2a](https://www.github.com/jef/streetmerchant/commit/ac0bd2ac14d686a0f30931e885da65a1d7af6856))
* **store:** add Walmart (CA) ([#1253](https://www.github.com/jef/streetmerchant/issues/1253)) ([b535b47](https://www.github.com/jef/streetmerchant/commit/b535b470cad38af034889b4d27578b20136e166d))
### Bug Fixes
* **adblock:** proxy another function to produce less errors ([#1379](https://www.github.com/jef/streetmerchant/issues/1379)) ([eb70076](https://www.github.com/jef/streetmerchant/commit/eb700762a4eee3a802bd81f0fb62e76243027c42))
* **amazon-it:** maxPrice selector and links ([#1239](https://www.github.com/jef/streetmerchant/issues/1239)) ([84f2cb7](https://www.github.com/jef/streetmerchant/commit/84f2cb7d52fac7c3dbdd31318a51330e25808784))
* **amazon-nl:** inStock selector ([b6964b0](https://www.github.com/jef/streetmerchant/commit/b6964b02f38c947fd476d86de35d5983e5b229dd)), closes [#1366](https://www.github.com/jef/streetmerchant/issues/1366)
* **bestbuy-ca:** add outOfStock text ([58f0a9c](https://www.github.com/jef/streetmerchant/commit/58f0a9c7740c46f3d820c8765dee5b0fc8516353)), closes [#1269](https://www.github.com/jef/streetmerchant/issues/1269)
* **bestbuy-ca:** update selectors to help false positives ([#1278](https://www.github.com/jef/streetmerchant/issues/1278)) ([0525119](https://www.github.com/jef/streetmerchant/commit/0525119b9bae47425a6c01720d6a1ea6ab8e6a02)), closes [#895](https://www.github.com/jef/streetmerchant/issues/895)
* **ci:** mkdocs deps ([1f63e99](https://www.github.com/jef/streetmerchant/commit/1f63e9980499ac567845473dc48e51cab78c838e))
* **config:** disable docker by default ([dca916b](https://www.github.com/jef/streetmerchant/commit/dca916b64e9ac2d05d5e6af19e5466b8a0623ed5))
* **config:** remove quotes ([ef452d8](https://www.github.com/jef/streetmerchant/commit/ef452d8e586536a5039ee532d655d2951d551ac3))
* **discord:** notification groupings ([ad0b2fe](https://www.github.com/jef/streetmerchant/commit/ad0b2fe525d6403735ddcbf4ef55b91eb36ac10a))
* **docker:** run in docker, and build scripts for docker ([#1291](https://www.github.com/jef/streetmerchant/issues/1291)) ([c74ea28](https://www.github.com/jef/streetmerchant/commit/c74ea28014ee0d827ea216083844f92e30f142c9))
* **eprice:** inStock selector ([5e1dfc3](https://www.github.com/jef/streetmerchant/commit/5e1dfc35680029620a1de7bc7a523140f2dae8af)), closes [#1067](https://www.github.com/jef/streetmerchant/issues/1067)
* **newegg:** dedupe nitro+ models ([#1300](https://www.github.com/jef/streetmerchant/issues/1300)) ([7329c6e](https://www.github.com/jef/streetmerchant/commit/7329c6ede0a5ab6d644b30ac878f4e7da11e43a8)), closes [#1230](https://www.github.com/jef/streetmerchant/issues/1230)
* **newegg:** price selector and mobile inStock ([c3beedc](https://www.github.com/jef/streetmerchant/commit/c3beedced82141e6bbb0735b3edb7c573907aa7a)), closes [#1356](https://www.github.com/jef/streetmerchant/issues/1356)
* **pushover:** add `expire` and `retry` ([0072dda](https://www.github.com/jef/streetmerchant/commit/0072dda90b637b93647cf3a35dc612cf43d89445)), closes [#983](https://www.github.com/jef/streetmerchant/issues/983)
* **store:** update UK stores ([#1372](https://www.github.com/jef/streetmerchant/issues/1372)) ([02825d0](https://www.github.com/jef/streetmerchant/commit/02825d009bd028f6dcdca02e2c155e77a7df8654))
* `.env` backwards compatibility ([9b7c7e2](https://www.github.com/jef/streetmerchant/commit/9b7c7e2881d756909af191094bda435ca7ef7e9b))
* add setRequestInterception ([#1312](https://www.github.com/jef/streetmerchant/issues/1312)) ([a44621f](https://www.github.com/jef/streetmerchant/commit/a44621f8f50cac9ba6614b0f89320d210370047a)), closes [#826](https://www.github.com/jef/streetmerchant/issues/826)
* **store:** italian store checks ([#1212](https://www.github.com/jef/streetmerchant/issues/1212)) ([e3eb386](https://www.github.com/jef/streetmerchant/commit/e3eb38655a3cefb85c4dbd573494955e06c72f71))
### Reverts
* allow users to still use `USER_AGENT` ([3386e8f](https://www.github.com/jef/streetmerchant/commit/3386e8f50da27a800c5289c3b6bd7a1f76e77a49))
## [3.2.0](https://www.github.com/jef/streetmerchant/compare/v3.1.0...v3.2.0) (2020-12-06) ## [3.2.0](https://www.github.com/jef/streetmerchant/compare/v3.1.0...v3.2.0) (2020-12-06)
+7 -8
View File
@@ -1,4 +1,4 @@
FROM node:14.15.0-alpine3.12 AS builder FROM node:15.10.0-alpine3.12 AS builder
LABEL org.opencontainers.image.source="https://github.com/jef/streetmerchant" LABEL org.opencontainers.image.source="https://github.com/jef/streetmerchant"
@@ -12,20 +12,20 @@ COPY tsconfig.json tsconfig.json
RUN npm ci RUN npm ci
COPY src/ src/ COPY src/ src/
RUN npm run build RUN npm run compile
RUN npm prune --production RUN npm prune --production
FROM node:14.15.0-alpine3.12 FROM node:15.10.0-alpine3.12
RUN apk add --no-cache chromium RUN apk add --no-cache chromium
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser \ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser \
DOCKER=true DOCKER=true
RUN addgroup -S appuser && adduser -S -g appuser appuser \ RUN addgroup -S appuser && adduser -S -g appuser appuser \
&& mkdir -p /home/appuser/Downloads /app \ && mkdir -p /home/appuser/Downloads /app \
&& chown -R appuser:appuser /home/appuser \ && chown -R appuser:appuser /home/appuser \
&& chown -R appuser:appuser /app && chown -R appuser:appuser /app
USER appuser USER appuser
@@ -35,7 +35,6 @@ COPY --from=builder /build/node_modules/ node_modules/
COPY --from=builder /build/build/ build/ COPY --from=builder /build/build/ build/
COPY web/ web/ COPY web/ web/
COPY package.json package.json COPY package.json package.json
COPY version.txt version.txt
ENTRYPOINT ["npm", "run"] ENTRYPOINT ["npm", "run"]
CMD ["start:production"] CMD ["start:production"]
+17
View File
@@ -0,0 +1,17 @@
.DEFAULT_GOAL := run
.PHONY: build
build:
docker-compose build streetmerchant
.PHONY: run
run:
docker-compose up
.PHONY: run-detached
run-detached:
docker-compose up -d
.PHONY: stop
stop:
docker-compose down
+22 -552
View File
@@ -1,562 +1,32 @@
<p align="center"><a href="https://github.com/jef/streetmerchant#readme"><img src="https://raw.githubusercontent.com/jef/streetmerchant/main/media/streetmerchant.png" alt="streetmerchant" /></a></p> <p align="center">
<p align="center">The world's easiest, most powerful stock checker <a href="https://jef.codes/streetmerchant"><img src="https://raw.githubusercontent.com/jef/streetmerchant/main/docs/assets/images/streetmerchant-banner.png" /></a>
<br/><br/> </p>
<a href="https://github.com/jef/streetmerchant/actions?query=workflow%3Aci"><img src="https://github.com/jef/streetmerchant/workflows/ci/badge.svg" /></a> <p align="center">
<a href="https://discord.gg/gbVY4vB9JF"><img src="https://img.shields.io/discord/773913070665859073.svg?label=chat&logo=discord&logoColor=ffffff&color=7389D8" alt="Tweet" /></a> <strong>The world's easiest, most powerful stock checker</strong>
<a href="https://twitter.com/intent/tweet?text=Beat%20the%20masses%20with%20streetmerchant&url=https://github.com/jef/streetmerchant&hashtags=typescript,opensource,bot,shopping"><img src="https://img.shields.io/badge/twitter-share-green?logo=twitter&style=social" alt="Tweet" /></a> </p>
<br/><br/> <p align="center">
<a href="https://github.com/jef/streetmerchant#faq">FAQ</a> | <a href="https://github.com/jef/streetmerchant/actions/workflows/ci.yaml"><img src="https://img.shields.io/github/workflow/status/jef/streetmerchant/ci?color=24292e&label=ci&logo=github&logoColor=tewt&style=flat-square" /></a>
<a href="https://github.com/jef/streetmerchant/issues">Issues</a> | <a href="https://discord.gg/gbVY4vB9JF"><img src="https://img.shields.io/discord/773913070665859073.svg?color=24292e&label=%20&logo=discord&logoColor=ffffff&style=flat-square" /></a>
<a href="https://github.com/jef/streetmerchant/wiki">Wiki</a> </p>
<p align="center">
<em>To get started, visit <a href="https://jef.codes/streetmerchant">jef.codes/streetmerchant</a></em>
</p> </p>
## Features ## Features
- Scrapes multiple websites for patterns of being stocked via API and Chromium First and foremost, this service _will not_ automatically buy for you.
- Opens browser when stock is available
- Ability to send notifications when stock is available
> :point_right: The bot _will not_ automatically buy for you - **Checks stock continuously** -- runs 24/7, 365, looking for the items you want.
- **Ready for checkout** -- ability to add to cart when available and even opens the browser for you.
- **Notifications galore** -- when you're not by your computer, worry free with notifications to most platforms and devices when an item comes in stock.
## Installation overview ## Quick start
Linux, macOS, and Windows are all capable operating systems. streetmerchant runs on Node.js 14:
You do not need any computer skills, smarts, or anything of that nature. You are very capable as you have made it this ```shell
far. Some basic understanding how a terminal, git, and or Node.js is a bonus, but that does not limit you to git clone https://github.com/jef/streetmerchant.git
getting `streetmerchant` running! cd streetmerchant && npm i && npm run start
### Installation: native
| Reference | Note |
|:---:|---|
| tag | Example, `v1.0.0`; stable |
| `main` | Latest HEAD; not tagged, could be unstable |
- [Node.js 14](https://nodejs.org/en/)
- [git](https://git-scm.com/)
- Clone this project `git clone https://github.com/jef/streetmerchant.git`
- To checkout a particular ref, use `git checkout <ref name>` after cloning
- Navigate to this project by entering `cd streetmerchant`
- Run `npm install`
- Copy `.env-example` to a new file `.env` and edit the `.env` file to your liking using
your [favorite text editor](https://code.visualstudio.com/)
- More on this in [customization](#Customization)
- Run `npm run start` to start
At any point you want the program to stop, use <kbd>Ctrl</kbd> + <kbd>C</kbd>.
> :point_right: Please visit the [wiki](https://github.com/jef/streetmerchant/wiki) if you need more help with installation.
### Installation: Docker
Available via GitHub Container Registry.
| Tag | Note |
|:---:|---|
| `latest` | Latest release; stable |
| `nightly` | Latest HEAD each day at midnight UTC; could be unstable |
```sh
# to run
docker run --cap-add=SYS_ADMIN \
-it --rm --env-file ./.env \
ghcr.io/jef/streetmerchant:nightly
# to test notifications
docker run --cap-add=SYS_ADMIN \
-it --rm --env-file ./.env \
ghcr.io/jef/streetmerchant:nightly test:notification:production
``` ```
### Developer notes For more information and customization, visit [jef.codes/streetmerchant/getting-started](https://jef.codes/streetmerchant/getting-started).
The command `npm run start:dev` can be used instead of `npm run start` to automatically restart the project when
filesystem changes are detected in the `src/` folder or `.env` file.
## Customization
To customize `streetmerchant`, make a copy of `.env-example` as `.env` and make any changes to your liking. _All
environment variables are **optional**._
<details>
<summary>Expand to see all available options</summary>
### Application
| Environment variable | Description | Notes |
|:---:|---|---|
| `AUTO_ADD_TO_CART` | Enable auto add to cart on support stores | Default: `true` |
| `BROWSER_TRUSTED` | Skip Chromium Sandbox | Useful for containerized environments, default: `false` |
| `HEADLESS` | Puppeteer to run headless or not | Debugging related, default: `true` |
| `INCOGNITO` | Puppeteer to run incognito or not | Debugging related, default: `false` |
| `IN_STOCK_WAIT_TIME` | Time to wait between requests to the same link if it has that card in stock | In seconds, default: `0` |
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels) | Debugging related, default: `info` |
| `LOW_BANDWIDTH` | Blocks images/fonts to reduce traffic | Disables ad blocker, default: `false` |
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found | Default: `true` |
| `PAGE_BACKOFF_MIN` | Minimum backoff time between retrying requests for the same store when a forbidden response is received | Default: `10000` |
| `PAGE_BACKOFF_MAX` | Maximum backoff time between retrying requests for the same store when a forbidden response is received | Default: `3600000` |
| `PAGE_SLEEP_MIN` | Minimum sleep time between queries of the same product page | In milliseconds, default: `5000` |
| `PAGE_SLEEP_MAX` | Maximum sleep time between queries of the same product page | In milliseconds, default: `10000` |
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds | `0` for infinite, default: `30000` |
| `PROXY_PROTOCOL` | protocol of proxy server, such as `socks5` | default: `http` |
| `PROXY_ADDRESS` | IP Address or fqdn of proxy server |
| `PROXY_PORT` | TCP Port number on which the proxy is listening for connections | Default: `80` |
| `SCREENSHOT` | Capture screenshot of page if a card is found | Default: `true` |
| `USER_AGENT` | Custom User-Agents headers for HTTP requests | Newline separated, e.g.: `USER_AGENT_STRING1 \n USER_AGENT_STRING2` | | Default: `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36` |
| `WEB_PORT` | Starts a webserver to be able to control the bot while it is running; optional | Default: disabled |
> :point_right: You can find your computer's user agent by [searching google for "my user agent"](http://google.com/search?q=my+user+agent)
> :point_right: Data usage is [known to be high](https://github.com/jef/streetmerchant/issues?q=is%3Aissue+sort%3Aupdated-desc+bandwidth). This is expected as the program scrapes many websites in parallel 24/7. To help reduce this, use `LOW_BANDWIDTH="true"`. We are looking into other solutions as well, but is low priority.
### Filters
| Environment variable | Description | Notes |
|:---:|---|---|
| `COUNTRY` | [Supported country](#supported-countries) you want to be scraped | Only used with `nvidia-api`, default: `usa` |
| `MAX_PRICE_SERIES_3060TI` | Maximum price allowed for a match, applies 3060 Ti series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. |
| `MAX_PRICE_SERIES_3070` | Maximum price allowed for a match, applies 3070 series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. |
| `MAX_PRICE_SERIES_3080` | Maximum price allowed for a match, applies 3080 series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. |
| `MAX_PRICE_SERIES_3090` | Maximum price allowed for a match, applies 3090 series cards (does not apply to these sites: Nvidia, Asus, EVGA) | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - Cards above `1234` will be skipped. |
| `MAX_PRICE_SERIES_CORSAIR_SF` | Maximum price allowed for a match, applies to Corsair PSUs | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - PSUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_RYZEN5600` | Maximum price allowed for a match, applies AMD 5600 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_RYZEN5800` | Maximum price allowed for a match, applies AMD 5800 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_RYZEN5900` | Maximum price allowed for a match, applies AMD 5900 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_RYZEN5950` | Maximum price allowed for a match, applies AMD 5950 series cpus | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - CPUs above `1234` will be skipped. |
| `MAX_PRICE_SERIES_SONYPS5C` | Maximum price allowed for a match, applies PS5 console | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - PS5 above `1234` will be skipped. |
| `MAX_PRICE_SERIES_SONYPS5DE` | Maximum price allowed for a match, applies PS5 digital edition | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - PS5 above `1234` will be skipped. |
| `MAX_PRICE_SERIES_TEST` | Maximum price allowed for a match, applies `test:series` | Default: leave empty for no limit, otherwise enter a price (enter whole dollar amounts only, avoid use of: dollar symbols, commas, and periods.) e.g.: `1234` - PS5 above `1234` will be skipped. |
| `MICROCENTER_LOCATION` | Specific MicroCenter location(s) to search | Comma separated, e.g.: `marietta,duluth`, default: `web` |
| `NVIDIA_ADD_TO_CART_ATTEMPTS` | The maximum number of times the `nvidia-api` add to cart feature will be attempted before failing | Default: `10` |
| `NVIDIA_SESSION_TTL` | The time in milliseconds to keep the cart active while using `nvidia-api` | Default: `60000` |
| `SHOW_ONLY_BRANDS` | Filter to show specified brands | Comma separated, e.g.: `evga,zotac` |
| `SHOW_ONLY_MODELS` | Filter to show specified models | Both supported formats are comma separated <br/><br/>1. Standard E.g.: `founders edition,rog strix` <br/><br/> 2. Advanced E.g: `MODEL:SERIES`, E.g: `founders edition:3090,rog strix` |
| `SHOW_ONLY_SERIES` | Filter to show specified series | Comma separated, e.g.: `3080,ryzen5900` |
| `STORES` | [Supported stores](#supported-stores) you want to be scraped | Both supported formats are comma separated <br/><br/>1. Standard E.g.: `"nvidia"` <br/><br/> 2. Advanced E.g: `STORE:PAGE_SLEEP_MIN:PAGE_SLEEP_MAX`, E.g: `nvidia:10000:30000` <br/><br/>Default: `nvidia` |
<details>
<summary>Supported stores</summary>
> :point_right: Used with the `STORES` variable.
| Stores | Environment variable |
|:---:|:---:|
| Adorama | `adorama`|
| Alternate (DE) | `alternate`|
| Alternate (NL) | `alternate-nl`|
| Amazon | `amazon`|
| Amazon (CA) | `amazon-ca`|
| Amazon (DE) | `amazon-de`|
| Amazon (DE) Warehouse | `amazon-de-warehouse`|
| Amazon (ES) | `amazon-es`|
| Amazon (FR) | `amazon-fr`|
| Amazon (IT) | `amazon-it`|
| Amazon (NL) | `amazon-nl`|
| Amazon (UK) | `amazon-uk`|
| AMD | `amd`|
| AMD (CA) | `amd-ca`|
| AMD (DE) | `amd-de`|
| AMD (IT) | `amd-it`|
| AntOnline | `antonline`|
| Argos (UK) | `argos`|
| Aria PC (UK) | `aria`|
| ARLT (DE) | `arlt`|
| ASUS | `asus` |
| ASUS (DE) | `asus-de` |
| Azerty (NL) | `azerty`|
| B&H | `bandh`|
| Best Buy | `bestbuy`|
| Best Buy (CA) | `bestbuy-ca`|
| Box (UK) | `box`|
| CanadaComputers (CA) | `canadacomputers` |
| Caseking (DE) | `caseking`|
| CCL (UK) | `ccl`|
| Comet (IT) | `comet`|
| Computeruniverse (DE) | `computeruniverse` |
| Coolblue (NL) | `coolblue`|
| Coolmod (ES) | `coolmod`|
| Corsair | `corsair`|
| Currys (UK) | `currys`|
| Cyberport (DE) | `cyberport` |
| eBuyer (UK) | `ebuyer`|
| El Corte Inglés | `elcorteingles`|
| ePrice (IT) | `eprice`|
| Euronics (IT) | `euronics`|
| Euronics (DE) | `euronics-de`|
| EVGA | `evga`|
| EVGA (EU) | `evga-eu`|
| Expert | `expert`|
| Galaxus (DE) | `galaxus`|
| Game (UK) | `game`|
| Gamestop | `gamestop`|
| Gamestop (DE) | `gamestop-de`|
| Kabum (BR) | `kabum`|
| Mediamarkt (DE) | `mediamarkt`|
| Medimax | `medimax`|
| MemoryExpress (CA) | `memoryexpress`|
| Micro Center | `microcenter`|
| Mindfactory (DE) | `mindfactory` |
| Newegg | `newegg`|
| Newegg (CA) | `newegg-ca`|
| Notebooksbilliger (DE) |`notebooksbilliger`|
| Novatech (UK) | `novatech`|
| Nvidia | `nvidia`|
| Nvidia (API) | `nvidia-api`|
| Office Depot | `officedepot`|
| Otto | `otto`|
| Overclockers (UK) | `overclockers`|
| PCComponentes (ES) | `pccomponentes`|
| PlayStation | `playstation`|
| PNY | `pny`|
| Proshop (DE) | `proshop-de`|
| Proshop (DK) | `proshop-dk`|
| Saturn (DE) | `saturn`|
| Scan (UK) | `scan`|
| Smyths Toys (UK) | `smythstoys`|
| Spielegrotte | `spielegrotte`|
| Target | `target`|
| Unieuro (IT) | `unieuro`|
| Very (UK) | `very`|
| Walmart | `walmart`|
| Wipoid | `wipoid`|
| Zotac | `zotac`|
| TopAchat | `topachat`|
<details>
<summary>Micro Center stores</summary>
> :point_right: Used with the `MICROCENTER_LOCATION` variable.
> :point_right: Before using `web`, please review [this issue comment](https://github.com/jef/streetmerchant/issues/442#issuecomment-703297393).
| Store name |
|:---:|
| `brooklyn` |
| `brentwood` |
| `cambridge` |
| `chicago` |
| `columbus` |
| `dallas` |
| `denver` |
| `duluth` |
| `fairfax` |
| `flushing` |
| `houston` |
| `madison-heights` |
| `marietta` |
| `mayfield-heights` |
| `north-jersey` |
| `overland-park` |
| `parkville` |
| `rockville` |
| `sharonville` |
| `st-davids` |
| `st-louis-park` |
| `tustin` |
| `westbury` |
| `westmont` |
| `yonkers` |
</details>
</details>
<details>
<summary>Supported brands and models</summary>
> :point_right: Used with the `SHOW_ONLY_BRANDS` and `SHOW_ONLY_MODELS` variables.
| Brand | Model |
|:---:|---|
| `amd` | `5600x`, `5800x`, `5900x`, `5950x`, `amd reference` |
| `asus` | `dual`, `dual oc`, `strix`, `strix oc`, `tuf`, `tuf oc` |
| `corsair` | `750 platinum`, `600 platinum` |
| `evga` | `ftw3`, `ftw3 ultra`, `xc3`, `xc3 black`, `xc3 ultra` |
| `gainward` | `phantom gs`, `phoenix`, `phoenix gs`, `phoenix gs oc` |
| `gigabyte` | `aorus master`, `aorus xtreme`, `eagle`, `eagle oc`, `gaming`, `gaming oc`, `turbo`, `vision`, `vision oc` |
| `inno3d` | `gaming x3`, `ichill x3`, `ichill x4`, `twin x2 oc` |
| `kfa2` | `sg`, `sg oc` |
| `microsoft` | `xbox series x`, `xbox series s` |
| `msi` | `gaming x trio`, `ventus 2x oc`, `ventus 3x`, `ventus 3x oc` |
| `nvidia` | `founders edition` |
| `palit` | `gamerock oc`, `gaming pro`, `gaming pro oc` |
| `pny` | `dual fan`, `xlr8 revel`, `xlr8 uprising` |
| `sony` | `ps5 console`, `ps5 digital` |
| `xfx` | `merc`, `amd reference` |
| `zotac` | `amp holo`, `amp extreme holo`, `trinity`, `trinity oc`, `twin edge`, `twin edge oc` |
</details>
<details>
<summary>Supported series</summary>
> :point_right: Used with the `SHOW_ONLY_SERIES` variable.
| Series | Environment variable |
|:---:|:---:|
| `AMD Ryzen 5600x` | `ryzen5600` |
| `AMD Ryzen 5800x` | `ryzen5800` |
| `AMD Ryzen 5900x` | `ryzen5900` |
| `AMD Ryzen 5950x` | `ryzen5950` |
| `AMD RX 6800` | `rx6800` |
| `AMD RX 6800XT` | `rx6800xt` |
| `AMD RX 6900XT` | `rx6900xt` |
| `Nvidia RTX 3060 Ti` | `3060ti` |
| `Nvidia RTX 3070` | `3070` |
| `Nvidia RTX 3080` | `3080` |
| `Nvidia RTX 3090` | `3090` |
| `Corsair SFX PSU` | `sf` |
| `Sony PS5` | `sonyps5c` |
| `Sony PS5 Digital Edition` | `sonyps5de` |
| `Xbox Series S` | `xboxss` |
| `Xbox Series X` | `xboxsx` |
</details>
<details>
<summary>Supported countries (used with nvidia and nvidia-api)</summary>
> :point_right: Used with the `COUNTRY` variable.
| Country | 3080 FE | 3090 FE | Test Card | Notes |
|:---:|:---:|:---:|:---:|:---:|
| austria | `✔` | `✔` | `✔` | |
| belgium | `✔` | `✔` | `✔` | |
| canada | `✔` | `✔` | `✔` | |
| czechia | `✔` | `✔` | `✔` | |
| denmark | `✔` | | `✔` | Missing RTX 3090 |
| finland | `✔` | | `✔` | Missing RTX 3090 |
| france | `✔` | `✔` | `✔` | |
| germany | `✔` | `✔` | `✔` | |
| great_britain | `✔` | `✔` | `✔` | |
| ireland | `✔` | `✔` | `✔` | |
| italy | `✔` | `✔` | `✔` | |
| luxembourg | `✔` | `✔` | `✔` | |
| netherlands | `✔` | `✔` | `✔` | |
| norway | `✔` | `✔` | `✔` | |
| poland | `✔` | `✔` | `✔` | |
| portugal | `✔` | | | RTX 3080 only |
| spain | `✔` | `✔` | `✔` | |
| sweden | `✔` | `✔` | `✔` | |
| usa | `✔` | `✔` | `✔` | |
</details>
### Notifications
> :point_right: You can test your notification configuration by running `npm run test:notification`.
<details>
<summary>Desktop</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `DESKTOP_NOTIFICATIONS` | Display desktop notifications using [node-notifier](https://www.npmjs.com/package/node-notifier) | Default: `false` |
| `PLAY_SOUND` | Play this sound notification if a card is found | Relative path accepted, valid formats: wav, mp3, flac, E.g.: `path/to/notification.wav`, [free sounds available](https://notificationsounds.com/) |
</details>
<details>
<summary>Discord</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `DISCORD_NOTIFY_GROUP` | Discord group you would like to notify | Can be comma separated, use role ID, E.g.: `<@&2834729847239842>` |
| `DISCORD_WEB_HOOK` | Discord Web Hook URL | Can be comma separated, use whole webhook URL |
</details>
<details>
<summary>Email and SMS</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `EMAIL_PASSWORD` | Gmail password | See below if you have MFA |
| `EMAIL_TO` | Destination Email | Defaults to username if not set. Can be comma separated |
| `EMAIL_USERNAME` | Gmail address | E.g.: `jensen.robbed.us@gmail.com` |
| `PHONE_CARRIER` | [Supported carriers](#supported-carriers) for SMS | E.g.: `att` or `att,verizon,google`, email configuration required. If multiple phone numbers are listed, enter a carrier for each phone number |
| `PHONE_NUMBER` | 10 digit phone number(s) | E.g.: `1234567890` or `1234567890,0987654321,11112223333`, email configuration required |
| `SMTP_ADDRESS` | IP Address or fqdn of smtp server |
| `SMTP_PORT` | TCP Port number on which the smtp server is listening for connections | Default: `25` |
> :point_right: If you have multi-factor authentication (MFA), you will need to create an [app password](https://myaccount.google.com/apppasswords) and use this instead of your Gmail password.
#### Supported carriers
| Carrier | Environment variable | Notes |
|:---:|:---:|:---:|
| AT&T | `att` | |
| AT&T Prepaid | `attgo` | |
| Bell | `bell` | |
| Fido | `fido` | |
| Google | `google`| |
| Koodo | `koodo` | |
| Mint | `mint`| |
| Rogers | `rogers` | |
| Sprint | `sprint`| |
| Telus | `telus`| |
| T-Mobile | `tmobile`| |
| Verizon | `verizon`| Works with Visible |
| Virgin | `virgin`| |
| Virgin (CA) | `virgin-ca`| |
</details>
<details>
<summary>MQTT</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `MQTT_BROKER_ADDRESS` | IP address or URL of MQTT Broker | e.g 192.168.1.xxx or broker.hivemq.com |
| `MQTT_BROKER_PORT` | Network port of MQTT Broker | Default: 1883 |
| `MQTT_CLIENT_ID` | Unique ClientID (only if required by MQTT Broker), typically not required when only publishing alerts | eg. client-123456 |
| `MQTT_PASSWORD` | MQTT password - only use with MQTT brokers on private networks, if required. Will not be sent over public networks for safety. | e.g mysecret |
| `MQTT_QOS` | QoS level for published alerts to broker (https://www.npmjs.com/package/mqtt#about-qos) | Default: 0, Can be 0, 1, or 2 |
| `MQTT_TOPIC` | Topic to publish alerts to. Can include %store%, %series%, %brand%, %model% for dynamic topics | Default: streetmerchant/alert e.g nv-alert/%store%/%series%/%brand%/%model%/alert |
| `MQTT_USERNAME` | MQTT username - (only if required by MQTT Broker) | e.g myusername |
</details>
<details>
<summary>PagerDuty</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `PAGERDUTY_INTEGRATION_KEY` | PagerDuty Events API v2 Integration Key. Obtain one in PagerDuty - <Service you want to use> - Integrations | |
| `PAGERDUTY_SEVERITY` | Severity of PagerDuty events | Default: `info` |
</details>
<details>
<summary>Philips Hue</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `PHILIPS_HUE_API_KEY` | Hue Bridge API Key | **Required**, generate key using instructions [here](https://developers.meethue.com/develop/get-started-2/). This will be used for both LAN and cloud access over the official Remote Hue API. |
| `PHILIPS_HUE_LAN_BRIDGE_IP` | LAN IP Address of your Hue Bridge | LAN only, e.g. `192.168.x.x`|
| `PHILIPS_HUE_LIGHT_IDS` | Light IDs | Optional (all if not supplied). Comma seperated, e.g.: `1`, `2` |See Hue App → About for IDs |
| `PHILIPS_HUE_LIGHT_COLOR` | Color in RGB Format | Optional (NVIDIA green if not supplied). Comma separated, e.g.: `255`, `255`, `255`|
| `PHILIPS_HUE_LIGHT_PATTERN` | `blink` or empty | Optional - lights will flash for 30 seconds if `blink` is supplied. |
| `PHILIPS_HUE_CLOUD_ACCESS_TOKEN` | Remote Access Token | Cloud only, the access token obtained from Philips's Remote Hue API. Instructions to generate [here](https://developers.meethue.com/develop/hue-api/remote-authentication/). |
| `PHILIPS_HUE_CLOUD_REFRESH_TOKEN` | Remote Refresh Token | Cloud only, the refresh token obtained from Philips's Remote Hue API. |
| `PHILIPS_HUE_CLOUD_CLIENT_ID` | Remote Client ID | Cloud only, the client ID to use when accessing the Remote Hue API. |
| `PHILIPS_HUE_CLOUD_CLIENT_SECRET` | Remote Client Secret | Cloud only, the client secret to use when accessing the Remote Hue API. |
> :point_right: [Video demonstration](https://vimeo.com/476083242)
</details>
<details>
<summary>Pushbullet</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `PUSHBULLET` | PushBullet API key | Generate at https://www.pushbullet.com/#settings/account | |
</details>
<details>
<summary>Pushover</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `PUSHOVER_TOKEN` | Pushover access token | Generate at https://pushover.net/apps/build | |
| `PUSHOVER_USER` | Pushover username | |
| `PUSHOVER_PRIORITY` | Pushover message priority |
</details>
<details>
<summary>Slack</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `SLACK_CHANNEL` | Slack channel for posting | E.g.: `update`, no need for `#` |
| `SLACK_TOKEN` | Slack API token | |
</details>
<details>
<summary>Telegram</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `TELEGRAM_ACCESS_TOKEN` | Telegram access token | |
| `TELEGRAM_CHAT_ID` | Telegram chat ID | Comma seperated, e.g.: `123456789`, `123456789,987654321` |
</details>
<details>
<summary>Twilio</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `TWILIO_ACCOUNT_SID` | Twilio Account SID | Can be found on twilio.com/console |
| `TWILIO_AUTH_TOKEN` | Twilio Auth Token | Can be found on twilio.com/console |
| `TWILIO_FROM_NUMBER` | Twilio provided phone number to send messages from | Include country code e.g +4401234567890 |
| `TWILIO_TO_NUMBER` | Mobile number to send SMS to | Include country code e.g +4401234567890 |
</details>
<details>
<summary>Twitter</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `TWITTER_ACCESS_TOKEN_KEY` | Twitter Token Key | |
| `TWITTER_ACCESS_TOKEN_SECRET` | Twitter Token Secret | |
| `TWITTER_CONSUMER_KEY` | Twitter Consumer Key | Generate all Twitter keys at: https://developer.twitter.com/ |
| `TWITTER_CONSUMER_SECRET` | Twitter Consumer Secret | |
| `TWITTER_TWEET_TAGS` | Optional list of hashtags to append to the tweet message | E.g.: `#nvidia #nvidiastock` |
</details>
<details>
<summary>Twitch</summary>
| Environment variable | Description | Notes |
|:---:|---|---|
| `TWITCH_CLIENT_ID` | Twitch client ID | |
| `TWITCH_CLIENT_SECRET`| Twitch client secret | |
| `TWITCH_ACCESS_TOKEN` | Twitch access token | |
| `TWITCH_REFRESH_TOKEN` | Twitch refresh token | |
| `TWITCH_CHANNEL` | Twitch channel | |
</details>
</details>
## FAQ
**Q: What's Node.js and how do I install it?** Visit [their website](https://nodejs.org/en/) and download and install
it. Very straight forward. Otherwise, Google more information related to your system needs.
**Q: Will this harm my computer?** No.
**Q: Have you gotten a card yet?** YES! :tada: :rocket:
<details>
<summary>Screenshot</summary>
![screenshot](https://i.imgur.com/59CRzGq.png)
</details>
**Q: Will I get banned from of the stores?** Perhaps, but it's the risk we're willing to take! To help minimize this, take a look at [#1050](https://github.com/jef/streetmerchant/issues/1050).
**Q: I got a problem and need help!** File an [issue](https://github.com/jef/streetmerchant/issues/new/choose). I'll do my best to get to you. I work a full time job and this is only a hobby of mine.
**Q: How do I get the latest code?** Take look at this [wiki page](https://github.com/jef/streetmerchant/wiki/Troubleshoot:-General:-Getting-the-latest-code).
**Q: Why don't my notifications work?** There is probably an [issue](https://github.com/jef/streetmerchant/issues?q=is%3Aissue+sort%3Aupdated-desc+sound+is%3Aclosed) that has [already](https://github.com/jef/streetmerchant/issues/182) [been](https://github.com/jef/streetmerchant/issues/116) [resolved](https://github.com/jef/streetmerchant/issues/155).
**Q: I'd love to contribute, how do I do that?** Make a [pull request](https://github.com/jef/streetmerchant/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc)! All contributions are welcome.
**Q: How do I add a store?** Take a look at [this page](https://github.com/jef/streetmerchant/wiki/Help:-Configuration:-Adding-a-store) on the wiki.
**Q: Why do I have to download all this stuff just to get this bot working?** Well, I would rather you didn't either. See [#11](https://github.com/jef/streetmerchant/issues/11).
**Q: Why does Amazon show an error page (with a picture of an animal) instead of adding to cart or going to the detail page?** This is intended; see [#733](https://github.com/jef/streetmerchant/issues/733). This indicates that the item is out of stock and only available from a third-party seller (often at a markup).
**Q: I'm using streetmerchant in the cloud and X isn't working.** There is _a lot_ of undefined behavior with using streetmerchant in the cloud. Some sites may block IPs from your cloud provider. It is possible that a VPN will help circumvent these problems.
<p align="center"><a href="https://github.com/jef/streetmerchant#readme"><img src="https://raw.githubusercontent.com/jef/streetmerchant/main/media/terminal.gif" /></a></p>
+10
View File
@@ -0,0 +1,10 @@
version: '3.0'
services:
streetmerchant:
image: ghcr.io/jef/streetmerchant:latest
build:
context: .
dockerfile: Dockerfile
container_name: streetmerchant
env_file:
- dotenv
+11
View File
@@ -0,0 +1,11 @@
# About
## Background
Remember on September 17th, 2020 at 9 AM EST the Nvidia site went from **Notify Me** to **Out of Stock** instantly? Well, they didn't sell any cards. The real reason was that they weren't ready to sell them to us yet. That's right, they turned off their third party storefronts because they were being overloaded with our clicks. They still kept the other cards that use those APIs online, but they removed that one. It was re-enabled at some point for a brief moment, but the same thing happened -- servers overloaded with API requests.
This is where streetmerchant comes in. It doesn't buy anything for you, but it makes it more of a stress free job to refresh and check sites while you go about your daily business. People took off work, missed appointments, and gave up other lively needs in hopes to buy a _graphics card_. Now we reach beyond graphics cards in hopes for other products!
Please enjoy,
jef
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

+1
View File
@@ -0,0 +1 @@
../CHANGELOG.md
+67
View File
@@ -0,0 +1,67 @@
# FAQ
## What's Node.js and how do I install it?
Visit [their website](https://nodejs.org/en/) and download and install it. Very straight forward. Otherwise, Google more information related to your system needs.
## Will this harm my computer?
No.
## Have you gotten a card yet?
[Sure did!](https://i.imgur.com/59CRzGq.png)
## Will I get banned from of the stores?
Perhaps, but it's the risk we're willing to take! To help minimize this, take a look at [#1050](https://github.com/jef/streetmerchant/issues/1050).
## I got a problem and need help
File an [issue](https://github.com/jef/streetmerchant/issues/new/choose). I'll do my best to get to you. I work a full time job and this is only a hobby of mine.
## How do I get the latest code?
Run the following commands:
```shell
git pull origin main
npm install
npm run start
```
If you changed the code at all, this will most likely fail. You can clear out your changes by doing:
```shell
git checkout .
git pull origin main
npm install
npm run start
```
You can also to [git-stash](https://git-scm.com/docs/git-stash), but we won't expand on that here.
## Why don't my notifications work?
There is probably an [issue](https://github.com/jef/streetmerchant/issues?q=is%3Aissue+sort%3Aupdated-desc+sound+is%3Aclosed) that has [already](https://github.com/jef/streetmerchant/issues/182) [been](https://github.com/jef/streetmerchant/issues/116) [resolved](https://github.com/jef/streetmerchant/issues/155).
## I'd love to contribute, how do I do that?
Make a [pull request](https://github.com/jef/streetmerchant/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc)! All contributions are welcome.
## How do I add a store?
Here's a little write-up I did: [Adding a store](help/general.md#adding-a-store).
## Why do I have to download all this stuff just to get this bot working?
Well, I would rather you didn't either. See [#11](https://github.com/jef/streetmerchant/issues/11).
## Why does Amazon show an error page (with a picture of an animal) instead of adding to cart or going to the detail page?
This is intended; see [#733](https://github.com/jef/streetmerchant/issues/733). This indicates that the item is out of stock and only available from a third-party seller (often at a markup).
## I'm using streetmerchant in the cloud and X isn't working.
There is _a lot_ of undefined behavior with using streetmerchant in the cloud. Some sites may block IPs from your cloud provider. It is possible that a VPN will help circumvent these problems.
+105
View File
@@ -0,0 +1,105 @@
# Getting started
You do not need any computer skills, smarts, or anything of that nature. You are very capable as you have made it this far. Some basic understanding how a terminal, git, and or Node.js is a bonus, but that does not limit you to getting streetmerchant running!
## Prerequisites
- [git](https://git-scm.com/)
- Either [Node.js 14](https://nodejs.org/en/) or [Docker (1.13.0+)](https://docs.docker.com/get-docker/) (advanced users)
## Using Node.js
| Reference | Note |
|:---:|---|
| tag | Example, `v1.0.0`; stable |
| `main` | Latest HEAD; not tagged, could be unstable |
1. Download [Node.js 14](https://nodejs.org/en/)
1. Clone this project `git clone https://github.com/jef/streetmerchant.git`.
1. To checkout a particular reference, use `git checkout <ref name>` after cloning.
1. Navigate to this project by entering `cd streetmerchant`.
1. Run `npm install`.
1. Make a copy of `dotenv-example` and name it `dotenv`.
1. Edit the `dotenv` file to your liking using a text editor (like [vscode](https://code.visualstudio.com/)).
1. Run `npm run start` to start.
At any point you want the program to stop, use ++ctrl+c++.
???+ tip
Community based help can also be found on the [wiki](https://github.com/jef/streetmerchant/wiki). Feel free to check that out if you're having problems running. If you're still having problems running, you're probably not the first. Make some searches through the [GitHub issues](https://github.com/jef/streetmerchant/issues) before making one.
## Using Docker
Available via GitHub Container Registry.
| Tag | Note |
|:---:|---|
| `latest` | Latest release; stable |
| `nightly` | Latest HEAD each day at midnight UTC; could be unstable |
```sh
# to run docker nightly
docker run -it --rm \
--env-file ./dotenv \
ghcr.io/jef/streetmerchant:nightly
# to test notifications
docker run -it --rm \
--env-file ./dotenv \
ghcr.io/jef/streetmerchant:nightly test:notification:production
```
See [Developing in docker](#developing-in-docker) for more information
## Customization
To customize streetmerchant, make a copy of `dotenv-example` as `dotenv` and make any changes to your liking. View [Reference](reference/application.md) for more information on variables and their usage.
???+ tip
All environment variables are optional.
## For developers
### Developing in Node.js
The command `npm run start:dev` can be used instead of `npm run start` to automatically restart the project when filesystem changes are detected in the `src/` folder or `dotenv` file.
Use `npm run lint` to see any linting uses and `npm run fix` to automatically fix the issues it can.
### Developing in Docker
#### Prerequisites
- [Docker (1.13.0+)](https://docs.docker.com/get-docker/)
- [GNU Make](https://www.gnu.org/software/make/)
- Optional, but increases quality of life
- [Docker Compose](https://docs.docker.com/compose/install/)
- Depending on your system, you may already have this. Check before installing.
#### Starting with `docker-compose`
1. Make a copy of `dotenv-example` and name it `dotenv`.
1. Edit the `dotenv` file to your liking using a text editor (like [vscode](https://code.visualstudio.com/)).
1. If you're using `make`, you can run `make run` to start and `make stop` to stop.
1. There are more options in the `Makefile`, feel free to explore.
1. If you do not have `make`, you can run `docker-compose` directly:
```shell
# To start
# Use `-d` if you want to run in detached mode
# Use `--build` if you want to build the image before running (default image is latest in GitHub Container Registry).
docker-compose up
# To break down
docker-compose down
```
???+ note
If you are using `WEB_PORT`, then you will need to add the following to docker-compose:
```
ports:
- "<WEB_PORT>:<WEB_PORT>"
```
Replace `<WEB_PORT>` with the value you gave in your `dotenv`.
+133
View File
@@ -0,0 +1,133 @@
# General
## Adding a store
???+ note
This is subject to change in the future
In the following examples, I will be using "NewStore" as the store I'm wanting to add.
### Creating a store file
First, create a TypeScript file in `src/store/model`. In this example, I'll create a file named `new-store.ts`. At this point, you can copy and paste any of the other stores and change accordingly.
#### How to grab a container (aka selector)
For the containers, what you'll wanna do is use <kbd>F12</kbd> on the site you want to Inspect and click this button
![image](https://user-images.githubusercontent.com/12074633/100685326-2669da80-334a-11eb-93a9-8ac2c659f5f3.png)
Hover over the item you want and it should give you the context:
![image](https://user-images.githubusercontent.com/12074633/100685310-1e119f80-334a-11eb-91aa-b77b0ff6c2b1.png)
You can also right-click on any website element and select 'Inspect'. That should also give you the same results.
Some people will decide to choose a parent element as it can be unique. Like this case!
I'd rather use `.button.spin-button.prod-ProductCTA--primary.button--primary` instead of `.spin-button-children` as there are probably other elements on the page that are also `.spin-button-children`.
The reason why we use these selectors anyway is to wait for the webpage to load these specific elements, to help eliminate false positives.
For easily getting the selector, you can also copy it by right clicking on the tag, Copy > Copy selector.
![image](https://user-images.githubusercontent.com/12074633/100933096-d2323800-34ba-11eb-8f06-d106f43b7ad3.png)
### Updating the models
You'll now want to add the new store to `src/store/model/index.ts`.
This is what it will look like:
```diff
--- a/src/store/model/index.ts
+++ b/src/store/model/index.ts
@@ -48,6 +48,7 @@ import {MicroCenter} from './microcenter';
import {Mindfactory} from './mindfactory';
import {Newegg} from './newegg';
import {NeweggCa} from './newegg-ca';
+import {NewStore} from './new-store';
import {Notebooksbilliger} from './notebooksbilliger';
import {Novatech} from './novatech';
import {Nvidia} from './nvidia';
@@ -123,6 +124,7 @@ export const storeList = new Map([
[Mindfactory.name, Mindfactory],
[Newegg.name, Newegg],
[NeweggCa.name, NeweggCa],
+ [NewStore.name, NewStore],
[Notebooksbilliger.name, Notebooksbilliger],
[Novatech.name, Novatech],
[Nvidia.name, Nvidia],
```
After that, you're pretty much set. If you plan on adding new models or series, you will have to add them to `src/store/model/store.ts` and `src/config.ts`.
Here's an example:
```diff
--- a/src/store/model/store.ts
+++ b/src/store/model/store.ts
@@ -23,6 +23,7 @@ export type Brand =
| 'kfa2'
| 'microsoft'
| 'msi'
+ | 'new brand'
| 'nvidia'
| 'palit'
| 'pny'
@@ -37,6 +38,7 @@ export type Series =
| '3070'
| '3080'
| '3090'
+ | 'new series'
| 'rx6800'
| 'rx6800xt'
| 'rx6900xt'
@@ -83,6 +85,7 @@ export type Model =
| 'ichill x2'
| 'ichill x3'
| 'ichill x4'
+ | 'new model'
| 'nitro+'
| 'nitro oc se'
| 'nitro oc'
```
```diff
--- a/src/config.ts
+++ b/src/config.ts
@@ -308,6 +308,7 @@ const store = {
country: envOrString(process.env.COUNTRY, 'usa'),
maxPrice: {
series: {
+ 'new series': -1,
'3060ti': envOrNumber(process.env.MAX_PRICE_SERIES_3060TI),
3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070),
3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080),
@@ -337,6 +338,7 @@ const store = {
};
}),
showOnlySeries: envOrArray(process.env.SHOW_ONLY_SERIES, [
+ 'new series',
'3060ti',
'3070',
'3080',
```
And voila! You're done! If you'd like to contribute to the project, feel free to create a [Pull Request](https://github.com/jef/streetmerchant/compare)! Don't forget to add the store (and brand, model, and series if you added) to the `README.md`.
???+ tip
Here's an [example](https://github.com/jef/streetmerchant/commit/af96c5f2e808af7496f3c3299e4cf173105de48b). If you'd like to include a max price, you can add `MAX_PRICE_SERIES_NEW_SERIES` to the above instead of the `-1`.
## Creating a Discord webhook
Take a look at Discord's [Intro to Webhooks](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks), that should get you going.
This is the main portion:
![image](https://user-images.githubusercontent.com/12074633/101225522-a4d2bf00-365f-11eb-8c35-d0f013e561d6.png)
![image](https://user-images.githubusercontent.com/12074633/101225550-b87e2580-365f-11eb-8be6-48b324b37916.png)
Use the full URL that you just copied and set that value to `DISCORD_WEB_HOOK`.
+42
View File
@@ -0,0 +1,42 @@
# Troubleshoot
## Captcha issues
### Option 1
If you're running into problems, try running in headful mode: `HEADLESS="false"`.
This will open a browser and run streetmerchant. Note that this isn't a great solution for those running in a headless environment, i.e.: VPS, cloud, docker. Instead, it would be a good solution for those running on separate computer that won't be blocked by running in the background.
### Option 2
As a last case scenario, use `PUPPETEER_EXECUTABLE_PATH`. This will use your computer's Chrome browser. You can run this is headless or headful mode.
> From the puppeteer doc:
>
> `PUPPETEER_EXECUTABLE_PATH` - specify an executable path to be used in `puppeteer.launch`. See [puppeteer.launch([options])](https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#puppeteerlaunchoptions) on how the executable path is inferred. **BEWARE**: Puppeteer is only [guaranteed to work](https://github.com/puppeteer/puppeteer/#q-why-doesnt-puppeteer-vxxx-work-with-chromium-vyyy) with the bundled Chromium, use at your own risk.
For example:
`dotenv`:
```
PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable
```
This will vary depending on your operating system and install path. Please use full paths.
## macOS code signing
If you're getting a popup like this:
![image](https://user-images.githubusercontent.com/12074633/93616357-a36bf180-f9a2-11ea-82fa-da2a44807802.png)
Then run this command:
```sh
sudo codesign --force --deep --sign - ./node_modules/puppeteer/.local-chromium/mac-800071/chrome-mac/Chromium.app
```
???+ tip
The `mac-800071` may be different on your machine, so I would start from `./node_modules/puppeteer/.local-chromium` and auto complete from there.
+38
View File
@@ -0,0 +1,38 @@
[![streetmerchant](assets/images/streetmerchant-banner.png)](https://jef.codes/streetmerchant)
## Features
First and foremost, this service _will not_ automatically buy for you.
- **Checks stock continuously** -- runs 24/7, 365, looking for the items you want.
- **Ready for checkout** -- ability to add to cart when available and even opens the browser for you.
- **Notifications galore** -- when you're not by your computer, worry free with notifications to most platforms and devices when an item comes in stock.
## Getting started
You'll find most of the content on the left sidebar. The right sidebar will help you navigate a page.
### Contributing
- Give helpful tips and tricks to the [community based wiki](https://github.com/jef/streetmerchant/wiki).
- Add to the documentation through [pull requests](https://github.com/jef/streetmerchant/pulls).
- Fork and make a pull request to the repository.
### Looking for help
- Have an idea, question, or need help? Visit our [GitHub discussion board](https://github.com/jef/streetmerchant/discussions).
- Ran into a bug? File a [GitHub issue](https://github.com/jef/streetmerchant/issues/new/choose).
- Looking to hang out and talk shop? Join us on [Discord](https://discord.gg/gbVY4vB9JF).
### Supporting the project
The best way to support me is to donate to [Diabetes Research Institute](https://www.diabetesresearch.org/Give).
> The Diabetes Research Institute leads the world in cure-focused diabetes research.
>
> [diabetesresearch.org](https://www.diabetesresearch.org/about-DRI)
If you feel inclined to support me directly, here are those options:
- [GitHub Sponsors](https://github.com/sponsors/jef)
- [Paypal](https://www.paypal.me/jxf)
+6
View File
@@ -0,0 +1,6 @@
app.document$.subscribe(() => {
const tables = document.querySelectorAll('article table');
tables.forEach(table => {
new Tablesort(table);
});
});
+30
View File
@@ -0,0 +1,30 @@
{% extends "base.html" %}
{% block extrahead %}
{% set title = config.site_name %}
{% if page and page.meta and page.meta.title %}
{% set title = title ~ " - " ~ page.meta.title %}
{% elif page and page.title and not page.is_homepage %}
{% set title = title ~ " - " ~ page.title | striptags %}
{% endif %}
{% set image = config.site_url ~ '/assets/images/streetmerchant-github.png' %}
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ config.site_description }}" />
<meta property="og:url" content="{{ page.canonical_url }}" />
<meta property="og:image" content="{{ image }}" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="640" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@hijxf" />
<meta name="twitter:creator" content="@hijxf" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ config.site_description }}" />
<meta name="twitter:image" content="{{ image }}" />
{% endblock %}
+30
View File
@@ -0,0 +1,30 @@
# Application
| Environment variable | Description |
|:---:|---|
| `AUTO_ADD_TO_CART` | Enable auto add to cart on support stores, default: `true` |
| `BROWSER_TRUSTED` | Skip Chromium Sandbox. Useful for containerized environments, default: `false` |
| `HEADLESS` | Puppeteer to run headless or not. Debugging related, default: `true` |
| `INCOGNITO` | Puppeteer to run incognito or not. Debugging related, default: `false` |
| `IN_STOCK_WAIT_TIME` | Time to wait between requests to the same link if it has that card in stock. In seconds, default: `0` |
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels). Debugging related, default: `info` |
| `LOW_BANDWIDTH` | Blocks images/fonts to reduce traffic. Disables ad blocker, default: `false` |
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found. Default: `true` |
| `PAGE_BACKOFF_MIN` | Minimum backoff time between retrying requests for the same store when a forbidden response is received. Default: `10000` |
| `PAGE_BACKOFF_MAX` | Maximum backoff time between retrying requests for the same store when a forbidden response is received. Default: `3600000` |
| `PAGE_SLEEP_MIN` | Minimum sleep time between queries of the same product page. In milliseconds, default: `5000` |
| `PAGE_SLEEP_MAX` | Maximum sleep time between queries of the same product page. In milliseconds, default: `10000` |
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds. `0` for infinite, default: `30000` |
| `PROXY_PROTOCOL` | Protocol of proxy server, such as `socks5`. Default: `http` |
| `PROXY_ADDRESS` | IP Address or fqdn of proxy server |
| `PROXY_PORT` | TCP Port number on which the proxy is listening for connections. Default: `80` |
| `RESTART_TIME` | Restarts chrome after defined milliseconds. `0` for never, default: `0` |
| `SCREENSHOT` | Capture screenshot of page if a card is found. Default: `true` |
| `WEB_PORT` | Starts a webserver to be able to control the bot while it is running. Setting this value starts this service. |
???+ info
There is more information on proxy settings in the [Proxy documentation](proxy.md).
???+ tip
- You can also have a list of proxies that are rotated while searching stores. Proxies can be read from a file named `STORENAME.proxies` in the format of `socks5://username:password@ip`; one per line.
- Data usage is [known to be high](https://github.com/jef/streetmerchant/issues?q=is%3Aissue+sort%3Aupdated-desc+bandwidth). This is expected as the program scrapes many websites in parallel 24/7. To help reduce this, use `LOW_BANDWIDTH="true"`. We are looking into other solutions as well, but is low priority.
+263
View File
@@ -0,0 +1,263 @@
# Filter
| Environment variable | Description |
|:---:|---|
| `MAX_PRICE_SERIES_3060` | Maximum price allowed for a match, applies 3060 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_3060TI` | Maximum price allowed for a match, applies 3060 Ti series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_3070` | Maximum price allowed for a match, applies 3070 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_3080` | Maximum price allowed for a match, applies 3080 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_3090` | Maximum price allowed for a match, applies 3090 series cards (does not apply to these sites: Nvidia, Asus, EVGA) |
| `MAX_PRICE_SERIES_CORSAIR_SF` | Maximum price allowed for a match, applies to Corsair PSUs |
| `MAX_PRICE_SERIES_DARKHERO` | Maximum price allowed for a match, applies to ASUS Dark Hero motherboards |
| `MAX_PRICE_SERIES_RYZEN5600` | Maximum price allowed for a match, applies AMD 5600 series cpus |
| `MAX_PRICE_SERIES_RYZEN5800` | Maximum price allowed for a match, applies AMD 5800 series cpus |
| `MAX_PRICE_SERIES_RYZEN5900` | Maximum price allowed for a match, applies AMD 5900 series cpus |
| `MAX_PRICE_SERIES_RYZEN5950` | Maximum price allowed for a match, applies AMD 5950 series cpus |
| `MAX_PRICE_SERIES_RX6800` | Maximum price allowed for a match, applies AMD RX 6800 |
| `MAX_PRICE_SERIES_RX6800XT` | Maximum price allowed for a match,applies AMD RX 6800 XT |
| `MAX_PRICE_SERIES_RX6900XT` | Maximum price allowed for a match, applies AMD RX 6900 XT |
| `MAX_PRICE_SERIES_SONYPS5C` | Maximum price allowed for a match, applies PS5 console |
| `MAX_PRICE_SERIES_SONYPS5DE` | Maximum price allowed for a match, applies PS5 digital edition |
| `MAX_PRICE_SERIES_XBOXSS` | Maximum price allowed for a match, applies PS5 digital edition |
| `MAX_PRICE_SERIES_XBOXSX` | Maximum price allowed for a match, applies PS5 digital edition |
| `MAX_PRICE_SERIES_TEST` | Maximum price allowed for a match, applies `test:series` |
| `MICROCENTER_LOCATION` | Specific MicroCenter location(s) to search. Comma separated, e.g.: `marietta,duluth`, default: `web` |
| `SHOW_ONLY_BRANDS` | Filter to show specified brands. Comma separated, e.g.: `evga,zotac` |
| `SHOW_ONLY_MODELS` | Filter to show specified models. Comma separated, can include series. E.g.: `founders edition:3090,rog strix` |
| `SHOW_ONLY_SERIES` | Filter to show specified series. Comma separated, e.g.: `3080,ryzen5900` |
| `STORES` | [Supported stores](#supported-stores) you want to be scraped. Default: `amazon,bestbuy`. Comma separated, can include `PAGE_SLEEP_MIN` and `PAGE_SLEEP_MAX` values. E.g.: `amazon:10000:30000,bestbuy,newegg:50000:80000`. |
???+ note
For `MAX_PRICE_SERIES_*` variables: Use whole numbers only (no currency symbol is required). Avoid using any commas or decimal points. Example: `1234`. Merchandise found above this price will be skipped.
## Supported stores
Used with the `STORES` variable.
| Stores | Country | Environment variable |
|---|---|---|
| AComPC | DE | `acompc` |
| Adorama | US | `adorama`|
| Akinformatica | IT | `akinformatica`|
| Allneeds | AU | `allneeds`|
| Alternate | DE | `alternate`|
| Alternate | NL | `alternate-nl`|
| Amazon | US | `amazon`|
| Amazon | CA | `amazon-ca`|
| Amazon | DE | `amazon-de`|
| Amazon Warehouse | DE | `amazon-de-warehouse`|
| Amazon | ES | `amazon-es`|
| Amazon | FR | `amazon-fr`|
| Amazon | IT | `amazon-it`|
| Amazon | NL | `amazon-nl`|
| Amazon | SG | `amazon-sg`|
| Amazon | UK | `amazon-uk`|
| AMD | US | `amd`|
| AMD | CA | `amd-ca`|
| AMD | DE | `amd-de`|
| AMD | IT | `amd-it`|
| AMD | UK | `amd-uk`|
| AntOnline | US | `antonline`|
| Argos | UK | `argos`|
| Argos | IE | `argos-ie`|
| Aria PC | UK | `aria`|
| ARLT | DE | `arlt`|
| ASUS | US | `asus` |
| ASUS | DE | `asus-de` |
| AWD-IT | UK | `awd` |
| Azerty | NL | `azerty`|
| B&H | US | `bandh`|
| Best Buy | US | `bestbuy`|
| Best Buy | CA | `bestbuy-ca`|
| Box | UK | `box`|
| BPCTech | AU | `bpctech`|
| BPM-Power | IT | `bpm-power`|
| CanadaComputers | CA | `canadacomputers` |
| Caseking | DE | `caseking`|
| CCL | UK | `ccl`|
| Centrecom | AU | `centrecom`|
| Comet | IT | `comet`|
| ComputerAlliance | AU | `computeralliance`|
| Computeruniverse | DE | `computeruniverse` |
| Coolblue | NL | `coolblue`|
| Coolmod | ES | `coolmod`|
| Corsair | US | `corsair`|
| Corsair | UK | `corsair-uk`|
| CPL | AU | `cpl`|
| Currys | UK | `currys`|
| Cyberport | DE | `cyberport` |
| DComp | AU | `dcomp`|
| Drako | IT | `drako` |
| DustinHome | NO | `dustinhome-no` |
| EBGames | CA | `ebgames`|
| eBuyer | UK | `ebuyer`|
| El Corte Inglés | ES | `elcorteingles`|
| Elkjop | NO | `elkjop`|
| ePrice | IT | `eprice`|
| Equippr | DE | `equippr`|
| Euronics | IT | `euronics`|
| Euronics | DE | `euronics-de`|
| Evatech | AU | `evatech`|
| EVGA | US | `evga`|
| EVGA | EU | `evga-eu`|
| Expert | DE | `expert`|
| Futurex | DE | `futurex`|
| Galaxus | DE | `galaxus`|
| Game | UK | `game`|
| Gamestop | US | `gamestop`|
| Gamestop | DE | `gamestop-de`|
| Gamestop | IE | `gamestop-ie`|
| Gamestop | IT | `gamestop-it`|
| Globaldata | PT | `globaldata`|
| Hardware Planet | IT | | `hardware-planet` |
| HarrisTechnology | AU | `harristechnology`|
| Harvey Normans | IE | `harveynorman-ie` |
| iGame Computer | AU | `igame-computer`|
| John Lewis | UK | `johnlewis`|
| Kabum | BR | `kabum`|
| Komplett | NO | `komplett-no`|
| Landmark Computers | AU | `landmark-computers`|
| Ldlc | FR | `ldlc`|
| Mediamarkt | DE | `mediamarkt`|
| Medimax | DE | `medimax`|
| Megekko | NL | `megekko`|
| MemoryExpress | CA | `memoryexpress`|
| Micro Center | US | `microcenter`|
| Mindfactory | DE | `mindfactory` |
| MSY | AU | `msy`|
| Mwave | AU | `mwave`|
| Netonnet | NO | `netonnet-no`|
| Newegg | US | `newegg`|
| Newegg | CA | `newegg-ca`|
| Newegg | SG | `newegg-sg`|
| Notebooksbilliger | DE |`notebooksbilliger`|
| Novatech | UK | `novatech`|
| Novo Atalho | PT | `novoatalho`|
| Nvidia | EU/UK | [See below](#nvidia-store-reference) |
| Office Depot | US | `officedepot`|
| Ollo | IT | `ollo`|
| Otto | DE | `otto`|
| Overclockers | UK | `overclockers`|
| PBTech | AU | `pbtech`|
| PCByte | AU | `pcbyte`|
| PCCG | AU | `pccg`|
| PCComponentes | ES | `pccomponentes`|
| PCDiga | PT | `pcdiga`|
| PCKing | DE | `pcking` |
| PlayStation | US | `playstation`|
| PNY | US | `pny`|
| Power | NO | `power-no`|
| Proshop | DE | `proshop-de`|
| Proshop | DK | `proshop-dk`|
| Proshop | NO | `proshop-no`|
| Rosman | AU | `rosman`|
| Rosman-Melb | AU | `rosman-melb`|
| Saturn | DE | `saturn`|
| Save On It | AU | `saveonit`|
| Scan | UK | `scan`|
| Scorptec | AU | `scorptec`|
| ShopTo | UK | `shopto`|
| Smyths Toys | UK | `smythstoys`|
| Smyths Toys | IE | `smythstoys-ie`|
| Spielegrotte | DE | `spielegrotte`|
| Storm Computers | AU | `storm-computer`|
| Target | US | `target`|
| Tesco | IE | `tesco-ie`|
| TopAchat | GR | `topachat`|
| Toys R Us | US | `toysrus` |
| Umart | AU | `umart`|
| Unieuro | IT | `unieuro`|
| Very | UK | `very`|
| Vuugo | CA | `vuugo` |
| Walmart | US | `walmart`|
| Walmart | CA | `walmart-ca`|
| Wells Technology | AU | `wellstechnology`|
| Wipoid | ES | `wipoid`|
| Zotac | US | `zotac`|
### Micro Center stores
Used with the `MICROCENTER_LOCATION` variable.
???+ note
Before using `web`, please review [this issue comment](https://github.com/jef/streetmerchant/issues/442#issuecomment-703297393).
| | | | |
|---|---|---|---|
| `brooklyn` | `brentwood` | `cambridge` | `chicago` |
| `columbus` | `dallas` | `denver` | `duluth` |
| `fairfax` | `flushing` | `houston` | `madison-heights` |
| `marietta` | `mayfield-heights` | `north-jersey` | `overland-park` |
| `parkville` | `rockville` | `sharonville` | `st-davids` |
| `st-louis-park` | `tustin` | `westbury` | `westmont` |
| `yonkers` |
## Supported brands and models
Used with the `SHOW_ONLY_BRANDS` and `SHOW_ONLY_MODELS` variables.
| Brand | Model |
|:---:|---|
| `amd` | `5600x`, `5800x`, `5900x`, `5950x`, `amd reference` |
| `asus` | `crosshair viii`, `dual`, `dual oc`, `ekwb`, `strix`, `strix oc`, `strix white`, `tuf`, `tuf oc` |
| `corsair` | `750 platinum`, `600 platinum`, `600 gold` |
| `colorful` | `igame advanced oc`, `igame vulcan oc` |
| `evga` | `ftw3`, `ftw3 black`, `ftw3 ultra`, `ftw3 ultra hybrid`, `ftw3 ultra hydro copper`, `xc3`, `xc black`, `xc gaming`, `xc3 black`, `xc3 ultra`, `xc3 ultra hybrid` |
| `gainward` | `phantom gs`, `phoenix`, `phoenix gs`, `phoenix gs oc` |
| `gigabyte` | `aorus master`, `aorus xtreme`, `aorus xtreme waterforce`, `aorus xtreme waterforce wb`, `eagle`, `eagle oc`, `gaming`, `gaming oc`, `gaming oc pro`, `turbo`, `vision`, `vision oc` |
| `galax` | `sg`, `sg oc` |
| `inno3d` | `gaming x3`, `ichill x3`, `ichill x4`, `ichill frostbite`, `twin x2`, `twin x2 oc` |
| `kfa2` | `sg`, `sg oc` |
| `leadtek` | `hurricane` |
| `microsoft` | `xbox series x`, `xbox series s` |
| `msi` | `gaming x trio`, `suprim`, `suprim x`, `ventus 2x oc`, `ventus 3x`, `ventus 3x oc` |
| `nvidia` | `founders edition` |
| `palit` | `gamerock oc`, `gaming pro`, `gaming pro oc` |
| `pny` | `dual fan`, `xlr8 epic x`, `xlr8 revel`, `xlr8 uprising` |
| `sony` | `ps5 console`, `ps5 digital` |
| `xfx` | `merc`, `amd reference` |
| `zotac` | `amp holo`, `amp extreme holo`, `amp white`, `trinity`, `trinity oc`, `twin edge`, `twin edge oc`, `twin edge oc white` |
## Supported series
Used with the `SHOW_ONLY_SERIES` variable.
| Series | Value |
|:---:|:---:|
| AMD Ryzen 5600x | `ryzen5600` |
| AMD Ryzen 5800x | `ryzen5800` |
| AMD Ryzen 5900x | `ryzen5900` |
| AMD Ryzen 5950x | `ryzen5950` |
| AMD RX 6800 | `rx6800` |
| AMD RX 6800XT | `rx6800xt` |
| AMD RX 6900XT | `rx6900xt` |
| Nvidia RTX 3060 | `3060` |
| Nvidia RTX 3060 Ti | `3060ti` |
| Nvidia RTX 3070 | `3070` |
| Nvidia RTX 3080 | `3080` |
| Nvidia RTX 3090 | `3090` |
| Corsair SFX PSU | `sf` |
| Crosshair VIII | `darkhero` |
| Sony PS5 | `sonyps5c` |
| Sony PS5 Digital Edition | `sonyps5de` |
| Xbox Series S | `xboxss` |
| Xbox Series X | `xboxsx` |
## Nvidia Store Reference
???+ note
Use the Nvidia Store to check stock for Founders Edition cards only (3060 Ti/3070/3080/3090). For USA use `bestbuy` instead.
???+ info
Use the `STORE` variable for your chosen country. For example, to check for a FE card in Belgium you would use the `nvidia-fr` store.
| Country | Store | Retailer
|:---:|:---:|:---:|
| Austria | `nvidia-de`| NBB |
| Belgium | `nvidia-fr` | LDLC |
| France | `nvidia-fr` | LDLC |
| Germany | `nvidia-de` | NBB |
| Ireland | `nvidia-gb` | Scan |
| Luxembourg | `nvidia-fr` | LDLC |
| Spain | `nvidia-es` | LDLC |
| United Kingdom | `nvidia-gb` | Scan |
+225
View File
@@ -0,0 +1,225 @@
# Notification
You can test your notification configuration by running `npm run test:notification`.
## Desktop
| Environment variable | Description |
|---|---|
| `DESKTOP_NOTIFICATIONS` | Display desktop notifications using [node-notifier](https://www.npmjs.com/package/node-notifier). |
| `PLAY_SOUND` | Play this sound notification if a product is found. Relative path accepted, valid formats: wav, mp3, flac, E.g.: `path/to/notification.wav`, [free sounds available](https://notificationsounds.com/) |
| `SOUND_PLAYER` | Override the default sound player using the specified executable. |
???+ attention
If you're on Windows, you must have the proper library to run.
## Discord
| Environment variable | Description |
|:---:|---|
| `DISCORD_NOTIFY_GROUP` | Discord group you would like to notify |
| `DISCORD_NOTIFY_GROUP_3060` | Discord group to notify on 3060 stock |
| `DISCORD_NOTIFY_GROUP_3060TI` | Discord group to notify on 3060 Ti stock |
| `DISCORD_NOTIFY_GROUP_3070` | Discord group to notify on 3070 stock |
| `DISCORD_NOTIFY_GROUP_3080` | Discord group to notify on 3080 stock |
| `DISCORD_NOTIFY_GROUP_3090` | Discord group to notify on 3090 stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5600` | Discord group to notify on 5600X stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5800` | Discord group to notify on 5800X stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5900` | Discord group to notify on 5900X stock |
| `DISCORD_NOTIFY_GROUP_RYZEN5950` | Discord group to notify on 5950X stock |
| `DISCORD_NOTIFY_GROUP_DARKHERO` | Discord group to notify on Dark Hero stock |
| `DISCORD_NOTIFY_GROUP_CORSAIR_SF` | Discord group to notify on Corsair SF stock |
| `DISCORD_NOTIFY_GROUP_SONYPS5C` | Discord group to notify on Sony PS5 stock |
| `DISCORD_NOTIFY_GROUP_SONYPS5DE` | Discord group to notify on Sony PS5 Digital stock |
| `DISCORD_NOTIFY_GROUP_XBOXSX` | Discord group to notify on Xbox Series X stock |
| `DISCORD_NOTIFY_GROUP_XBOXSS` | Discord group to notify on Xbox Series S stock |
| `DISCORD_NOTIFY_GROUP_TEST` | Discord group to notify on test stock |
| `DISCORD_WEB_HOOK` | Discord Web Hook URL. Can be comma separated. Use whole webhook URL |
???+ note
All groups can be comma separated. `DISCORD_NOTIFY_GROUP` is always used if set.
- If you're using a role, please use `<@&2834729847239842>`
- If you're using a user, please use `<@2834729847239842>`
## Email and SMS
Default provider is Gmail. If you use a different email provider, you must provide SMTP settings.
| Environment variable | Description |
|:---:|---|
| `EMAIL_PASSWORD` | Email password. (See below for Gmail MFA users) |
| `EMAIL_TO` | Destination Email. Defaults to username if not set. Can be comma separated |
| `EMAIL_USERNAME` | Email address |
| `PHONE_CARRIER` | [Supported carriers](#supported-carriers) for SMS. E.g.: `att` or `att,verizon,google`, email configuration required. If multiple phone numbers are listed, enter a carrier for each phone number |
| `PHONE_NUMBER` | 10 digit phone number(s). E.g.: `1234567890` or `1234567890,0987654321,11112223333`, email configuration required |
| `SMTP_ADDRESS` | IP Address or FQDN of SMTP server |
| `SMTP_PORT` | TCP Port number on which the smtp server is listening for connections. Default: `25` |
???+ attention
If you use Gmail and have multi-factor authentication (MFA), you will need to create an [app password](https://myaccount.google.com/apppasswords) and use this instead of your Gmail password.
### Supported carriers
| Carrier | Environment variable |
|:---:|:---:|
| AT&T | `att` |
| AT&T Prepaid | `attgo` |
| Bell | `bell` |
| Fido | `fido` |
| Google | `google`|
| Koodo | `koodo` |
| Mint | `mint`|
| Rogers | `rogers` |
| Sprint | `sprint`|
| Telus | `telus`|
| T-Mobile | `tmobile`|
| USCC | `uscc`|
| Verizon | `verizon`|
| Virgin | `virgin`|
| Virgin (CA) | `virgin-ca`|
| Visible | `visible`|
## MQTT
| Environment variable | Description |
|:---:|---|
| `MQTT_BROKER_ADDRESS` | IP address or URL of MQTT Broker, e.g.: `192.168.1.xxx` or `broker.hivemq.com` |
| `MQTT_BROKER_PORT` | Network port of MQTT Broker. Default: `1883` |
| `MQTT_CLIENT_ID` | Unique Client ID (only if required by MQTT Broker), typically not required when only publishing alerts |
| `MQTT_PASSWORD` | MQTT password - only use with MQTT brokers on private networks, if required. Will not be sent over public networks for safety |
| `MQTT_QOS` | QoS level for published alerts to broker (https://www.npmjs.com/package/mqtt#about-qos). Default: `0`, Can be `0`, `1`, or `2` |
| `MQTT_TOPIC` | Topic to publish alerts to. Can include `%store%`, `%series%`, `%brand%`, `%model%` for dynamic topics. Default: `streetmerchant/alert`. E.g.: `nv-alert/%store%/%series%/%brand%/%model%/alert` |
| `MQTT_USERNAME` | MQTT username - (only if required by MQTT Broker) |
## PagerDuty
Obtained in PagerDuty - <Service you want to use> - Integrations
| Environment variable | Description |
|:---:|---|
| `PAGERDUTY_INTEGRATION_KEY` | PagerDuty Events API v2 Integration Key. |
| `PAGERDUTY_SEVERITY` | Severity of PagerDuty events |
## Philips Hue
Generate required keys using [instructions](https://developers.meethue.com/develop/get-started-2/). This will be used for both LAN and cloud access over the official Remote Hue API.
For cloud only usage, instructions to generate are located [here](https://developers.meethue.com/develop/hue-api/remote-authentication/).
> :point_right: Here's a [video demonstration](https://vimeo.com/476083242).
| Environment variable | Description |
|:---:|---|
| `PHILIPS_HUE_API_KEY` | Hue Bridge API Key |
| `PHILIPS_HUE_LAN_BRIDGE_IP` | LAN IP Address of your Hue Bridge. LAN only, e.g. `192.168.x.x` |
| `PHILIPS_HUE_LIGHT_IDS` | Light IDs. All lights if not supplied. Can be comma separated, e.g.: `1,2`. See Hue App -> About for IDs |
| `PHILIPS_HUE_LIGHT_COLOR` | Color in RGB Format. Nvidia green if not supplied. Can be comma separated, e.g.: `255,255,255` |
| `PHILIPS_HUE_LIGHT_PATTERN` | Lights will flash for 30 seconds if `blink` is given |
| `PHILIPS_HUE_CLOUD_ACCESS_TOKEN` | Cloud Access Token. Cloud only |
| `PHILIPS_HUE_CLOUD_REFRESH_TOKEN` | Cloud Refresh Token. Cloud only |
| `PHILIPS_HUE_CLOUD_CLIENT_ID` | Cloud Client ID. Cloud only |
| `PHILIPS_HUE_CLOUD_CLIENT_SECRET` | Cloud Client Secret. Cloud only |
## Pushbullet
Generate token at [pushbullet.com/#settings/account](https://pushbullet.com/#settings/account).
| Environment variable | Description |
|:---:|---|
| `PUSHBULLET` | API key |
## Pushover
Generate token at [pushover.net/apps/build](https://pushover.net/apps/build).
| Environment variable | Description |
|:---:|---|
| `PUSHOVER_EXPIRE` | How many seconds your notification will continue to be retried for (every `PUSHOVER_RETRY` seconds) |
| `PUSHOVER_RETRY` | How often (in seconds) the Pushover servers will send the same notification to the user |
| `PUSHOVER_PRIORITY` | Message priority |
| `PUSHOVER_TOKEN` | API token |
| `PUSHOVER_USER` | Username |
???+ note
`PUSHOVER_EXPIRE` and `PUSHOVER_RETRY` are only used when `PUSHOVER_PRIORITY="2"`
## Redis
| Environment variable | Description |
|:---:|---|
| `REDIS_URL` | Connection string in format (redis://[username]:[password]@[host][:port]/[database-id]) (redis://localhost:6379/1) |
## Slack
| Environment variable | Description |
|:---:|---|
| `SLACK_CHANNEL` | Channel for posting |
| `SLACK_TOKEN` | API token |
## SmartThings
Generate token at [account.smartthings.com/tokens](https://account.smartthings.com/tokens).
| Environment variable | Description |
|:---:|---|
| `SMARTTHINGS_TOKEN` | Access token |
| `SMARTTHINGS_SWITCH_LABEL` | Switch Label of switch to activate|
## Telegram
| Environment variable | Description |
|:---:|---|
| `TELEGRAM_ACCESS_TOKEN` | Access token |
| `TELEGRAM_CHAT_ID` | Chat ID. Can be comma separated, e.g.: `123456789,987654321` |
## Twilio
Token generation can be found at [twilio.com/console](https://twilio.com/console).
| Environment variable | Description |
|:---:|---|
| `TWILIO_ACCOUNT_SID` | Account SID |
| `TWILIO_AUTH_TOKEN` | Auth Token |
| `TWILIO_FROM_NUMBER` | Provided phone number to send messages from |
| `TWILIO_TO_NUMBER` | Mobile number to send SMS to |
???+ note
Include country codes in phone numbers. Example: `+4401234567890`
## Twitter
Generate all Twitter keys at [developer.twitter.com](https://developer.twitter.com).
| Environment variable | Description |
|:---:|---|
| `TWITTER_ACCESS_TOKEN_KEY` | Twitter Token Key |
| `TWITTER_ACCESS_TOKEN_SECRET` | Twitter Token Secret |
| `TWITTER_CONSUMER_KEY` | Twitter Consumer Key |
| `TWITTER_CONSUMER_SECRET` | Twitter Consumer Secret |
| `TWITTER_TWEET_TAGS` | List of hashtags to append to the tweet message, e.g.: `#nvidia #nvidiastock` |
## Twitch
Instructions on how to set up tokens can be found at [d-fischer.github.io/twitch-chat-client/docs/examples/basic-bot](https://d-fischer.github.io/twitch-chat-client/docs/examples/basic-bot).
| Environment variable | Description |
|:---:|---|
| `TWITCH_CLIENT_ID` | Twitch client ID |
| `TWITCH_CLIENT_SECRET`| Twitch client secret |
| `TWITCH_ACCESS_TOKEN` | Twitch access token |
| `TWITCH_REFRESH_TOKEN` | Twitch refresh token |
| `TWITCH_CHANNEL` | Twitch channel |
## StreamLabs
Instructions on how to set up tokens can be found at [dev.streamlabs.com](https://dev.streamlabs.com/docs/register-your-application).
You don't need to submit your application for review, just whitelist yourself!
| Environment variable | Description |
|:---:|---|
| `STREAMLABS_ACCESS_TOKEN` | StreamLabs access token |
| `STREAMLABS_TYPE` | StreamLabs alert type |
| `STREAMLABS_IMAGE`| Custom image to display. Leave it blank for default |
| `STREAMLABS_SOUND` | Custom image to play. Leave it blank for default |
| `STREAMLABS_DURATION` | StreamLabs alert duration (in milliseconds) |
+20
View File
@@ -0,0 +1,20 @@
# Proxy
## Filename
Proxy configuration can be set either per store in a file called `storename.proxies` or globally in `global.proxies` in the streetmerchant root directory.
If both exist, the store specific file will take precedence.
## Format
The format is one proxy per line with the following structure:
`protocol://[user:password@]ip[:port]`
Supported protocols are `http` and `socks5`.
Valid examples include:
- `socks5://1.2.3.4:3180`
- `socks5://abcd:efgh@1.2.3.4:5678`
- `http://1.2.3.4:80`
- `http://abcd:efgh@1.2.3.4:8080`
+1
View File
@@ -0,0 +1 @@
../../terraform/README.md
+126
View File
@@ -0,0 +1,126 @@
# ** All configuration variables are optional **
# Copy this file and name it as `dotenv` (without backticks)
# Read https://jef.codes/streetmerchant/getting-started/#customization for help on customizing this file
########################################################################################################
ASCII_BANNER=
ASCII_COLOR=
AUTO_ADD_TO_CART=
BROWSER_TRUSTED=
DESKTOP_NOTIFICATIONS=
DISCORD_NOTIFY_GROUP=
DISCORD_NOTIFY_GROUP_3060=
DISCORD_NOTIFY_GROUP_3060TI=
DISCORD_NOTIFY_GROUP_3070=
DISCORD_NOTIFY_GROUP_3080=
DISCORD_NOTIFY_GROUP_3090=
DISCORD_NOTIFY_GROUP_CORSAIR_SF=
DISCORD_NOTIFY_GROUP_RX6800=
DISCORD_NOTIFY_GROUP_RX6800XT=
DISCORD_NOTIFY_GROUP_RX6900XT=
DISCORD_NOTIFY_GROUP_RYZEN5600=
DISCORD_NOTIFY_GROUP_RYZEN5800=
DISCORD_NOTIFY_GROUP_RYZEN5900=
DISCORD_NOTIFY_GROUP_RYZEN5950=
DISCORD_NOTIFY_GROUP_SONYPS5C=
DISCORD_NOTIFY_GROUP_SONYPS5DE=
DISCORD_NOTIFY_GROUP_XBOXSX=
DISCORD_NOTIFY_GROUP_XBOXSS=
DISCORD_NOTIFY_GROUP_TEST=
DISCORD_WEB_HOOK=
EMAIL_PASSWORD=
EMAIL_TO=
EMAIL_USERNAME=
HEADLESS=
IN_STOCK_WAIT_TIME=
LOG_LEVEL=
LOW_BANDWIDTH=
MAX_PRICE_SERIES_3060=
MAX_PRICE_SERIES_3060TI=
MAX_PRICE_SERIES_3070=
MAX_PRICE_SERIES_3080=
MAX_PRICE_SERIES_3090=
MAX_PRICE_SERIES_CORSAIR_SF=
MAX_PRICE_SERIES_RX6800=
MAX_PRICE_SERIES_RX6800XT=
MAX_PRICE_SERIES_RX6900XT=
MAX_PRICE_SERIES_RYZEN5600=
MAX_PRICE_SERIES_RYZEN5800=
MAX_PRICE_SERIES_RYZEN5900=
MAX_PRICE_SERIES_RYZEN5950=
MAX_PRICE_SERIES_SONYPS5C=
MAX_PRICE_SERIES_SONYPS5DE=
MAX_PRICE_SERIES_XBOXSS=
MAX_PRICE_SERIES_XBOXSX=
MAX_PRICE_SERIES_TEST=
MICROCENTER_LOCATION=
MQTT_BROKER_ADDRESS=
MQTT_BROKER_PORT=
MQTT_CLIENT_ID=
MQTT_PASSWORD=
MQTT_QOS=
MQTT_TOPIC=
MQTT_USERNAME=
OPEN_BROWSER=
PAGE_BACKOFF_MIN=
PAGE_BACKOFF_MAX=
PAGE_SLEEP_MIN=
PAGE_SLEEP_MAX=
PAGE_TIMEOUT=
PAGERDUTY_INTEGRATION_KEY=
PAGERDUTY_SEVERITY=
PHILIPS_HUE_API_KEY=
PHILIPS_HUE_CLOUD_ACCESS_TOKEN=
PHILIPS_HUE_CLOUD_CLIENT_ID=
PHILIPS_HUE_CLOUD_CLIENT_SECRET=
PHILIPS_HUE_CLOUD_REFRESH_TOKEN=
PHILIPS_HUE_LAN_BRIDGE_IP=
PHILIPS_HUE_LIGHT_COLOR=
PHILIPS_HUE_LIGHT_IDS=
PHILIPS_HUE_LIGHT_PATTERN=
PHONE_CARRIER=
PHONE_NUMBER=
PLAY_SOUND=
PROXY_ADDRESS=
PROXY_PROTOCOL=
PROXY_PORT=
PUSHBULLET=
PUSHOVER_EXPIRE=
PUSHOVER_RETRY=
PUSHOVER_TOKEN=
PUSHOVER_USER=
PUSHOVER_PRIORITY=
RESTART_TIME=
SCREENSHOT=
SHOW_ONLY_BRANDS=
SHOW_ONLY_MODELS=
SHOW_ONLY_SERIES=
SLACK_CHANNEL=
SLACK_TOKEN=
SMARTTHINGS_TOKEN=
SMARTTHINGS_SWITCH_LABEL=
SMTP_ADDRESS=
SMTP_PORT=
STORES=
TELEGRAM_ACCESS_TOKEN=
TELEGRAM_CHAT_ID=
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_FROM_NUMBER=
TWILIO_TO_NUMBER=
TWITCH_ACCESS_TOKEN=
TWITCH_CHANNEL=
TWITCH_CLIENT_ID=
TWITCH_CLIENT_SECRET=
TWITCH_REFRESH_TOKEN=
TWITTER_ACCESS_TOKEN_KEY=
TWITTER_ACCESS_TOKEN_SECRET=
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_TWEET_TAGS=
STREAMLABS_ACCESS_TOKEN=
STREAMLABS_TYPE=
STREAMLABS_IMAGE=
STREAMLABS_SOUND=
STREAMLABS_DURATION=
WEB_PORT=
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 865 KiB

+94
View File
@@ -0,0 +1,94 @@
# Project information
site_name: streetmerchant
site_url: https://jef.codes/streetmerchant
site_author: Jef LeCompte
site_description: 🤖 The world's easiest, most powerful stock checker
# Repository
repo_name: jef/streetmerchant
repo_url: https://github.com/jef/streetmerchant
# Copyright
copyright: Copyright &copy; 2016 - 2020 Jef LeCompte
# Configuration
theme:
custom_dir: docs/overrides
favicon: https://raw.githubusercontent.com/jef/streetmerchant/main/docs/assets/images/streetmerchant-logo.png
features:
- search.suggest
font:
text: Roboto
code: Fira Code
icon:
repo: octicons/octoface-24
logo: assets/images/streetmerchant-logo.png
language: en
name: material
palette:
scheme: default
primary: indigo
accent: indigo
# Plugins
plugins:
- git-revision-date
- macros
- search
# Customization
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/jef
- icon: fontawesome/brands/twitter
link: https://twitter.com/hijxf
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/in/jeflecompte
extra_javascript:
- https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js
- javascripts/tables.js
# Extensions
markdown_extensions:
- admonition
- attr_list
- footnotes
- meta
- toc:
permalink: true
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.highlight:
linenums: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.superfences
- pymdownx.tabbed
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
# Page tree
nav:
- Home: index.md
- Getting started: getting-started.md
- Reference:
- Application: reference/application.md
- Filter: reference/filter.md
- Notification: reference/notification.md
- Proxy: reference/proxy.md
- Terraform: reference/terraform.md
- Help:
- General: help/general.md
- Troubleshoot: help/troubleshoot.md
- FAQ: faq.md
- Changelog: changelog.md
- About: about.md
+1 -1
View File
@@ -3,6 +3,6 @@
"ext": "ts", "ext": "ts",
"watch": [ "watch": [
"src/", "src/",
".env" "dotenv"
] ]
} }
+16102 -4936
View File
File diff suppressed because it is too large Load Diff
+51 -50
View File
@@ -1,17 +1,25 @@
{ {
"name": "streetmerchant", "name": "streetmerchant",
"description": "🔮 For all your Nvidia needs", "version": "3.5.0",
"description": "The world's easiest, most powerful stock checker",
"main": "src/index.ts", "main": "src/index.ts",
"scripts": { "scripts": {
"all": "npm run build && npm run lint", "fix": "gts fix",
"build": "tsc", "lint": "gts lint",
"lint": "xo", "clean": "gts clean",
"lint:fix": "xo --fix", "compile": "tsc",
"start": "npm run build && node build/index.js", "pretest": "npm run compile",
"posttest": "npm run lint",
"prestart": "npm run compile",
"start": "node build/src/index.js",
"start:dev": "nodemon --config nodemon.json", "start:dev": "nodemon --config nodemon.json",
"start:production": "node build/index.js", "start:production": "node build/src/index.js",
"test:notification": "npm run build && node build/__test__/notification-test.js", "test": "c8 mocha 'build/test/**/test-*.js' --exclude 'build/test/functional/**/test-*.js'",
"test:notification:production": "node build/__test__/notification-test.js" "test:notification": "npm run compile && node build/test/functional/test-notification.js",
"test:notification:production": "node build/test/functional/test-notification.js"
},
"engines": {
"node": ">=12.0.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -25,63 +33,56 @@
}, },
"homepage": "https://github.com/jef/streetmerchant#readme", "homepage": "https://github.com/jef/streetmerchant#readme",
"dependencies": { "dependencies": {
"@bridgerakol/samsung-smart-api": "^2.8.1",
"@doridian/puppeteer-page-proxy": "^1.2.11",
"@jef/pushbullet": "^2.4.3", "@jef/pushbullet": "^2.4.3",
"@slack/web-api": "^5.14.0", "@slack/web-api": "^6.0.0",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"cheerio": "^1.0.0-rc.3", "cheerio": "^1.0.0-rc.5",
"discord.js": "^12.5.1", "discord.js": "^12.5.1",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"messaging-api-telegram": "^1.0.1", "messaging-api-telegram": "^1.0.4",
"mqtt": "^4.2.6", "mqtt": "^4.2.6",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"node-hue-api": "^4.0.9", "node-hue-api": "^4.0.10",
"node-notifier": "^8.0.0", "node-notifier": "^9.0.0",
"node-pagerduty": "^1.3.6", "node-pagerduty": "^1.3.6",
"nodemailer": "^6.4.16", "nodemailer": "^6.5.0",
"open": "^7.3.0", "open": "^7.4.2",
"play-sound": "^1.1.3", "play-sound": "^1.1.3",
"puppeteer": "^5.5.0", "puppeteer": "^8.0.0",
"puppeteer-extra": "^3.1.15", "puppeteer-extra": "^3.1.17",
"puppeteer-extra-plugin-adblocker": "^2.11.9", "puppeteer-extra-plugin-adblocker": "^2.11.10",
"puppeteer-extra-plugin-block-resources": "^2.2.7", "puppeteer-extra-plugin-block-resources": "^2.2.8",
"puppeteer-extra-plugin-stealth": "^2.6.5", "puppeteer-extra-plugin-stealth": "^2.7.5",
"puppeteer-page-proxy": "^1.2.8",
"pushover-notifications": "^1.2.2", "pushover-notifications": "^1.2.2",
"twilio": "^3.53.0", "redis": "^3.0.2",
"twitch": "^4.3.3", "top-user-agents": "^1.0.21",
"twitch-auth": "^4.3.3", "twilio": "^3.57.0",
"twitch-chat-client": "^4.3.3", "twitch": "^4.4.12",
"twitch-auth": "^4.4.12",
"twitch-chat-client": "^4.4.12",
"twitter": "^1.7.1", "twitter": "^1.7.1",
"winston": "^3.3.3" "winston": "^3.3.3"
}, },
"devDependencies": { "devDependencies": {
"@types/async": "^3.2.5", "@types/async": "^3.2.5",
"@types/cheerio": "^0.22.22", "@types/cheerio": "^0.22.24",
"@types/node": "^14.14.10", "@types/mocha": "^8.2.1",
"@types/node-fetch": "^2.5.7", "@types/node": "^14.14.31",
"@types/node-fetch": "^2.5.8",
"@types/node-notifier": "^8.0.0", "@types/node-notifier": "^8.0.0",
"@types/nodemailer": "^6.4.0", "@types/nodemailer": "^6.4.0",
"@types/puppeteer": "^5.4.1", "@types/redis": "^2.8.28",
"@types/sinon": "^9.0.10",
"@types/twitter": "^1.7.0", "@types/twitter": "^1.7.0",
"husky": "^4.3.0", "c8": "^7.6.0",
"nodemon": "^2.0.6", "gts": "^3.1.0",
"ts-node": "^9.1.0", "mocha": "^8.3.0",
"typescript": "^4.1.2", "nodemon": "^2.0.7",
"webpack": "^5.10.0", "sinon": "^9.2.4",
"xo": "^0.35.0" "ts-node": "^9.1.1",
}, "typescript": "^4.2.2",
"xo": { "webpack": "^5.24.2"
"prettier": true,
"rules": {
"no-warning-comments": "off",
"sort-imports": "error",
"sort-keys": "error",
"sort-vars": "error"
}
},
"husky": {
"hooks": {
"pre-commit": "npm run all"
}
} }
} }
-27
View File
@@ -1,27 +0,0 @@
import {Link, Store} from '../store/model';
import {sendNotification} from '../notification';
const link: Link = {
brand: 'test:brand',
cartUrl: 'https://www.example.com/cartUrl',
model: 'test:model',
price: 100,
series: 'test:series',
url: 'https://www.example.com/url'
};
const store: Store = {
labels: {
inStock: {
container: 'test:container',
text: ['test:text']
}
},
links: [link],
name: 'test:name'
};
/**
* Send test email.
*/
sendNotification(link, store);
+11 -11
View File
@@ -2,23 +2,23 @@ import {Page} from 'puppeteer';
import {PuppeteerExtraPluginAdblocker} from 'puppeteer-extra-plugin-adblocker'; import {PuppeteerExtraPluginAdblocker} from 'puppeteer-extra-plugin-adblocker';
export const adBlocker = new PuppeteerExtraPluginAdblocker({ export const adBlocker = new PuppeteerExtraPluginAdblocker({
blockTrackers: true blockTrackers: true,
}); });
export async function enableBlockerInPage(page: Page) { export async function enableBlockerInPage(page: Page) {
const blockerObject = await adBlocker.getBlocker(); const blockerObject = await adBlocker.getBlocker();
if (blockerObject.isBlockingEnabled(page)) { if (blockerObject.isBlockingEnabled(page)) {
return; return;
} }
await blockerObject.enableBlockingInPage(page); await blockerObject.enableBlockingInPage(page);
} }
export async function disableBlockerInPage(page: Page) { export async function disableBlockerInPage(page: Page) {
const blockerObject = await adBlocker.getBlocker(); const blockerObject = await adBlocker.getBlocker();
if (!blockerObject.isBlockingEnabled(page)) { if (!blockerObject.isBlockingEnabled(page)) {
return; return;
} }
await blockerObject.disableBlockingInPage(page); await blockerObject.disableBlockingInPage(page);
} }
+9 -12
View File
@@ -1,10 +1,7 @@
import chalk from 'chalk'; import chalk from 'chalk';
import {readFileSync} from 'fs';
const version = readFileSync('version.txt', 'utf8');
export const banner = { export const banner = {
asciiVersion: ` asciiVersion: `
██████ ▄▄▄█████▓ ██▀███ ▓█████ ▓█████▄▄▄█████▓ ███▄ ▄███▓▓█████ ██▀███ ▄████▄ ██░ ██ ▄▄▄ ███▄ █ ▄▄▄█████▓ ██████ ▄▄▄█████▓ ██▀███ ▓█████ ▓█████▄▄▄█████▓ ███▄ ▄███▓▓█████ ██▀███ ▄████▄ ██░ ██ ▄▄▄ ███▄ █ ▄▄▄█████▓
▒██ ▒ ▓ ██▒ ▓▒▓██ ▒ ██▒▓█ ▀ ▓█ ▀▓ ██▒ ▓▒▓██▒▀█▀ ██▒▓█ ▀ ▓██ ▒ ██▒▒██▀ ▀█ ▓██░ ██▒▒████▄ ██ ▀█ █ ▓ ██▒ ▓▒ ▒██ ▒ ▓ ██▒ ▓▒▓██ ▒ ██▒▓█ ▀ ▓█ ▀▓ ██▒ ▓▒▓██▒▀█▀ ██▒▓█ ▀ ▓██ ▒ ██▒▒██▀ ▀█ ▓██░ ██▒▒████▄ ██ ▀█ █ ▓ ██▒ ▓▒
░ ▓██▄ ▒ ▓██░ ▒░▓██ ░▄█ ▒▒███ ▒███ ▒ ▓██░ ▒░▓██ ▓██░▒███ ▓██ ░▄█ ▒▒▓█ ▄ ▒██▀▀██░▒██ ▀█▄ ▓██ ▀█ ██▒▒ ▓██░ ▒░ ░ ▓██▄ ▒ ▓██░ ▒░▓██ ░▄█ ▒▒███ ▒███ ▒ ▓██░ ▒░▓██ ▓██░▒███ ▓██ ░▄█ ▒▒▓█ ▄ ▒██▀▀██░▒██ ▀█▄ ▓██ ▀█ ██▒▒ ▓██░ ▒░
@@ -14,12 +11,12 @@ export const banner = {
░ ░▒ ░ ░ ░ ░▒ ░ ▒░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░ ░ ░▒ ░ ░ ░ ░▒ ░ ▒░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░
░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
${version}`, ${process.env.npm_package_version}`,
render(ascii: boolean, hexColor: string) { render(ascii: boolean, hexColor: string) {
return chalk return chalk
.hex(hexColor) .hex(hexColor)
.bold(ascii ? this.asciiVersion : this.stringVersion); .bold(ascii ? this.asciiVersion : this.stringVersion);
}, },
stringVersion: `STREETMERCHANT stringVersion: `STREETMERCHANT
${version}` ${process.env.npm_package_version}`,
}; };
+362 -292
View File
@@ -1,16 +1,30 @@
import {existsSync, readFileSync} from 'fs';
import {banner} from './banner'; import {banner} from './banner';
import dotenv from 'dotenv';
import {config as config_} from 'dotenv';
import path from 'path'; import path from 'path';
import {readFileSync} from 'fs'; import * as console from 'console';
config_({path: path.resolve(__dirname, '../.env')}); if (process.env.npm_config_conf) {
if (
existsSync(path.resolve(__dirname, '../../' + process.env.npm_config_conf))
) {
dotenv.config({
path: path.resolve(__dirname, '../../' + process.env.npm_config_conf),
});
} else {
dotenv.config({path: path.resolve(__dirname, '../../.env')});
}
} else if (existsSync(path.resolve(__dirname, '../../dotenv'))) {
dotenv.config({path: path.resolve(__dirname, '../../dotenv')});
} else {
dotenv.config({path: path.resolve(__dirname, '../../.env')});
}
console.info( console.info(
banner.render( banner.render(
envOrBoolean(process.env.ASCII_BANNER, false), envOrBoolean(process.env.ASCII_BANNER, false),
envOrString(process.env.BANNER_COLOR, '#808080') envOrString(process.env.BANNER_COLOR, '#808080')
) )
); );
/** /**
@@ -20,15 +34,15 @@ console.info(
* @param array Default array. If not set, is `[]`. * @param array Default array. If not set, is `[]`.
*/ */
function envOrArray( function envOrArray(
environment: string | undefined, environment: string | undefined,
array?: string[] array?: string[]
): string[] { ): string[] {
return (environment return (environment
? environment.includes('\n') ? environment.includes('\n')
? environment.split('\n') ? environment.split('\n')
: environment.split(',') : environment.split(',')
: array ?? [] : array ?? []
).map((s) => s.trim()); ).map(s => s.trim());
} }
/** /**
@@ -38,10 +52,10 @@ function envOrArray(
* @param boolean Default boolean. If not set, is `true`. * @param boolean Default boolean. If not set, is `true`.
*/ */
function envOrBoolean( function envOrBoolean(
environment: string | undefined, environment: string | undefined,
boolean?: boolean boolean?: boolean
): boolean { ): boolean {
return environment ? environment === 'true' : boolean ?? true; return environment ? environment === 'true' : boolean ?? true;
} }
/** /**
@@ -51,7 +65,7 @@ function envOrBoolean(
* @param string Default string. If not set, is `''`. * @param string Default string. If not set, is `''`.
*/ */
function envOrString(environment: string | undefined, string?: string): string { function envOrString(environment: string | undefined, string?: string): string {
return environment ? environment : string ?? ''; return environment ? environment : string ?? '';
} }
/** /**
@@ -61,13 +75,13 @@ function envOrString(environment: string | undefined, string?: string): string {
* @param number Default number. If not set, is `0`. * @param number Default number. If not set, is `0`.
*/ */
function envOrNumber(environment: string | undefined, number?: number): number { function envOrNumber(environment: string | undefined, number?: number): number {
return environment ? Number(environment) : number ?? 0; return environment ? Number(environment) : number ?? 0;
} }
/** /**
* Returns environment variable, given number, or default number, * Returns environment variable, given number, or default number,
* while handling .env input errors for a Min/Max pair. * while handling dotenv input errors for a Min/Max pair.
* .env errors handled: * dotenv errors handled:
* - Min/Max swapped (Min larger than Max, Max smaller than Min) * - Min/Max swapped (Min larger than Max, Max smaller than Min)
* - Min larger than default Max when no Max defined * - Min larger than default Max when no Max defined
* - Max smaller than default Min when no Min defined * - Max smaller than default Min when no Min defined
@@ -77,37 +91,37 @@ function envOrNumber(environment: string | undefined, number?: number): number {
* @param number Default number. If not set, is `0`. * @param number Default number. If not set, is `0`.
*/ */
function envOrNumberMin( function envOrNumberMin(
environmentMin: string | undefined, environmentMin: string | undefined,
environmentMax: string | undefined, environmentMax: string | undefined,
number?: number number?: number
) { ) {
if (environmentMin || environmentMax) { if (environmentMin || environmentMax) {
if (environmentMin && environmentMax) { if (environmentMin && environmentMax) {
return Number( return Number(
Number(environmentMin) < Number(environmentMax) Number(environmentMin) < Number(environmentMax)
? environmentMin ? environmentMin
: environmentMax : environmentMax
); );
} }
if (environmentMax) { if (environmentMax) {
return Number(environmentMax) < (number ?? 0) return Number(environmentMax) < (number ?? 0)
? Number(environmentMax) ? Number(environmentMax)
: number ?? 0; : number ?? 0;
} }
if (environmentMin) { if (environmentMin) {
return Number(environmentMin); return Number(environmentMin);
} }
} }
return number ?? 0; return number ?? 0;
} }
/** /**
* Returns environment variable, given number, or default number, * Returns environment variable, given number, or default number,
* while handling .env input errors for a Min/Max pair. * while handling dotenv input errors for a Min/Max pair.
* .env errors handled: * dotenv errors handled:
* - Min/Max swapped (Min larger than Max, Max smaller than Min) * - Min/Max swapped (Min larger than Max, Max smaller than Min)
* - Min larger than default Max when no Max defined * - Min larger than default Max when no Max defined
* - Max smaller than default Min when no Min defined * - Max smaller than default Min when no Min defined
@@ -117,290 +131,346 @@ function envOrNumberMin(
* @param number Default number. If not set, is `0`. * @param number Default number. If not set, is `0`.
*/ */
function envOrNumberMax( function envOrNumberMax(
environmentMin: string | undefined, environmentMin: string | undefined,
environmentMax: string | undefined, environmentMax: string | undefined,
number?: number number?: number
) { ) {
if (environmentMin || environmentMax) { if (environmentMin || environmentMax) {
if (environmentMin && environmentMax) { if (environmentMin && environmentMax) {
return Number( return Number(
Number(environmentMin) < Number(environmentMax) Number(environmentMin) < Number(environmentMax)
? environmentMax ? environmentMax
: environmentMax : environmentMax
); );
} }
if (environmentMin) { if (environmentMin) {
return Number(environmentMin) > (number ?? 0) return Number(environmentMin) > (number ?? 0)
? Number(environmentMin) ? Number(environmentMin)
: number ?? 0; : number ?? 0;
} }
if (environmentMax) { if (environmentMax) {
return Number(environmentMax); return Number(environmentMax);
} }
} }
return number ?? 0; return number ?? 0;
}
function loadProxyList(filename: string): string[] | undefined {
try {
return readFileSync(`${filename}.proxies`)
.toString()
.trim()
.split('\n')
.map(x => x.trim());
} catch {
return undefined;
}
} }
const browser = { const browser = {
isHeadless: envOrBoolean(process.env.HEADLESS), isHeadless: envOrBoolean(process.env.HEADLESS),
isIncognito: envOrBoolean(process.env.INCOGNITO, false), isIncognito: envOrBoolean(process.env.INCOGNITO, false),
isTrusted: envOrBoolean(process.env.BROWSER_TRUSTED, false), isTrusted: envOrBoolean(process.env.BROWSER_TRUSTED, false),
lowBandwidth: envOrBoolean(process.env.LOW_BANDWIDTH, false), lowBandwidth: envOrBoolean(process.env.LOW_BANDWIDTH, false),
maxBackoff: envOrNumberMax( maxBackoff: envOrNumberMax(
process.env.PAGE_BACKOFF_MIN, process.env.PAGE_BACKOFF_MIN,
process.env.PAGE_BACKOFF_MAX, process.env.PAGE_BACKOFF_MAX,
3600000 3600000
), ),
maxSleep: envOrNumberMax( maxSleep: envOrNumberMax(
process.env.PAGE_SLEEP_MIN, process.env.PAGE_SLEEP_MIN,
process.env.PAGE_SLEEP_MAX, process.env.PAGE_SLEEP_MAX,
10000 10000
), ),
minBackoff: envOrNumberMin( minBackoff: envOrNumberMin(
process.env.PAGE_BACKOFF_MIN, process.env.PAGE_BACKOFF_MIN,
process.env.PAGE_BACKOFF_MAX, process.env.PAGE_BACKOFF_MAX,
10000 10000
), ),
minSleep: envOrNumberMin( minSleep: envOrNumberMin(
process.env.PAGE_SLEEP_MIN, process.env.PAGE_SLEEP_MIN,
process.env.PAGE_SLEEP_MAX, process.env.PAGE_SLEEP_MAX,
5000 5000
), ),
open: envOrBoolean(process.env.OPEN_BROWSER) open: envOrBoolean(process.env.OPEN_BROWSER),
userAgent: '',
}; };
const docker = envOrBoolean(process.env.DOCKER); const docker = envOrBoolean(process.env.DOCKER, false);
const logLevel = envOrString(process.env.LOG_LEVEL, 'info'); const logLevel = envOrString(process.env.LOG_LEVEL, 'info');
const notifications = { const notifications = {
desktop: process.env.DESKTOP_NOTIFICATIONS === 'true', desktop: process.env.DESKTOP_NOTIFICATIONS === 'true',
discord: { discord: {
notifyGroup: envOrArray(process.env.DISCORD_NOTIFY_GROUP), notifyGroup: envOrArray(process.env.DISCORD_NOTIFY_GROUP),
webhooks: envOrArray(process.env.DISCORD_WEB_HOOK) notifyGroupSeries: {
}, 3060: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3060),
email: { '3060ti': envOrArray(process.env.DISCORD_NOTIFY_GROUP_3060TI),
password: envOrString(process.env.EMAIL_PASSWORD), 3070: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3070),
smtpAddress: envOrString(process.env.SMTP_ADDRESS), 3080: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3080),
smtpPort: envOrNumber(process.env.SMTP_PORT, 25), 3090: envOrArray(process.env.DISCORD_NOTIFY_GROUP_3090),
to: envOrString( 'captcha-deterrent': [],
process.env.EMAIL_TO, darkhero: envOrArray(process.env.DISCORD_NOTIFY_GROUP_DARKHERO),
envOrString(process.env.EMAIL_USERNAME) rx6800: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RX6800),
), rx6800xt: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RX6800XT),
username: envOrString(process.env.EMAIL_USERNAME) rx6900xt: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RX6900XT),
}, ryzen5600: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5600),
mqtt: { ryzen5800: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5800),
broker: envOrString(process.env.MQTT_BROKER_ADDRESS), ryzen5900: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5900),
clientId: envOrString(process.env.MQTT_CLIENT_ID), ryzen5950: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5950),
password: envOrString(process.env.MQTT_PASSWORD), sf: envOrArray(process.env.DISCORD_NOTIFY_GROUP_CORSAIR_SF),
port: envOrNumber(process.env.MQTT_BROKER_PORT, 1883), sonyps5c: envOrArray(process.env.DISCORD_NOTIFY_GROUP_SONYPS5C),
qos: envOrNumber(process.env.MQTT_QOS, 0), sonyps5de: envOrArray(process.env.DISCORD_NOTIFY_GROUP_SONYPS5DE),
topic: envOrString(process.env.MQTT_TOPIC, 'streetmerchant/alert'), 'test:series': envOrArray(process.env.DISCORD_NOTIFY_GROUP_TEST),
username: envOrString(process.env.MQTT_USERNAME) xboxss: envOrArray(process.env.DISCORD_NOTIFY_GROUP_XBOXSS),
}, xboxsx: envOrArray(process.env.DISCORD_NOTIFY_GROUP_XBOXSX),
pagerduty: { },
integrationKey: envOrString(process.env.PAGERDUTY_INTEGRATION_KEY), webhooks: envOrArray(process.env.DISCORD_WEB_HOOK),
severity: envOrString(process.env.PAGERDUTY_SEVERITY, 'info') },
}, email: {
philips_hue: { password: envOrString(process.env.EMAIL_PASSWORD),
accessToken: envOrString(process.env.PHILIPS_HUE_CLOUD_ACCESS_TOKEN), smtpAddress: envOrString(process.env.SMTP_ADDRESS),
apiKey: envOrString(process.env.PHILIPS_HUE_API_KEY), smtpPort: envOrNumber(process.env.SMTP_PORT, 25),
bridgeIp: envOrString(process.env.PHILIPS_HUE_LAN_BRIDGE_IP), to: envOrString(
clientId: envOrString(process.env.PHILIPS_HUE_CLOUD_CLIENT_ID), process.env.EMAIL_TO,
clientSecret: envOrString(process.env.PHILIPS_HUE_CLOUD_CLIENT_SECRET), envOrString(process.env.EMAIL_USERNAME)
lightColor: envOrString(process.env.PHILIPS_HUE_LIGHT_COLOR), ),
lightIds: envOrString(process.env.PHILIPS_HUE_LIGHT_IDS), username: envOrString(process.env.EMAIL_USERNAME),
lightPattern: envOrString(process.env.PHILIPS_HUE_LIGHT_PATTERN), },
refreshToken: envOrString(process.env.PHILIPS_HUE_CLOUD_REFRESH_TOKEN), mqtt: {
remoteApiUsername: envOrString(process.env.PHILIPS_HUE_API_KEY) broker: envOrString(process.env.MQTT_BROKER_ADDRESS),
}, clientId: envOrString(process.env.MQTT_CLIENT_ID),
phone: { password: envOrString(process.env.MQTT_PASSWORD),
availableCarriers: new Map([ port: envOrNumber(process.env.MQTT_BROKER_PORT, 1883),
['att', 'txt.att.net'], qos: envOrNumber(process.env.MQTT_QOS, 0),
['attgo', 'mms.att.net'], topic: envOrString(process.env.MQTT_TOPIC, 'streetmerchant/alert'),
['bell', 'txt.bell.ca'], username: envOrString(process.env.MQTT_USERNAME),
['fido', 'fido.ca'], },
['google', 'msg.fi.google.com'], pagerduty: {
['koodo', 'msg.koodomobile.com'], integrationKey: envOrString(process.env.PAGERDUTY_INTEGRATION_KEY),
['mint', 'mailmymobile.net'], severity: envOrString(process.env.PAGERDUTY_SEVERITY, 'info'),
['rogers', 'pcs.rogers.com'], },
['sprint', 'messaging.sprintpcs.com'], philips_hue: {
['telus', 'msg.telus.com'], accessToken: envOrString(process.env.PHILIPS_HUE_CLOUD_ACCESS_TOKEN),
['tmobile', 'tmomail.net'], apiKey: envOrString(process.env.PHILIPS_HUE_API_KEY),
['verizon', 'vtext.com'], bridgeIp: envOrString(process.env.PHILIPS_HUE_LAN_BRIDGE_IP),
['virgin', 'vmobl.com'], clientId: envOrString(process.env.PHILIPS_HUE_CLOUD_CLIENT_ID),
['virgin-ca', 'vmobile.ca'] clientSecret: envOrString(process.env.PHILIPS_HUE_CLOUD_CLIENT_SECRET),
]), lightColor: envOrString(process.env.PHILIPS_HUE_LIGHT_COLOR),
carrier: envOrArray(process.env.PHONE_CARRIER), lightIds: envOrString(process.env.PHILIPS_HUE_LIGHT_IDS),
number: envOrArray(process.env.PHONE_NUMBER) lightPattern: envOrString(process.env.PHILIPS_HUE_LIGHT_PATTERN),
}, refreshToken: envOrString(process.env.PHILIPS_HUE_CLOUD_REFRESH_TOKEN),
playSound: envOrString(process.env.PLAY_SOUND), remoteApiUsername: envOrString(process.env.PHILIPS_HUE_API_KEY),
pushbullet: envOrString(process.env.PUSHBULLET), },
pushover: { phone: {
priority: envOrNumber(process.env.PUSHOVER_PRIORITY), availableCarriers: new Map([
token: envOrString(process.env.PUSHOVER_TOKEN), ['att', 'txt.att.net'],
username: envOrString(process.env.PUSHOVER_USER) ['attgo', 'mms.att.net'],
}, ['bell', 'txt.bell.ca'],
slack: { ['fido', 'fido.ca'],
channel: envOrString(process.env.SLACK_CHANNEL), ['google', 'msg.fi.google.com'],
token: envOrString(process.env.SLACK_TOKEN) ['koodo', 'msg.koodomobile.com'],
}, ['mint', 'mailmymobile.net'],
telegram: { ['rogers', 'pcs.rogers.com'],
accessToken: envOrString(process.env.TELEGRAM_ACCESS_TOKEN), ['sprint', 'messaging.sprintpcs.com'],
chatId: envOrArray(process.env.TELEGRAM_CHAT_ID) ['telus', 'msg.telus.com'],
}, ['tmobile', 'tmomail.net'],
twilio: { ['uscc', 'mms.uscc.net'],
accountSid: envOrString(process.env.TWILIO_ACCOUNT_SID), ['verizon', 'vtext.com'],
authToken: envOrString(process.env.TWILIO_AUTH_TOKEN), ['virgin', 'vmobl.com'],
from: envOrString(process.env.TWILIO_FROM_NUMBER), ['virgin-ca', 'vmobile.ca'],
to: envOrString(process.env.TWILIO_TO_NUMBER) ['visible', 'vtext.com'],
}, ]),
twitch: { carrier: envOrArray(process.env.PHONE_CARRIER),
accessToken: envOrString(process.env.TWITCH_ACCESS_TOKEN), number: envOrArray(process.env.PHONE_NUMBER),
channel: envOrString(process.env.TWITCH_CHANNEL), },
clientId: envOrString(process.env.TWITCH_CLIENT_ID), playSound: envOrString(process.env.PLAY_SOUND),
clientSecret: envOrString(process.env.TWITCH_CLIENT_SECRET), pushbullet: envOrString(process.env.PUSHBULLET),
refreshToken: envOrString(process.env.TWITCH_REFRESH_TOKEN) pushover: {
}, expire: envOrNumber(process.env.PUSHOVER_EXPIRE),
twitter: { priority: envOrNumber(process.env.PUSHOVER_PRIORITY),
accessTokenKey: envOrString(process.env.TWITTER_ACCESS_TOKEN_KEY), retry: envOrNumber(process.env.PUSHOVER_RETRY),
accessTokenSecret: envOrString(process.env.TWITTER_ACCESS_TOKEN_SECRET), token: envOrString(process.env.PUSHOVER_TOKEN),
consumerKey: envOrString(process.env.TWITTER_CONSUMER_KEY), username: envOrString(process.env.PUSHOVER_USER),
consumerSecret: envOrString(process.env.TWITTER_CONSUMER_SECRET), },
tweetTags: envOrString(process.env.TWITTER_TWEET_TAGS) redis: {
} url: envOrString(process.env.REDIS_URL),
},
slack: {
channel: envOrString(process.env.SLACK_CHANNEL),
token: envOrString(process.env.SLACK_TOKEN),
},
smartthings: {
token: envOrString(process.env.SMARTTHINGS_TOKEN),
device: envOrString(process.env.SMARTTHINGS_SWITCH_LABEL),
},
soundPlayer: envOrString(process.env.SOUND_PLAYER),
telegram: {
accessToken: envOrString(process.env.TELEGRAM_ACCESS_TOKEN),
chatId: envOrArray(process.env.TELEGRAM_CHAT_ID),
},
twilio: {
accountSid: envOrString(process.env.TWILIO_ACCOUNT_SID),
authToken: envOrString(process.env.TWILIO_AUTH_TOKEN),
from: envOrString(process.env.TWILIO_FROM_NUMBER),
to: envOrString(process.env.TWILIO_TO_NUMBER),
},
twitch: {
accessToken: envOrString(process.env.TWITCH_ACCESS_TOKEN),
channel: envOrString(process.env.TWITCH_CHANNEL),
clientId: envOrString(process.env.TWITCH_CLIENT_ID),
clientSecret: envOrString(process.env.TWITCH_CLIENT_SECRET),
refreshToken: envOrString(process.env.TWITCH_REFRESH_TOKEN),
},
twitter: {
accessTokenKey: envOrString(process.env.TWITTER_ACCESS_TOKEN_KEY),
accessTokenSecret: envOrString(process.env.TWITTER_ACCESS_TOKEN_SECRET),
consumerKey: envOrString(process.env.TWITTER_CONSUMER_KEY),
consumerSecret: envOrString(process.env.TWITTER_CONSUMER_SECRET),
tweetTags: envOrString(process.env.TWITTER_TWEET_TAGS),
},
streamlabs: {
accessToken: envOrString(process.env.STREAMLABS_ACCESS_TOKEN),
type: envOrString(process.env.STREAMLABS_TYPE),
imageHref: envOrString(process.env.STREAMLABS_IMAGE),
soundHref: envOrString(process.env.STREAMLABS_SOUND),
duration: envOrNumber(process.env.STREAMLABS_DURATION),
},
}; };
const nvidia = { const nvidia = {
addToCardAttempts: envOrNumber(process.env.NVIDIA_ADD_TO_CART_ATTEMPTS, 10), addToCardAttempts: envOrNumber(process.env.NVIDIA_ADD_TO_CART_ATTEMPTS, 10),
sessionTtl: envOrNumber(process.env.NVIDIA_SESSION_TTL, 60000) sessionTtl: envOrNumber(process.env.NVIDIA_SESSION_TTL, 60000),
}; };
const page = { const page = {
height: 1080, height: 1080,
inStockWaitTime: envOrNumber(process.env.IN_STOCK_WAIT_TIME), inStockWaitTime: envOrNumber(process.env.IN_STOCK_WAIT_TIME),
screenshot: envOrBoolean(process.env.SCREENSHOT), screenshot: envOrBoolean(process.env.SCREENSHOT),
timeout: envOrNumber(process.env.PAGE_TIMEOUT, 30000), timeout: envOrNumber(process.env.PAGE_TIMEOUT, 30000),
userAgents: envOrArray(process.env.USER_AGENT, [ width: 1920,
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'
]),
width: 1920
}; };
const proxy = { const proxy = {
address: envOrString(process.env.PROXY_ADDRESS), address: envOrString(process.env.PROXY_ADDRESS),
port: envOrNumber(process.env.PROXY_PORT, 80), port: envOrNumber(process.env.PROXY_PORT, 80),
protocol: envOrString(process.env.PROXY_PROTOCOL, 'http') protocol: envOrString(process.env.PROXY_PROTOCOL, 'http'),
}; };
// Check for deprecated configuration values // Check for deprecated configuration values
if (process.env.MAX_PRICE) { if (process.env.MAX_PRICE) {
console.warn( console.warn(
' MAX_PRICE is deprecated, please use MAX_PRICE_SERIES_{{series}}' ' MAX_PRICE is deprecated, please use MAX_PRICE_SERIES_{{series}}'
); );
} }
const store = { const store = {
autoAddToCart: envOrBoolean(process.env.AUTO_ADD_TO_CART, true), autoAddToCart: envOrBoolean(process.env.AUTO_ADD_TO_CART, true),
country: envOrString(process.env.COUNTRY, 'usa'), country: envOrString(process.env.COUNTRY, 'usa'),
maxPrice: { maxPrice: {
series: { series: {
'3060ti': envOrNumber(process.env.MAX_PRICE_SERIES_3060TI), 3060: envOrNumber(process.env.MAX_PRICE_SERIES_3060),
3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070), '3060ti': envOrNumber(process.env.MAX_PRICE_SERIES_3060TI),
3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080), 3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070),
3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090), 3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080),
rx6800: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800), 3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090),
rx6800xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800XT), 'captcha-deterrent': 0,
rx6900xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6900XT), darkhero: envOrNumber(process.env.MAX_PRICE_SERIES_DARKHERO),
ryzen5600: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5600), rx6800: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800),
ryzen5800: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5800), rx6800xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800XT),
ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5900), rx6900xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6900XT),
ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950), ryzen5600: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5600),
sf: envOrNumber(process.env.MAX_PRICE_SERIES_CORSAIR_SF), ryzen5800: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5800),
sonyps5c: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5C), ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5900),
sonyps5de: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5DE), ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950),
'test:series': envOrNumber(process.env.MAX_PRICE_SERIES_TEST), sf: envOrNumber(process.env.MAX_PRICE_SERIES_CORSAIR_SF),
xboxss: -1, sonyps5c: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5C),
xboxsx: -1 sonyps5de: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5DE),
} 'test:series': envOrNumber(process.env.MAX_PRICE_SERIES_TEST),
}, xboxss: envOrNumber(process.env.MAX_PRICE_SERIES_XBOXSS),
microCenterLocation: envOrArray(process.env.MICROCENTER_LOCATION, ['web']), xboxsx: envOrNumber(process.env.MAX_PRICE_SERIES_XBOXSX),
showOnlyBrands: envOrArray(process.env.SHOW_ONLY_BRANDS), },
showOnlyModels: envOrArray(process.env.SHOW_ONLY_MODELS).map((entry) => { },
const [name, series] = entry.match(/[^:]+/g) ?? []; microCenterLocation: envOrArray(process.env.MICROCENTER_LOCATION, ['web']),
return { showOnlyBrands: envOrArray(process.env.SHOW_ONLY_BRANDS),
name: envOrString(name), showOnlyModels: envOrArray(process.env.SHOW_ONLY_MODELS).map(entry => {
series: envOrString(series) const [name, series] = entry.match(/[^:]+/g) ?? [];
}; return {
}), name: envOrString(name),
showOnlySeries: envOrArray(process.env.SHOW_ONLY_SERIES, [ series: envOrString(series),
'3060ti', };
'3070', }),
'3080', showOnlySeries: envOrArray(process.env.SHOW_ONLY_SERIES, [
'3090', '3060',
'rx6800', '3060ti',
'rx6800xt', '3070',
'rx6900xt', '3080',
'ryzen5600', '3090',
'ryzen5800', 'rx6800',
'ryzen5900', 'rx6800xt',
'ryzen5950', 'rx6900xt',
'sonyps5c', 'ryzen5600',
'sonyps5de', 'ryzen5800',
'xboxss', 'ryzen5900',
'xboxsx' 'ryzen5950',
]), 'sf',
stores: envOrArray(process.env.STORES, ['nvidia']).map((entry) => { 'sonyps5c',
const [name, minPageSleep, maxPageSleep] = entry.match(/[^:]+/g) ?? []; 'sonyps5de',
'xboxss',
'xboxsx',
]),
stores: envOrArray(process.env.STORES, ['amazon', 'bestbuy']).map(entry => {
const [name, minPageSleep, maxPageSleep] = entry.match(/[^:]+/g) ?? [];
let proxyList; let proxyList = loadProxyList(name);
try {
proxyList = readFileSync(`${name}.proxies`)
.toString()
.trim()
.split('\n')
.map((x) => x.trim());
} catch {}
return { if (!proxyList) {
maxPageSleep: envOrNumberMax( proxyList = loadProxyList('global');
minPageSleep, }
maxPageSleep,
browser.maxSleep return {
), maxPageSleep: envOrNumberMax(
minPageSleep: envOrNumberMin( minPageSleep,
minPageSleep, maxPageSleep,
maxPageSleep, browser.maxSleep
browser.minSleep ),
), minPageSleep: envOrNumberMin(
name: envOrString(name), minPageSleep,
proxyList maxPageSleep,
}; browser.minSleep
}) ),
name: envOrString(name),
proxyList,
};
}),
}; };
const restartTime = envOrNumber(process.env.RESTART_TIME, 0);
export const defaultStoreData = { export const defaultStoreData = {
maxPageSleep: browser.maxSleep, maxPageSleep: browser.maxSleep,
minPageSleep: browser.minSleep minPageSleep: browser.minSleep,
}; };
export const config = { export const config = {
browser, browser,
docker, docker,
logLevel, logLevel,
notifications, notifications,
nvidia, nvidia,
page, page,
proxy, proxy,
store store,
restartTime,
}; };
export function setConfig(newConfig: any) { export function setConfig(newConfig: any) {
const writeConfig = config as any; const writeConfig = config as any;
for (const key of Object.keys(newConfig)) { for (const key of Object.keys(newConfig)) {
writeConfig[key] = newConfig[key]; writeConfig[key] = newConfig[key];
} }
} }
+81 -59
View File
@@ -1,95 +1,117 @@
import * as Process from 'process';
import {config} from './config'; // Needs to be loaded first
import {startAPIServer, stopAPIServer} from './web'; import {startAPIServer, stopAPIServer} from './web';
import {Browser} from 'puppeteer'; import {Browser, launch} from 'puppeteer';
import {config} from './config';
import {getSleepTime} from './util'; import {getSleepTime} from './util';
import {logger} from './logger'; import {logger} from './logger';
import puppeteer from 'puppeteer-extra';
import stealthPlugin from 'puppeteer-extra-plugin-stealth';
import {storeList} from './store/model'; import {storeList} from './store/model';
import {tryLookupAndLoop} from './store'; import {tryLookupAndLoop} from './store';
puppeteer.use(stealthPlugin());
let browser: Browser | undefined; let browser: Browser | undefined;
async function sleep(ms: number) {
return new Promise(resolve => setTimeout(resolve, ms));
}
/**
* Schedules a restart of the bot
*/
async function restartMain() {
if (config.restartTime > 0) {
await sleep(config.restartTime);
await stop();
loopMain();
}
}
/** /**
* Starts the bot. * Starts the bot.
*/ */
async function main() { async function main() {
const args: string[] = []; const args: string[] = [];
// Skip Chromium Linux Sandbox // Skip Chromium Linux Sandbox
// https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#setting-up-chrome-linux-sandbox // https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#setting-up-chrome-linux-sandbox
if (config.browser.isTrusted) { if (config.browser.isTrusted) {
args.push('--no-sandbox'); args.push('--no-sandbox');
args.push('--disable-setuid-sandbox'); args.push('--disable-setuid-sandbox');
} }
// https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#tips // https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#tips
if (config.docker) { // https://stackoverflow.com/questions/48230901/docker-alpine-with-node-js-and-chromium-headless-puppeter-failed-to-launch-c
args.push('--disable-dev-shm-usage'); if (config.docker) {
} args.push('--disable-dev-shm-usage');
args.push('--no-sandbox');
args.push('--disable-setuid-sandbox');
args.push('--headless');
args.push('--disable-gpu');
}
// Add the address of the proxy server if defined // Add the address of the proxy server if defined
if (config.proxy.address) { if (config.proxy.address) {
args.push( args.push(
`--proxy-server=${config.proxy.protocol}://${config.proxy.address}:${config.proxy.port}` `--proxy-server=${config.proxy.protocol}://${config.proxy.address}:${config.proxy.port}`
); );
} }
await stop(); if (args.length > 0) {
logger.info(' puppeteer config: ', args);
}
browser = await puppeteer.launch({ await stop();
args, browser = await launch({
defaultViewport: { args,
height: config.page.height, defaultViewport: {
width: config.page.width height: config.page.height,
}, width: config.page.width,
headless: config.browser.isHeadless },
}); headless: config.browser.isHeadless,
});
for (const store of storeList.values()) { config.browser.userAgent = await browser.userAgent();
logger.debug('store links', {meta: {links: store.links}});
if (store.setupAction !== undefined) {
store.setupAction(browser);
}
setTimeout(tryLookupAndLoop, getSleepTime(store), browser, store); for (const store of storeList.values()) {
} logger.debug('store links', {meta: {links: store.links}});
if (store.setupAction !== undefined) {
store.setupAction(browser);
}
await startAPIServer(); setTimeout(tryLookupAndLoop, getSleepTime(store), browser, store);
}
await startAPIServer();
} }
async function stop() { async function stop() {
await stopAPIServer(); await stopAPIServer();
if (browser) { if (browser) {
// Use temporary swap variable to avoid any race condition // Use temporary swap variable to avoid any race condition
const browserTemporary = browser; const browserTemporary = browser;
browser = undefined; browser = undefined;
await browserTemporary.close(); await browserTemporary.close();
} }
} }
async function stopAndExit() { async function stopAndExit() {
await stop(); await stop();
// eslint-disable-next-line unicorn/no-process-exit Process.exit(0);
process.exit(0);
} }
/** /**
* Will continually run until user interferes. * Will continually run until user interferes.
*/ */
async function loopMain() { async function loopMain() {
try { try {
await main(); restartMain();
} catch (error: unknown) { await main();
logger.error( } catch (error: unknown) {
'✖ something bad happened, resetting streetmerchant in 5 seconds', logger.error(
error '✖ something bad happened, resetting streetmerchant in 5 seconds',
); error
setTimeout(loopMain, 5000); );
} setTimeout(loopMain, 5000);
}
} }
void loopMain(); void loopMain();
+227 -184
View File
@@ -3,220 +3,263 @@ import chalk from 'chalk';
import {config} from './config'; import {config} from './config';
import winston from 'winston'; import winston from 'winston';
const prettyJson = winston.format.printf((info) => { const prettyJson = winston.format.printf(info => {
const timestamp = new Date().toLocaleTimeString(); const timestamp = new Date().toLocaleTimeString();
let out = `${chalk.grey(`[${timestamp}]`)} ${info.level} ${chalk.grey( let out = `${chalk.grey(`[${timestamp}]`)} ${info.level} ${chalk.grey(
'::' '::'
)} ${info.message}`; )} ${info.message}`;
if (Object.keys(info.metadata).length > 0) { if (Object.keys(info.metadata).length > 0) {
out = `${out} ${chalk.magenta(JSON.stringify(info.metadata, null, 2))}`; out = `${out} ${chalk.magenta(JSON.stringify(info.metadata, null, 2))}`;
} }
return out; return out;
}); });
export const logger = winston.createLogger({ export const logger = winston.createLogger({
format: winston.format.combine( format: winston.format.combine(
winston.format.colorize(), winston.format.colorize(),
winston.format.metadata({fillExcept: ['level', 'message', 'timestamp']}), winston.format.metadata({
prettyJson fillExcept: ['level', 'message', 'timestamp'],
), }),
level: config.logLevel, prettyJson
transports: [new winston.transports.Console({})] ),
level: config.logLevel,
transports: [new winston.transports.Console({})],
}); });
export const Print = { export const Print = {
backoff( backoff(
link: Link, link: Link,
store: Store, store: Store,
parameters: {delay: number; statusCode: number}, parameters: {delay: number; statusCode: number},
color?: boolean color?: boolean
): string { ): string {
if (color) { if (color) {
return ( return (
'✖ ' + '✖ ' +
buildProductString(link, store, true) + buildProductString(link, store, true) +
' :: ' + ' :: ' +
chalk.yellow( chalk.yellow(
`BACKOFF DELAY status=${parameters.statusCode} delay=${parameters.delay}` `BACKOFF DELAY status=${parameters.statusCode} delay=${parameters.delay}`
) )
); );
} }
return `${buildProductString(link, store)} :: BACKOFF DELAY status=${ return `${buildProductString(link, store)} :: BACKOFF DELAY status=${
parameters.statusCode parameters.statusCode
} delay=${parameters.delay}`; } delay=${parameters.delay}`;
}, },
badStatusCode( badStatusCode(
link: Link, link: Link,
store: Store, store: Store,
statusCode: number, statusCode: number,
color?: boolean color?: boolean
): string { ): string {
if (color) { if (color) {
return ( return (
'✖ ' + '✖ ' +
buildProductString(link, store, true) + buildProductString(link, store, true) +
' :: ' + ' :: ' +
chalk.yellow(`STATUS CODE ERROR ${statusCode}`) chalk.yellow(`STATUS CODE ERROR ${statusCode}`)
); );
} }
return `${buildProductString( return `${buildProductString(
link, link,
store store
)} :: STATUS CODE ERROR ${statusCode}`; )} :: STATUS CODE ERROR ${statusCode}`;
}, },
bannedSeller(link: Link, store: Store, color?: boolean): string { bannedSeller(link: Link, store: Store, color?: boolean): string {
if (color) { if (color) {
return ( return (
'✖ ' + '✖ ' +
buildProductString(link, store, true) + buildProductString(link, store, true) +
' :: ' + ' :: ' +
chalk.yellow('BANNED SELLER') chalk.yellow('BANNED SELLER')
); );
} }
return `${buildProductString(link, store)} :: BANNED SELLER`; return `${buildProductString(link, store)} :: BANNED SELLER`;
}, },
captcha(link: Link, store: Store, color?: boolean): string { captcha(link: Link, store: Store, color?: boolean): string {
if (color) { if (color) {
return ( return (
'✖ ' + '✖ ' +
buildProductString(link, store, true) + buildProductString(link, store, true) +
' :: ' + ' :: ' +
chalk.yellow('CAPTCHA') chalk.yellow('CAPTCHA')
); );
} }
return `${buildProductString(link, store)} :: CAPTCHA`; return `${buildProductString(link, store)} :: CAPTCHA`;
}, },
inStock(link: Link, store: Store, color?: boolean, sms?: boolean): string { cloudflare(link: Link, store: Store, color?: boolean): string {
const productString = `${buildProductString(link, store)} :: IN STOCK`; if (color) {
return (
'✖ ' +
buildProductString(link, store, true) +
' :: ' +
chalk.yellow('CLOUDFLARE, WAITING')
);
}
if (color) { return `${buildProductString(link, store)} :: CLOUDFLARE, WAITING`;
return chalk.bgGreen.white.bold(`🚀🚨 ${productString} 🚨🚀`); },
} inStock(link: Link, store: Store, color?: boolean, sms?: boolean): string {
const productString = `${buildProductString(link, store)} :: IN STOCK`;
if (sms) { if (color) {
return productString; return chalk.bgGreen.white.bold(`🚀🚨 ${productString} 🚨🚀`);
} }
return `🚀🚨 ${productString} 🚨🚀`; if (sms) {
}, return productString;
inStockWaiting(link: Link, store: Store, color?: boolean): string { }
if (color) {
return (
' ' +
buildProductString(link, store, true) +
' :: ' +
chalk.yellow('IN STOCK, WAITING')
);
}
return ` ${buildProductString(link, store)} :: IN STOCK, WAITING`; return `🚀🚨 ${productString} 🚨🚀`;
}, },
maxPrice( inStockWaiting(link: Link, store: Store, color?: boolean): string {
link: Link, if (color) {
store: Store, return (
maxPrice: number, ' ' +
color?: boolean buildProductString(link, store, true) +
): string { ' :: ' +
if (color) { chalk.yellow('IN STOCK, WAITING')
return ( );
'✖ ' + }
buildProductString(link, store, true) +
' :: ' +
chalk.yellow(`PRICE ${link.price ?? ''} EXCEEDS LIMIT ${maxPrice}`)
);
}
return ` ${buildProductString(link, store)} :: PRICE ${ return ` ${buildProductString(link, store)} :: IN STOCK, WAITING`;
link.price ?? '' },
} EXCEEDS LIMIT ${maxPrice}`; maxPrice(
}, link: Link,
message( store: Store,
message: string, maxPrice: number,
topic: string, color?: boolean
store: Store, ): string {
color?: boolean if (color) {
): string { return (
if (color) { '✖ ' +
return ( buildProductString(link, store, true) +
'✖ ' + ' :: ' +
buildSetupString(topic, store, true) + chalk.yellow(`PRICE ${link.price ?? ''} EXCEEDS LIMIT ${maxPrice}`)
' :: ' + );
chalk.yellow(message) }
);
}
return `${buildSetupString(topic, store)} :: ${message}`; return `${buildProductString(link, store)} :: PRICE ${
}, link.price ?? ''
noResponse(link: Link, store: Store, color?: boolean): string { } EXCEEDS LIMIT ${maxPrice}`;
if (color) { },
return ( message(
'✖ ' + message: string,
buildProductString(link, store, true) + topic: string,
' :: ' + store: Store,
chalk.yellow('NO RESPONSE') color?: boolean
); ): string {
} if (color) {
return (
'✖ ' +
buildSetupString(topic, store, true) +
' :: ' +
chalk.yellow(message)
);
}
return `${buildProductString(link, store)} :: NO RESPONSE`; return `${buildSetupString(topic, store)} :: ${message}`;
}, },
outOfStock(link: Link, store: Store, color?: boolean): string { noResponse(link: Link, store: Store, color?: boolean): string {
if (color) { if (color) {
return ( return (
'✖ ' + '✖ ' +
buildProductString(link, store, true) + buildProductString(link, store, true) +
' :: ' + ' :: ' +
chalk.red('OUT OF STOCK') chalk.yellow('NO RESPONSE')
); );
} }
return `${buildProductString(link, store)} :: OUT OF STOCK`; return `${buildProductString(link, store)} :: NO RESPONSE`;
}, },
productInStock(link: Link): string { outOfStock(link: Link, store: Store, color?: boolean): string {
let productString = `Product Page: ${link.url}`; if (color) {
if (link.cartUrl) productString += `\nAdd To Cart Link: ${link.cartUrl}`; return (
'✖ ' +
buildProductString(link, store, true) +
' :: ' +
chalk.red('OUT OF STOCK')
);
}
return productString; return `${buildProductString(link, store)} :: OUT OF STOCK`;
}, },
rateLimit(link: Link, store: Store, color?: boolean): string { productInStock(link: Link): string {
if (color) { let productString = `Product Page: ${link.url}`;
return ( if (link.cartUrl) productString += `\nAdd To Cart Link: ${link.cartUrl}`;
'✖ ' +
buildProductString(link, store, true) +
' :: ' +
chalk.yellow('RATE LIMIT EXCEEDED')
);
}
return `${buildProductString(link, store)} :: RATE LIMIT EXCEEDED`; return productString;
} },
rateLimit(link: Link, store: Store, color?: boolean): string {
if (color) {
return (
'✖ ' +
buildProductString(link, store, true) +
' :: ' +
chalk.yellow('RATE LIMIT EXCEEDED')
);
}
return `${buildProductString(link, store)} :: RATE LIMIT EXCEEDED`;
},
recursionLimit(link: Link, store: Store, color?: boolean): string {
if (color) {
return (
'✖ ' +
buildProductString(link, store, true) +
' :: ' +
chalk.yellow('CLOUDFLARE RETRY LIMIT REACHED, ABORT')
);
}
return `${buildProductString(
link,
store
)} :: CLOUDFLARE RETRY LIMIT REACHED, ABORT`;
},
}; };
function buildSetupString( function buildSetupString(
topic: string, topic: string,
store: Store, store: Store,
color?: boolean color?: boolean
): string { ): string {
if (color) { if (color) {
return chalk.cyan(`[${store.name}]`) + chalk.grey(` [setup (${topic})]`); return chalk.cyan(`[${store.name}]`) + chalk.grey(` [setup (${topic})]`);
} }
return `[${store.name}] [setup (${topic})]`; return `[${store.name}] [setup (${topic})]`;
} }
function buildProductString(link: Link, store: Store, color?: boolean): string { function buildProductString(link: Link, store: Store, color?: boolean): string {
if (color) { if (color) {
return ( if (store.currentProxyIndex !== undefined && store.proxyList) {
chalk.cyan(`[${store.name}]`) + const proxy = `${store.currentProxyIndex + 1}/${store.proxyList.length}`;
chalk.grey(` [${link.brand} (${link.series})] ${link.model}`) return (
); chalk.gray(`[${proxy}]`) +
} chalk.cyan(` [${store.name}]`) +
chalk.grey(` [${link.brand} (${link.series})] ${link.model}`)
);
} else {
return (
chalk.cyan(`[${store.name}]`) +
chalk.grey(` [${link.brand} (${link.series})] ${link.model}`)
);
}
}
return `[${store.name}] [${link.brand} (${link.series})] ${link.model}`; if (store.currentProxyIndex !== undefined && store.proxyList) {
const proxy = `${store.currentProxyIndex + 1}/${store.proxyList.length}`;
return `[${proxy}] [${store.name}] [${link.brand} (${link.series})] ${link.model}`;
} else {
return `[${store.name}] [${link.brand} (${link.series})] ${link.model}`;
}
} }
+17 -11
View File
@@ -1,20 +1,26 @@
import {Link, Store} from '../store/model'; import {Link, Store} from '../store/model';
import {Print, logger} from '../logger'; import {Print, logger} from '../logger';
import {config} from '../config'; import {config} from '../config';
import {join} from 'path';
import notifier from 'node-notifier'; import notifier from 'node-notifier';
const desktop = config.notifications.desktop; const {desktop} = config.notifications;
export function sendDesktopNotification(link: Link, store: Store) { export function sendDesktopNotification(link: Link, store: Store) {
if (desktop) { if (desktop) {
logger.debug('↗ sending desktop notification'); logger.debug('↗ sending desktop notification');
(async () => { (async () => {
notifier.notify({ notifier.notify({
message: link.cartUrl ? link.cartUrl : link.url, icon: join(
title: Print.inStock(link, store) __dirname,
}); '../../../docs/assets/images/streetmerchant-logo.png'
),
message: link.cartUrl ? link.cartUrl : link.url,
open: link.cartUrl ? link.cartUrl : link.url,
title: Print.inStock(link, store),
});
logger.info('✔ desktop notification sent'); logger.info('✔ desktop notification sent');
})(); })();
} }
} }
+63 -50
View File
@@ -3,66 +3,79 @@ import Discord from 'discord.js';
import {config} from '../config'; import {config} from '../config';
import {logger} from '../logger'; import {logger} from '../logger';
const discord = config.notifications.discord; const {notifyGroup, webhooks, notifyGroupSeries} = config.notifications.discord;
const {notifyGroup, webhooks} = discord;
function getIdAndToken(webhook: string) { function getIdAndToken(webhook: string) {
const match = /.*\/webhooks\/(\d+)\/(.+)/.exec(webhook); const match = /.*\/webhooks\/(\d+)\/(.+)/.exec(webhook);
if (!match) { if (!match) {
throw new Error('could not get discord webhook'); throw new Error('could not get discord webhook');
} }
return { return {
id: match[1], id: match[1],
token: match[2] token: match[2],
}; };
} }
export function sendDiscordMessage(link: Link, store: Store) { export function sendDiscordMessage(link: Link, store: Store) {
if (webhooks.length > 0) { if (webhooks.length > 0) {
logger.debug('↗ sending discord message'); logger.debug('↗ sending discord message');
(async () => { (async () => {
try { try {
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setTitle('_**Stock alert!**_') .setTitle('_**Stock alert!**_')
.setDescription( .setDescription(
'> provided by [streetmerchant](https://github.com/jef/streetmerchant) with :heart:' '> provided by [streetmerchant](https://github.com/jef/streetmerchant) with :heart:'
) )
.setThumbnail( .setThumbnail(
'https://raw.githubusercontent.com/jef/streetmerchant/main/media/streetmerchant-square.png' 'https://raw.githubusercontent.com/jef/streetmerchant/main/docs/assets/images/streetmerchant-logo.png'
) )
.setColor('#52b788') .setColor('#52b788')
.setTimestamp(); .setTimestamp();
embed.addField('Store', store.name, true); embed.addField('Store', store.name, true);
if (link.price) embed.addField('Price', `$${link.price}`, true); if (link.price)
embed.addField('Product Page', link.url); embed.addField('Price', `${store.currency}${link.price}`, true);
if (link.cartUrl) embed.addField('Add to Cart', link.cartUrl); embed.addField('Product Page', link.url);
embed.addField('Brand', link.brand, true); if (link.cartUrl) embed.addField('Add to Cart', link.cartUrl);
embed.addField('Model', link.model, true); embed.addField('Brand', link.brand, true);
embed.addField('Series', link.series, true); embed.addField('Model', link.model, true);
embed.addField('Series', link.series, true);
const promises = []; embed.setTimestamp();
for (const webhook of webhooks) {
const {id, token} = getIdAndToken(webhook);
const client = new Discord.WebhookClient(id, token);
promises.push({
client,
message: client.send(notifyGroup.join(' '), {
embeds: [embed],
username: 'streetmerchant'
})
});
}
(await Promise.all(promises)).forEach(({client}) => client.destroy()); let notifyText: string[] = [];
logger.info('✔ discord message sent'); if (notifyGroup) {
} catch (error: unknown) { notifyText = notifyText.concat(notifyGroup);
logger.error("✖ couldn't send discord message", error); }
}
})(); if (Object.keys(notifyGroupSeries).indexOf(link.series) !== -1) {
} notifyText = notifyText.concat(notifyGroupSeries[link.series]);
}
const promises = [];
for (const webhook of webhooks) {
const {id, token} = getIdAndToken(webhook);
const client = new Discord.WebhookClient(id, token);
promises.push({
client,
message: client.send(notifyText.join(' '), {
embeds: [embed],
username: 'streetmerchant',
}),
});
}
(await Promise.all(promises)).forEach(({client}) => client.destroy());
logger.info('✔ discord message sent');
} catch (error: unknown) {
logger.error("✖ couldn't send discord message", error);
}
})();
}
} }
+32 -32
View File
@@ -4,52 +4,52 @@ import Mail from 'nodemailer/lib/mailer';
import {config} from '../config'; import {config} from '../config';
import nodemailer from 'nodemailer'; import nodemailer from 'nodemailer';
const email = config.notifications.email; const {email} = config.notifications;
const transportOptions: any = {}; const transportOptions: any = {};
if (email.username && (email.password || email.smtpAddress)) { if (email.username && (email.password || email.smtpAddress)) {
transportOptions.auth = {}; transportOptions.auth = {};
transportOptions.auth.user = email.username; transportOptions.auth.user = email.username;
transportOptions.auth.pass = email.password; transportOptions.auth.pass = email.password;
} }
if (email.smtpAddress) { if (email.smtpAddress) {
transportOptions.host = email.smtpAddress; transportOptions.host = email.smtpAddress;
transportOptions.port = email.smtpPort; transportOptions.port = email.smtpPort;
} else { } else {
transportOptions.service = 'gmail'; transportOptions.service = 'gmail';
} }
export const transporter = nodemailer.createTransport({ export const transporter = nodemailer.createTransport({
...transportOptions ...transportOptions,
}); });
export function sendEmail(link: Link, store: Store) { export function sendEmail(link: Link, store: Store) {
if (email.username && (email.password || email.smtpAddress)) { if (email.username && (email.password || email.smtpAddress)) {
logger.debug('↗ sending email'); logger.debug('↗ sending email');
const mailOptions: Mail.Options = { const mailOptions: Mail.Options = {
attachments: link.screenshot attachments: link.screenshot
? [ ? [
{ {
filename: link.screenshot, filename: link.screenshot,
path: `./${link.screenshot}` path: `./${link.screenshot}`,
} },
] ]
: undefined, : undefined,
from: email.username, from: email.username,
subject: Print.inStock(link, store), subject: Print.inStock(link, store),
text: Print.productInStock(link), text: Print.productInStock(link),
to: email.to to: email.to,
}; };
transporter.sendMail(mailOptions, (error) => { transporter.sendMail(mailOptions, error => {
if (error) { if (error) {
logger.error("✖ couldn't send email", error); logger.error("✖ couldn't send email", error);
} else { } else {
logger.info('✔ email sent'); logger.info('✔ email sent');
} }
}); });
} }
} }
+69 -69
View File
@@ -3,112 +3,112 @@ import MqttClient, {IClientOptions, IClientPublishOptions} from 'mqtt';
import {Print, logger} from '../logger'; import {Print, logger} from '../logger';
import {config} from '../config'; import {config} from '../config';
const mqtt = config.notifications.mqtt; const {mqtt} = config.notifications;
let client: MqttClient.Client; let client: MqttClient.Client;
if (mqtt.broker) { if (mqtt.broker) {
if (checkInsecureUsage(mqtt.password, mqtt.broker)) { if (checkInsecureUsage(mqtt.password, mqtt.broker)) {
logger.warn( logger.warn(
'✖ Insecure transport of password - Only use credentials with MQTT brokers on private networks.' '✖ Insecure transport of password - Only use credentials with MQTT brokers on private networks.'
); );
} else { } else {
const clientOptions: IClientOptions = { const clientOptions: IClientOptions = {
clean: mqtt.clientId === '', clean: mqtt.clientId === '',
clientId: mqtt.clientId === '' ? undefined : mqtt.clientId, clientId: mqtt.clientId === '' ? undefined : mqtt.clientId,
password: mqtt.password === '' ? undefined : mqtt.password, password: mqtt.password === '' ? undefined : mqtt.password,
username: mqtt.username === '' ? undefined : mqtt.username username: mqtt.username === '' ? undefined : mqtt.username,
}; };
client = MqttClient.connect( client = MqttClient.connect(
`mqtt://${mqtt.broker}:${mqtt.port}`, `mqtt://${mqtt.broker}:${mqtt.port}`,
clientOptions clientOptions
); );
} }
} }
export function sendMqttMessage(link: Link, store: Store) { export function sendMqttMessage(link: Link, store: Store) {
if (client) { if (client) {
logger.debug('↗ sending mqtt message'); logger.debug('↗ sending mqtt message');
(async () => { (async () => {
const givenUrl = link.cartUrl ? link.cartUrl : link.url; const givenUrl = link.cartUrl ? link.cartUrl : link.url;
const message = `{"msg":"${Print.inStock( const message = `{"msg":"${Print.inStock(
link, link,
store store
)}", "url":"${givenUrl}"}`; )}", "url":"${givenUrl}"}`;
const topic = generateTopic(link, store, mqtt.topic); const topic = generateTopic(link, store, mqtt.topic);
const pubOptions: IClientPublishOptions = { const pubOptions: IClientPublishOptions = {
qos: mqtt.qos as 0 | 1 | 2, qos: mqtt.qos as 0 | 1 | 2,
retain: false retain: false,
}; };
try { try {
client.publish(topic, message, pubOptions); client.publish(topic, message, pubOptions);
logger.info('✔ mqtt message sent'); logger.info('✔ mqtt message sent');
} catch (error: unknown) { } catch (error: unknown) {
logger.error("✖ couldn't send mqtt message", error); logger.error("✖ couldn't send mqtt message", error);
} }
})(); })();
} }
} }
function generateTopic(link: Link, store: Store, topic: string): string { function generateTopic(link: Link, store: Store, topic: string): string {
topic.trim(); topic.trim();
topic = topic.replace(/^\//, ''); topic = topic.replace(/^\//, '');
topic = topic topic = topic
.replace(/%series%/g, link.series) .replace(/%series%/g, link.series)
.replace(/%brand%/g, link.brand) .replace(/%brand%/g, link.brand)
.replace(/%model%/g, link.model) .replace(/%model%/g, link.model)
.replace(/%store%/g, store.name); .replace(/%store%/g, store.name);
return topic; return topic;
} }
/** /**
* Basic protection against sending credentials in the clear over public networks. * Basic protection against sending credentials in the clear over public networks.
* - Returns 'true' if password is supplied in .env but address/URL is not part of a private network * - Returns 'true' if password is supplied in dotenv but address/URL is not part of a private network
* - Private networks evaluated: Class A, B, or C private IP's or linklocal URL ("*.local") * - Private networks evaluated: Class A, B, or C private IP's or linklocal URL ("*.local")
* - TLS could be implemented, however, the majority of MQTT services on the internet do not require user authentication. * - TLS could be implemented, however, the majority of MQTT services on the internet do not require user authentication.
* - If you find a 'cloud' MQTT broker requiring authentication for publishing alerts, consider using another MQTT service (for now). * - If you find a 'cloud' MQTT broker requiring authentication for publishing alerts, consider using another MQTT service (for now).
* *
*/ */
function checkInsecureUsage(pass: string, address: string): boolean { function checkInsecureUsage(pass: string, address: string): boolean {
if (pass !== '') { if (pass !== '') {
if ( if (
isClassANet(address) || isClassANet(address) ||
isClassBNet(address) || isClassBNet(address) ||
isClassCNet(address) || isClassCNet(address) ||
isLinkLocal(address) isLinkLocal(address)
) { ) {
logger.debug(`MQTT using private network broker: ${address}`); logger.debug(`MQTT using private network broker: ${address}`);
} else { } else {
logger.debug(`MQTT using public network broker: ${address}`); logger.debug(`MQTT using public network broker: ${address}`);
return true; return true;
} }
} }
return false; return false;
} }
function isClassANet(address: string): boolean { function isClassANet(address: string): boolean {
const classRegex = /^(10\.(\d|[1-9]\d|[12][0-5]{2})\.(\d|[1-9]\d|[12][0-5]{2})\.(\d|[1-9]\d|[12][0-5]{2}))$/; const classRegex = /^(10\.(\d|[1-9]\d|[12][0-5]{2})\.(\d|[1-9]\d|[12][0-5]{2})\.(\d|[1-9]\d|[12][0-5]{2}))$/;
return Boolean(classRegex.exec(address)); return Boolean(classRegex.exec(address));
} }
function isClassBNet(address: string): boolean { function isClassBNet(address: string): boolean {
const classRegex = /^(172\.(1[6-9]|2\d|3[01])\.(\d|[1-9]\d|[12][0-5]{2})\.(\d|[1-9]\d|[12][0-5]{2}))$/; const classRegex = /^(172\.(1[6-9]|2\d|3[01])\.(\d|[1-9]\d|[12][0-5]{2})\.(\d|[1-9]\d|[12][0-5]{2}))$/;
return Boolean(classRegex.exec(address)); return Boolean(classRegex.exec(address));
} }
function isClassCNet(address: string): boolean { function isClassCNet(address: string): boolean {
const classRegex = /^(192\.168\.(\d|[1-9]\d|[12][0-5]{2})\.(\d|[1-9]\d|[12][0-5]{2}))$/; const classRegex = /^(192\.168\.(\d|[1-9]\d|[12][0-5]{2})\.(\d|[1-9]\d|[12][0-5]{2}))$/;
return Boolean(classRegex.exec(address)); return Boolean(classRegex.exec(address));
} }
function isLinkLocal(address: string): boolean { function isLinkLocal(address: string): boolean {
const linkLocal = /.+\.local$/; const linkLocal = /.+\.local$/;
return Boolean(linkLocal.exec(address)); return Boolean(linkLocal.exec(address));
} }
+23 -17
View File
@@ -14,23 +14,29 @@ import {sendTelegramMessage} from './telegram';
import {sendTweet} from './twitter'; import {sendTweet} from './twitter';
import {sendTwilioMessage} from './twilio'; import {sendTwilioMessage} from './twilio';
import {sendTwitchMessage} from './twitch'; import {sendTwitchMessage} from './twitch';
import {updateRedis} from './redis';
import {activateSmartthingsSwitch} from './smartthings';
import {sendStreamLabsAlert} from './streamlabs';
export function sendNotification(link: Link, store: Store) { export function sendNotification(link: Link, store: Store) {
// Priority // Priority
playSound(); playSound();
sendEmail(link, store); sendDiscordMessage(link, store);
sendSms(link, store); sendDesktopNotification(link, store);
sendDesktopNotification(link, store); sendEmail(link, store);
// Non-priority sendSms(link, store);
adjustPhilipsHueLights(); // Non-priority
sendDiscordMessage(link, store); activateSmartthingsSwitch();
sendMqttMessage(link, store); adjustPhilipsHueLights();
sendPagerDutyNotification(link, store); sendMqttMessage(link, store);
sendPushbulletNotification(link, store); sendPagerDutyNotification(link, store);
sendPushoverNotification(link, store); sendPushbulletNotification(link, store);
sendSlackMessage(link, store); sendPushoverNotification(link, store);
sendTelegramMessage(link, store); sendSlackMessage(link, store);
sendTweet(link, store); sendTelegramMessage(link, store);
sendTwilioMessage(link, store); sendTweet(link, store);
sendTwitchMessage(link, store); sendTwilioMessage(link, store);
sendTwitchMessage(link, store);
updateRedis(link, store);
sendStreamLabsAlert(link, store);
} }
+21 -21
View File
@@ -6,26 +6,26 @@ import {config} from '../config';
const pd = new PDClient(''); const pd = new PDClient('');
export function sendPagerDutyNotification(link: Link, store: Store) { export function sendPagerDutyNotification(link: Link, store: Store) {
if (config.notifications.pagerduty.integrationKey) { if (config.notifications.pagerduty.integrationKey) {
logger.debug('↗ sending pagerduty message'); logger.debug('↗ sending pagerduty message');
const links = [{href: link.url, text: 'Visit Store'}]; const links = [{href: link.url, text: 'Visit Store'}];
if (link.cartUrl) { if (link.cartUrl) {
links.push({ links.push({
href: link.cartUrl, href: link.cartUrl,
text: 'Add to Cart' text: 'Add to Cart',
}); });
} }
pd.events.sendEvent({ pd.events.sendEvent({
dedup_key: link.url, dedup_key: link.url,
event_action: 'trigger', event_action: 'trigger',
payload: { payload: {
links, links,
severity: config.notifications.pagerduty.severity, severity: config.notifications.pagerduty.severity,
source: store.name, source: store.name,
summary: Print.inStock(link, store) summary: Print.inStock(link, store),
}, },
routing_key: config.notifications.pagerduty.integrationKey routing_key: config.notifications.pagerduty.integrationKey,
}); });
} }
} }
+111 -110
View File
@@ -3,124 +3,125 @@ import {config} from '../config';
import {v3 as hueAPI} from 'node-hue-api'; import {v3 as hueAPI} from 'node-hue-api';
import {logger} from '../logger'; import {logger} from '../logger';
const hue = config.notifications.philips_hue; const {LightState} = hueAPI.lightStates;
const apiKey = hue.apiKey; const {
const bridgeIp = hue.bridgeIp; apiKey,
const lightIds = hue.lightIds; bridgeIp,
const lightColor = hue.lightColor; lightIds,
const lightPattern = hue.lightPattern; lightColor,
const LightState = hueAPI.lightStates.LightState; lightPattern,
const clientId = hue.clientId; clientId,
const clientSecret = hue.clientSecret; clientSecret,
const accessToken = hue.accessToken; accessToken,
const refreshToken = hue.refreshToken; refreshToken,
const remoteApiUsername = hue.remoteApiUsername; remoteApiUsername,
} = config.notifications.philips_hue;
// Default Light State // Default Light State
const lightState = new LightState() const lightState = new LightState()
.on(true) .on(true)
.brightness(100) .brightness(100)
.rgb(46.27, 72.55, 0); .rgb(46.27, 72.55, 0);
const adjustLightsWithAPI = (hueBridge: Api) => { const adjustLightsWithAPI = (hueBridge: Api) => {
logger.debug('Connected to Philips Hue bridge.'); logger.debug('Connected to Philips Hue bridge.');
// Set the custom light state (COLOR and METHOD here) // Set the custom light state (COLOR and METHOD here)
if (lightColor) { if (lightColor) {
const rgbArray = lightColor.split(','); const rgbArray = lightColor.split(',');
// If there's not three values, must not be RGB // If there's not three values, must not be RGB
if (rgbArray.length === 3) { if (rgbArray.length === 3) {
lightState.rgb(rgbArray[0], rgbArray[1], rgbArray[2]); lightState.rgb(rgbArray[0], rgbArray[1], rgbArray[2]);
} else { } else {
logger.debug('✖ Error assigning RGB Values'); logger.debug('✖ Error assigning RGB Values');
} }
} }
// If blink is specified, then blink the lights // If blink is specified, then blink the lights
if (lightPattern === 'blink') { if (lightPattern === 'blink') {
lightState.alertLong(); lightState.alertLong();
} }
// If we've been given light IDs, then only adjust those IDs // If we've been given light IDs, then only adjust those IDs
if (lightIds) { if (lightIds) {
const arrayOfIDs = lightIds.split(','); const arrayOfIDs = lightIds.split(',');
arrayOfIDs.forEach((light) => { arrayOfIDs.forEach(light => {
logger.debug('adjusting all hue lights'); logger.debug('adjusting specified lights');
(hueBridge.lights.setLightState(light, lightState) as Promise<any>).catch( (hueBridge.lights.setLightState(light, lightState) as Promise<any>).catch(
(error: Error) => { (error: Error) => {
logger.error('Failed to adjust all lights.'); logger.error('Failed to adjust specified lights.');
logger.error(error); logger.error(error);
throw error; throw error;
} }
); );
}); });
} else { } else {
// Adjust all light IDs // Adjust all light IDs
hueBridge.lights hueBridge.lights
.getAll() .getAll()
.then((allLights: any[]) => { .then((allLights: any[]) => {
allLights.forEach((light: any) => { allLights.forEach((light: any) => {
logger.debug('adjusting specified lights'); logger.debug('adjusting all hue lights');
(hueBridge.lights.setLightState( (hueBridge.lights.setLightState(
light, light,
lightState lightState
) as Promise<any>).catch((error: Error) => { ) as Promise<any>).catch((error: Error) => {
logger.error('Failed to adjust specified lights.'); logger.error('Failed to adjust all lights.');
logger.error(error); logger.error(error);
throw error; throw error;
}); });
}); });
}) })
.catch((error: Error) => { .catch((error: Error) => {
logger.error('Failed to get all lights.'); logger.error('Failed to get all lights.');
logger.error(error); logger.error(error);
throw error; throw error;
}); });
} }
}; };
export function adjustPhilipsHueLights() { export function adjustPhilipsHueLights() {
// Check if the required variables have been set // Check if the required variables have been set
if (hue.apiKey && hue.bridgeIp) { if (apiKey && bridgeIp) {
logger.info('↗ adjusting Philips Hue lights over LAN'); logger.info('↗ adjusting Philips Hue lights over LAN');
(async () => { (async () => {
logger.debug( logger.debug(
'Attempting to connect to Philips Hue bridge at ' + bridgeIp 'Attempting to connect to Philips Hue bridge at ' + bridgeIp
); );
hueAPI.api hueAPI.api
.createLocal(bridgeIp) .createLocal(bridgeIp)
.connect(apiKey) .connect(apiKey)
.then( .then(
(hueBridge) => { hueBridge => {
adjustLightsWithAPI(hueBridge); adjustLightsWithAPI(hueBridge);
logger.info('✔ adjusted Philips Hue lights over LAN'); logger.info('✔ adjusted Philips Hue lights over LAN');
}, },
(error: Error) => { (error: Error) => {
logger.error("✖ couldn't adjust hue lights.", error); logger.error("✖ couldn't adjust hue lights.", error);
} }
); );
})(); })();
} else if (hue.apiKey && hue.clientId && hue.clientSecret) { } else if (apiKey && clientId && clientSecret) {
logger.info('↗ adjusting Philips Hue lights over cloud'); logger.info('↗ adjusting Philips Hue lights over cloud');
(async () => { (async () => {
logger.debug('Attempting to connect to Philips Hue bridge over cloud'); logger.debug('Attempting to connect to Philips Hue bridge over cloud');
const remoteBootstrap = hueAPI.api.createRemote(clientId, clientSecret); const remoteBootstrap = hueAPI.api.createRemote(clientId, clientSecret);
if (hue.accessToken && hue.refreshToken) { if (accessToken && refreshToken) {
remoteBootstrap remoteBootstrap
.connectWithTokens(accessToken, refreshToken, remoteApiUsername) .connectWithTokens(accessToken, refreshToken, remoteApiUsername)
.then( .then(
(hueBridge) => { hueBridge => {
adjustLightsWithAPI(hueBridge); adjustLightsWithAPI(hueBridge);
logger.info('✔ adjusted Philips Hue lights over cloud'); logger.info('✔ adjusted Philips Hue lights over cloud');
}, },
(error: Error) => { (error: Error) => {
logger.error( logger.error(
'Failed to get a remote Philips Hue connection using supplied tokens.' 'Failed to get a remote Philips Hue connection using supplied tokens.'
); );
logger.error(error); logger.error(error);
throw error; throw error;
} }
); );
} }
})(); })();
} }
} }
+17 -17
View File
@@ -3,25 +3,25 @@ import {Print, logger} from '../logger';
import PushBullet from '@jef/pushbullet'; import PushBullet from '@jef/pushbullet';
import {config} from '../config'; import {config} from '../config';
const pushbullet = config.notifications.pushbullet; const {pushbullet} = config.notifications;
export function sendPushbulletNotification(link: Link, store: Store) { export function sendPushbulletNotification(link: Link, store: Store) {
if (pushbullet) { if (pushbullet) {
logger.debug('↗ sending pushbullet message'); logger.debug('↗ sending pushbullet message');
const pusher = new PushBullet(pushbullet); const pusher = new PushBullet(pushbullet);
pusher.note( pusher.note(
{}, {},
Print.inStock(link, store), Print.inStock(link, store),
link.cartUrl ? link.cartUrl : link.url, link.cartUrl ? link.cartUrl : link.url,
(error: Error) => { (error: Error) => {
if (error) { if (error) {
logger.error("✖ couldn't send pushbullet message", error); logger.error("✖ couldn't send pushbullet message", error);
} else { } else {
logger.info('✔ pushbullet message sent'); logger.info('✔ pushbullet message sent');
} }
} }
); );
} }
} }
+32 -20
View File
@@ -3,28 +3,40 @@ import {Print, logger} from '../logger';
import Push, {PushoverMessage} from 'pushover-notifications'; import Push, {PushoverMessage} from 'pushover-notifications';
import {config} from '../config'; import {config} from '../config';
const pushover = config.notifications.pushover; const {pushover} = config.notifications;
const push = new Push({
token: pushover.token,
user: pushover.username
});
export function sendPushoverNotification(link: Link, store: Store) { export function sendPushoverNotification(link: Link, store: Store) {
if (pushover.token && pushover.username) { if (pushover.token && pushover.username) {
logger.debug('↗ sending pushover message'); logger.debug('↗ sending pushover message');
const message: PushoverMessage = { const push = new Push({
message: link.cartUrl ? link.cartUrl : link.url, token: pushover.token,
priority: pushover.priority, user: pushover.username,
title: Print.inStock(link, store) });
};
push.send(message, (error: Error) => { const message: PushoverMessage =
if (error) { pushover.priority < 2
logger.error("✖ couldn't send pushover message", error); ? {
} else { message: link.cartUrl ? link.cartUrl : link.url,
logger.info('✔ pushover message sent'); priority: pushover.priority,
} title: Print.inStock(link, store),
}); ...(link.screenshot && {file: `./${link.screenshot}`}),
} }
: {
expire: pushover.expire,
message: link.cartUrl ? link.cartUrl : link.url,
priority: pushover.priority,
retry: pushover.retry,
title: Print.inStock(link, store),
...(link.screenshot && {file: `./${link.screenshot}`}),
};
push.send(message, (error: Error) => {
if (error) {
logger.error("✖ couldn't send pushover message", error);
} else {
logger.info('✔ pushover message sent');
}
});
}
} }
+45
View File
@@ -0,0 +1,45 @@
import {Link, Store} from '../store/model';
import redis, {RedisClient} from 'redis';
import {config} from '../config';
import {logger} from '../logger';
const {url} = config.notifications.redis;
let client: RedisClient;
function initRedis(): RedisClient | null {
if (url) {
client = redis.createClient({url});
}
return null;
}
export function updateRedis(link: Link, store: Store) {
try {
if (client) {
const key = `${store.name}:${link.brand}:${link.model}`
.split(' ')
.join('-');
const value = {
...link,
labels: store.labels,
links: store.links,
name: store.name,
updatedAt: new Date().toUTCString(),
};
const redisUpdated = client.set(key, JSON.stringify(value));
if (redisUpdated) {
logger.info('✔ redis updated');
} else {
logger.error(`✖ couldn't update redis for key (${key})`);
}
}
} catch (error: unknown) {
logger.error("✖ couldn't update redis", error);
}
}
initRedis();
+20 -22
View File
@@ -3,33 +3,31 @@ import {Print, logger} from '../logger';
import {WebClient} from '@slack/web-api'; import {WebClient} from '@slack/web-api';
import {config} from '../config'; import {config} from '../config';
const slack = config.notifications.slack; const {channel, token} = config.notifications.slack;
const channel = slack.channel;
const token = slack.token;
const web = new WebClient(token); const web = new WebClient(token);
export function sendSlackMessage(link: Link, store: Store) { export function sendSlackMessage(link: Link, store: Store) {
if (slack.channel && slack.token) { if (channel && token) {
logger.debug('↗ sending slack message'); logger.debug('↗ sending slack message');
(async () => { (async () => {
const givenUrl = link.cartUrl ? link.cartUrl : link.url; const givenUrl = link.cartUrl ? link.cartUrl : link.url;
try { try {
const result = await web.chat.postMessage({ const result = await web.chat.postMessage({
channel, channel: channel.replace('#', ''),
text: `${Print.inStock(link, store)}\n${givenUrl}` text: `${Print.inStock(link, store)}\n${givenUrl}`,
}); });
if (!result.ok) { if (!result.ok) {
logger.error("✖ couldn't send slack message", result); logger.error("✖ couldn't send slack message", result);
return; return;
} }
logger.info('✔ slack message sent'); logger.info('✔ slack message sent');
} catch (error: unknown) { } catch (error: unknown) {
logger.error("✖ couldn't send slack message", error); logger.error("✖ couldn't send slack message", error);
} }
})(); })();
} }
} }
+41
View File
@@ -0,0 +1,41 @@
import {SmartThings} from '@bridgerakol/samsung-smart-api';
import {logger} from '../logger';
import {config} from '../config';
const {smartthings} = config.notifications;
export async function activateSmartthingsSwitch() {
if (!smartthings.token || !smartthings.device) {
return;
}
const st = new SmartThings(smartthings.token);
let match = false;
try {
await st.devices.getList().then(res => {
res.data.items.forEach(
async (item: {label: string; deviceId: string}) => {
if (smartthings.device === item.label) {
match = true;
const device_status = (await st.devices.getStatus(item.deviceId))
.data.components.main.switch.switch.value;
if (device_status !== 'on') {
logger.debug(`Turning on ${smartthings.device}`);
st.devices.commands(item.deviceId, 'on');
}
}
}
);
});
} catch (TypeError) {
logger.warn(
'SmartThings : Problem getting data from hub, check SMARTTHINGS_TOKEN'
);
return;
}
if (!match) {
logger.warn(
`SmartThings : No switch called ${smartthings.device}, check SMARTTHINGS_SWITCH_LABEL`
);
return;
}
}
+58 -56
View File
@@ -4,75 +4,77 @@ import Mail from 'nodemailer/lib/mailer';
import {config} from '../config'; import {config} from '../config';
import {transporter} from './email'; import {transporter} from './email';
const [email, phone] = [config.notifications.email, config.notifications.phone]; const {email, phone} = config.notifications;
if (phone.number.length > 0 && (!email.username || !email.password)) { if (phone.number.length > 0 && (!email.username || !email.password)) {
logger.warn( logger.warn(
'✖ in order to receive sms alerts, email notifications must also be configured' '✖ in order to receive sms alerts, email notifications must also be configured'
); );
} }
if (phone.carrier.length !== phone.number.length) { if (phone.carrier.length !== phone.number.length) {
logger.warn( logger.warn(
'✖ the number of carriers must match the number of phone numbers', '✖ the number of carriers must match the number of phone numbers',
{carrier: phone.carrier, number: phone.number} {carrier: phone.carrier, number: phone.number}
); );
} }
export function sendSms(link: Link, store: Store) { export function sendSms(link: Link, store: Store) {
for ( for (
let i = 0; let i = 0;
i < Math.max(phone.number.length, phone.carrier.length); i < Math.max(phone.number.length, phone.carrier.length);
i++ i++
) { ) {
const currentNumber = phone.number[i]; const currentNumber = phone.number[i];
const currentCarrier = phone.carrier[i]; const currentCarrier = phone.carrier[i];
if (!currentNumber) { if (!currentNumber) {
logger.error(`${currentCarrier} is not associated with a number`); logger.error(`${currentCarrier} is not associated with a number`);
continue; continue;
} else if (!currentCarrier) { } else if (!currentCarrier) {
logger.error(`${currentNumber} is not associated with a carrier`); logger.error(`${currentNumber} is not associated with a carrier`);
continue; continue;
} }
if (!phone.availableCarriers.has(currentCarrier)) { if (!phone.availableCarriers.has(currentCarrier)) {
logger.error(`✖ unknown carrier ${currentCarrier}`); logger.error(`✖ unknown carrier ${currentCarrier}`);
continue; continue;
} }
logger.debug('↗ sending sms'); logger.debug('↗ sending sms');
const mailOptions: Mail.Options = { const mailOptions: Mail.Options = {
attachments: link.screenshot attachments: link.screenshot
? [ ? [
{ {
filename: link.screenshot, filename: link.screenshot,
path: `./${link.screenshot}` path: `./${link.screenshot}`,
} },
] ]
: undefined, : undefined,
from: email.username, from: email.username,
subject: Print.inStock(link, store, false, true), subject: Print.inStock(link, store, false, true),
text: link.cartUrl ? link.cartUrl : link.url, text: link.cartUrl ? link.cartUrl : link.url,
to: generateAddress(currentNumber, currentCarrier) to: generateAddress(currentNumber, currentCarrier),
}; };
transporter.sendMail(mailOptions, (error) => { transporter.sendMail(mailOptions, error => {
if (error) { if (error) {
logger.error( logger.error(
`✖ couldn't send sms to ${currentNumber} for carrier ${currentCarrier}`, `✖ couldn't send sms to ${currentNumber} for carrier ${currentCarrier}`,
error error
); );
} else { } else {
logger.info('✔ sms sent'); logger.info('✔ sms sent');
} }
}); });
} }
} }
function generateAddress(number: string, carrier: string) { function generateAddress(number: string, carrier: string): string {
if (carrier && phone.availableCarriers.has(carrier)) { if (carrier && phone.availableCarriers.has(carrier)) {
return [number, phone.availableCarriers.get(carrier)].join('@'); return [number, phone.availableCarriers.get(carrier)].join('@');
} }
return '';
} }
+24 -22
View File
@@ -6,33 +6,35 @@ import {logger} from '../logger';
let player: PlaySound; let player: PlaySound;
if (config.notifications.playSound) { if (config.notifications.playSound) {
player = playerLib(); player = config.notifications.soundPlayer
? playerLib({players: [config.notifications.soundPlayer]})
: playerLib();
if (player.player === null) { if (player.player === null) {
logger.warn("✖ couldn't find sound player"); logger.warn("✖ couldn't find sound player");
} else { } else {
const playerName = player.player; const playerName = player.player;
logger.info(`✔ sound player found: ${playerName}`); logger.info(`✔ sound player found: ${playerName}`);
} }
} }
export function playSound() { export function playSound() {
if (config.notifications.playSound && player.player !== null) { if (config.notifications.playSound && player.player !== null) {
logger.debug('↗ playing sound'); logger.debug('↗ playing sound');
fs.access(config.notifications.playSound, fs.constants.F_OK, (error) => { fs.access(config.notifications.playSound, fs.constants.F_OK, error => {
if (error) { if (error) {
logger.error(`✖ error opening sound file: ${error.message}`); logger.error(`✖ error opening sound file: ${error.message}`);
return; return;
} }
player.play(config.notifications.playSound, (error: Error) => { player.play(config.notifications.playSound, (error: Error) => {
if (error) { if (error) {
logger.error("✖ couldn't play sound", error); logger.error("✖ couldn't play sound", error);
} }
logger.info('✔ played sound'); logger.info('✔ played sound');
}); });
}); });
} }
} }
+42
View File
@@ -0,0 +1,42 @@
import {Link, Store} from '../store/model';
import {Print, logger} from '../logger';
import {config} from '../config';
import {URLSearchParams} from 'url';
import fetch from 'node-fetch';
const {streamlabs} = config.notifications;
let requestParams: URLSearchParams;
if (streamlabs.accessToken && streamlabs.type) {
requestParams = new URLSearchParams();
requestParams.append('access_token', streamlabs.accessToken);
requestParams.append('type', streamlabs.type);
requestParams.append('image_href', streamlabs.imageHref);
requestParams.append('sound_href', streamlabs.soundHref);
requestParams.append('duration', streamlabs.duration.toString());
}
export function sendStreamLabsAlert(link: Link, store: Store) {
if (requestParams) {
logger.debug('↗ sending StreamLabs alert');
(async () => {
const message = `${Print.inStock(link, store)}`;
requestParams.set('message', message);
try {
const response = await fetch('https://streamlabs.com/api/v1.0/alerts', {
method: 'POST',
body: requestParams,
});
const json = await response.json();
if (!json.success) throw Error(JSON.stringify(json));
logger.info('✔ StreamLabs alert sent');
} catch (error: unknown) {
logger.error("✖ couldn't send StreamLabs alert", error);
}
})();
}
}
+23 -23
View File
@@ -3,35 +3,35 @@ import {Print, logger} from '../logger';
import {TelegramClient} from 'messaging-api-telegram'; import {TelegramClient} from 'messaging-api-telegram';
import {config} from '../config'; import {config} from '../config';
const telegram = config.notifications.telegram; const {telegram} = config.notifications;
const client = new TelegramClient({ const client = new TelegramClient({
accessToken: telegram.accessToken accessToken: telegram.accessToken,
}); });
export function sendTelegramMessage(link: Link, store: Store) { export function sendTelegramMessage(link: Link, store: Store) {
if (telegram.accessToken && telegram.chatId) { if (telegram.accessToken && telegram.chatId) {
logger.debug('↗ sending telegram message'); logger.debug('↗ sending telegram message');
(async () => { (async () => {
const message = Print.productInStock(link); const message = Print.productInStock(link);
const results = []; const results = [];
for (const chatId of telegram.chatId) { for (const chatId of telegram.chatId) {
try { try {
results.push( results.push(
client.sendMessage( client.sendMessage(
chatId, chatId,
`${Print.inStock(link, store)}\n${message}` `${Print.inStock(link, store)}\n${message}`
) )
); );
logger.info('✔ telegram message sent'); logger.info('✔ telegram message sent');
} catch (error: unknown) { } catch (error: unknown) {
logger.error("✖ couldn't send telegram message", error); logger.error("✖ couldn't send telegram message", error);
} }
} }
await Promise.all(results); await Promise.all(results);
})(); })();
} }
} }
+26 -19
View File
@@ -3,31 +3,38 @@ import {Print, logger} from '../logger';
import {Twilio} from 'twilio'; import {Twilio} from 'twilio';
import {config} from '../config'; import {config} from '../config';
const twilio = config.notifications.twilio; const {twilio} = config.notifications;
let client: Twilio; let client: Twilio;
if (twilio.accountSid && twilio.authToken) { if (twilio.accountSid && twilio.authToken) {
client = new Twilio(twilio.accountSid, twilio.authToken); client = new Twilio(twilio.accountSid, twilio.authToken);
} }
export function sendTwilioMessage(link: Link, store: Store) { export function sendTwilioMessage(link: Link, store: Store) {
if (client) { if (client) {
logger.debug('↗ sending twilio message'); logger.debug('↗ sending twilio message');
(async () => { (async () => {
const givenUrl = link.cartUrl ? link.cartUrl : link.url; const givenUrl = link.cartUrl ? link.cartUrl : link.url;
const message = `${Print.inStock(link, store)}\n${givenUrl}`; const message = `${Print.inStock(link, store)}\n${givenUrl}`;
const numbers = twilio.to.split(',');
const results = [];
for (const number of numbers) {
try {
results.push(
client.messages.create({
body: message,
from: twilio.from,
to: number,
})
);
logger.info('✔ twilio message sent');
} catch (error: unknown) {
logger.error("✖ couldn't send twilio message", error);
}
}
try { await Promise.all(results);
await client.messages.create({ })();
body: message, }
from: twilio.from,
to: twilio.to
});
logger.info('✔ twilio message sent');
} catch (error: unknown) {
logger.error("✖ couldn't send twilio message", error);
}
})();
}
} }
+69 -69
View File
@@ -5,97 +5,97 @@ import {existsSync, promises, readFileSync} from 'fs';
import {ChatClient} from 'twitch-chat-client'; import {ChatClient} from 'twitch-chat-client';
import {config} from '../config'; import {config} from '../config';
const twitch = config.notifications.twitch; const {twitch} = config.notifications;
const messages: string[] = []; const messages: string[] = [];
let alreadySaying = false; let alreadySaying = false;
let tokenData = { let tokenData = {
accessToken: twitch.accessToken, accessToken: twitch.accessToken,
expiryTimestamp: 0, expiryTimestamp: 0,
refreshToken: twitch.refreshToken refreshToken: twitch.refreshToken,
}; };
if (existsSync('./twitch.json')) { if (existsSync('./twitch.json')) {
tokenData = { tokenData = {
...JSON.parse(readFileSync('./twitch.json', 'utf-8')), ...JSON.parse(readFileSync('./twitch.json', 'utf-8')),
...tokenData ...tokenData,
}; };
} }
const chatClient: ChatClient = new ChatClient( const chatClient: ChatClient = new ChatClient(
new RefreshableAuthProvider( new RefreshableAuthProvider(
new StaticAuthProvider(twitch.clientId, tokenData.accessToken), new StaticAuthProvider(twitch.clientId, tokenData.accessToken),
{ {
clientSecret: twitch.clientSecret, clientSecret: twitch.clientSecret,
expiry: expiry:
tokenData.expiryTimestamp === null tokenData.expiryTimestamp === null
? null ? null
: new Date(tokenData.expiryTimestamp), : new Date(tokenData.expiryTimestamp),
onRefresh: async ({accessToken, refreshToken, expiryDate}) => { onRefresh: async ({accessToken, refreshToken, expiryDate}) => {
return promises.writeFile( return promises.writeFile(
'./twitch.json', './twitch.json',
JSON.stringify( JSON.stringify(
{ {
accessToken, accessToken,
expiryTimestamp: expiryTimestamp:
expiryDate === null ? null : expiryDate.getTime(), expiryDate === null ? null : expiryDate.getTime(),
refreshToken refreshToken,
}, },
null, null,
4 4
), ),
'utf-8' 'utf-8'
); );
}, },
refreshToken: tokenData.refreshToken refreshToken: tokenData.refreshToken,
} }
), ),
{ {
channels: [twitch.channel] channels: [twitch.channel],
} }
); );
chatClient.onJoin((channel: string, user: string) => { chatClient.onJoin((channel: string, user: string) => {
if (channel === `#${twitch.channel}` && user === chatClient.currentNick) { if (channel === `#${twitch.channel}` && user === chatClient.currentNick) {
while (messages.length) { while (messages.length) {
const message: string | undefined = messages.shift(); const message: string | undefined = messages.shift();
if (message !== undefined) { if (message !== undefined) {
try { try {
chatClient.say(channel, message); void chatClient.say(channel, message);
logger.info('✔ twitch message sent'); logger.info('✔ twitch message sent');
} catch (error: unknown) { } catch (error: unknown) {
logger.error("✖ couldn't send twitch message", error); logger.error("✖ couldn't send twitch message", error);
} }
} }
} }
} }
void chatClient.quit(); void chatClient.quit();
}); });
chatClient.onDisconnect(() => { chatClient.onDisconnect(() => {
alreadySaying = false; alreadySaying = false;
}); });
export function sendTwitchMessage(link: Link, store: Store) { export function sendTwitchMessage(link: Link, store: Store) {
if ( if (
tokenData.accessToken && tokenData.accessToken &&
twitch.channel && twitch.channel &&
twitch.clientId && twitch.clientId &&
twitch.clientSecret && twitch.clientSecret &&
tokenData.refreshToken tokenData.refreshToken
) { ) {
logger.debug('↗ sending twitch message'); logger.debug('↗ sending twitch message');
messages.push( messages.push(
`${Print.inStock(link, store)}\n${link.cartUrl ? link.cartUrl : link.url}` `${Print.inStock(link, store)}\n${link.cartUrl ? link.cartUrl : link.url}`
); );
if (!alreadySaying) { if (!alreadySaying) {
alreadySaying = true; alreadySaying = true;
void chatClient.connect(); void chatClient.connect();
} }
} }
} }
+26 -26
View File
@@ -3,38 +3,38 @@ import {Print, logger} from '../logger';
import Twitter from 'twitter'; import Twitter from 'twitter';
import {config} from '../config'; import {config} from '../config';
const twitter = config.notifications.twitter; const {twitter} = config.notifications;
const client = new Twitter({ const client = new Twitter({
access_token_key: twitter.accessTokenKey, access_token_key: twitter.accessTokenKey,
access_token_secret: twitter.accessTokenSecret, access_token_secret: twitter.accessTokenSecret,
consumer_key: twitter.consumerKey, consumer_key: twitter.consumerKey,
consumer_secret: twitter.consumerSecret consumer_secret: twitter.consumerSecret,
}); });
export function sendTweet(link: Link, store: Store) { export function sendTweet(link: Link, store: Store) {
if ( if (
twitter.accessTokenKey && twitter.accessTokenKey &&
twitter.accessTokenSecret && twitter.accessTokenSecret &&
twitter.consumerKey && twitter.consumerKey &&
twitter.consumerSecret twitter.consumerSecret
) { ) {
logger.debug('↗ sending twitter message'); logger.debug('↗ sending twitter message');
let status = `${Print.inStock(link, store)}\n${ let status = `${Print.inStock(link, store)}\n${
link.cartUrl ? link.cartUrl : link.url link.cartUrl ? link.cartUrl : link.url
}`; }`;
if (twitter.tweetTags) { if (twitter.tweetTags) {
status += `\n\n${twitter.tweetTags}`; status += `\n\n${twitter.tweetTags}`;
} }
client.post('statuses/update', {status}, (error) => { client.post('statuses/update', {status}, error => {
if (error) { if (error) {
logger.error("✖ couldn't send twitter notification", error); logger.error("✖ couldn't send twitter notification", error);
} else { } else {
logger.info('✔ twitter notification sent'); logger.info('✔ twitter notification sent');
} }
}); });
} }
} }
+43 -42
View File
@@ -6,63 +6,64 @@ import {filterSeries} from './filter';
import {usingResponse} from '../util'; import {usingResponse} from '../util';
function addNewLinks(store: Store, links: Link[], series: Series) { function addNewLinks(store: Store, links: Link[], series: Series) {
if (links.length === 0) { if (links.length === 0) {
logger.debug(Print.message('NO STORE LINKS FOUND', series, store, true)); logger.debug(Print.message('NO STORE LINKS FOUND', series, store, true));
return; return;
} }
const existingUrls = new Set(store.links.map((link) => link.url)); const existingUrls = new Set(store.links.map(link => link.url));
const newLinks = links.filter((link) => !existingUrls.has(link.url)); const newLinks = links.filter(link => !existingUrls.has(link.url));
if (newLinks.length === 0) { if (newLinks.length === 0) {
return; return;
} }
logger.debug( logger.debug(
Print.message(`FOUND ${newLinks.length} STORE LINKS`, series, store, true) Print.message(`FOUND ${newLinks.length} STORE LINKS`, series, store, true)
); );
logger.debug(JSON.stringify(newLinks, null, 2)); logger.debug(JSON.stringify(newLinks, null, 2));
store.links = store.links.concat(newLinks); store.links = store.links.concat(newLinks);
} }
export async function fetchLinks(store: Store, browser: Browser) { export async function fetchLinks(store: Store, browser: Browser) {
if (!store.linksBuilder) { if (!store.linksBuilder) {
return; return;
} }
const promises: Array<Promise<void>> = []; const promises: Array<Promise<void>> = [];
for (let {series, url} of store.linksBuilder.urls) { // eslint-disable-next-line prefer-const
if (!filterSeries(series)) { for (let {series, url} of store.linksBuilder.urls) {
continue; if (!filterSeries(series)) {
} continue;
}
logger.debug(Print.message('DETECTING STORE LINKS', series, store, true)); logger.debug(Print.message('DETECTING STORE LINKS', series, store, true));
if (!Array.isArray(url)) { if (!Array.isArray(url)) {
url = [url]; url = [url];
} }
url.map((x) => url.map(x =>
promises.push( promises.push(
usingResponse(browser, x, async (response) => { usingResponse(browser, x, async response => {
const text = await response?.text(); const text = await response?.text();
if (!text) { if (!text) {
logger.error(Print.message('NO RESPONSE', series, store, true)); logger.error(Print.message('NO RESPONSE', series, store, true));
return; return;
} }
const docElement = cheerio.load(text).root(); const docElement = cheerio.load(text).root();
const links = store.linksBuilder!.builder(docElement, series); const links = store.linksBuilder!.builder(docElement, series);
addNewLinks(store, links, series); addNewLinks(store, links, series);
}) })
) )
); );
} }
await Promise.all(promises); await Promise.all(promises);
} }
+33 -33
View File
@@ -7,11 +7,11 @@ import {config} from '../config';
* @param brand The brand of the GPU * @param brand The brand of the GPU
*/ */
function filterBrand(brand: Link['brand']): boolean { function filterBrand(brand: Link['brand']): boolean {
if (config.store.showOnlyBrands.length === 0) { if (config.store.showOnlyBrands.length === 0) {
return true; return true;
} }
return config.store.showOnlyBrands.includes(brand); return config.store.showOnlyBrands.includes(brand);
} }
/** /**
@@ -21,28 +21,28 @@ function filterBrand(brand: Link['brand']): boolean {
* @param series The series of the GPU * @param series The series of the GPU
*/ */
function filterModel(model: Link['model'], series: Link['series']): boolean { function filterModel(model: Link['model'], series: Link['series']): boolean {
if (config.store.showOnlyModels.length === 0) { if (config.store.showOnlyModels.length === 0) {
return true; return true;
} }
const sanitizedModel = model.replace(/\s/g, ''); const sanitizedModel = model.replace(/\s/g, '');
const sanitizedSeries = series.replace(/\s/g, ''); const sanitizedSeries = series.replace(/\s/g, '');
for (const configModelEntry of config.store.showOnlyModels) { for (const configModelEntry of config.store.showOnlyModels) {
const sanitizedConfigModel = configModelEntry.name.replace(/\s/g, ''); const sanitizedConfigModel = configModelEntry.name.replace(/\s/g, '');
const sanitizedConfigSeries = configModelEntry.series.replace(/\s/g, ''); const sanitizedConfigSeries = configModelEntry.series.replace(/\s/g, '');
if (sanitizedConfigSeries) { if (sanitizedConfigSeries) {
if ( if (
sanitizedSeries === sanitizedConfigSeries && sanitizedSeries === sanitizedConfigSeries &&
sanitizedModel === sanitizedConfigModel sanitizedModel === sanitizedConfigModel
) { ) {
return true; return true;
} }
} else if (sanitizedModel === sanitizedConfigModel) { } else if (sanitizedModel === sanitizedConfigModel) {
return true; return true;
} }
} }
return false; return false;
} }
/** /**
@@ -51,11 +51,11 @@ function filterModel(model: Link['model'], series: Link['series']): boolean {
* @param series The series of the GPU * @param series The series of the GPU
*/ */
export function filterSeries(series: Link['series']): boolean { export function filterSeries(series: Link['series']): boolean {
if (config.store.showOnlySeries.length === 0) { if (config.store.showOnlySeries.length === 0) {
return true; return true;
} }
return config.store.showOnlySeries.includes(series); return config.store.showOnlySeries.includes(series);
} }
/** /**
@@ -64,9 +64,9 @@ export function filterSeries(series: Link['series']): boolean {
* @param link The store link of the GPU * @param link The store link of the GPU
*/ */
export function filterStoreLink(link: Link): boolean { export function filterStoreLink(link: Link): boolean {
return ( return (
filterBrand(link.brand) && filterBrand(link.brand) &&
filterModel(link.model, link.series) && filterModel(link.model, link.series) &&
filterSeries(link.series) filterSeries(link.series)
); );
} }
+90 -90
View File
@@ -3,101 +3,101 @@ import {Page} from 'puppeteer';
import {logger} from '../logger'; import {logger} from '../logger';
export type Selector = { export type Selector = {
requireVisible: boolean; requireVisible: boolean;
selector: string; selector: string;
type: 'innerHTML' | 'outerHTML' | 'textContent'; type: 'innerHTML' | 'outerHTML' | 'textContent';
}; };
function isElementArray(query: LabelQuery): query is Element[] { function isElementArray(query: LabelQuery): query is Element[] {
return ( return (
Array.isArray(query) && query.length > 0 && typeof query[0] === 'object' Array.isArray(query) && query.length > 0 && typeof query[0] === 'object'
); );
} }
function getQueryAsElementArray( function getQueryAsElementArray(
query: LabelQuery, query: LabelQuery,
defaultContainer: string defaultContainer: string
): Array<Required<Element>> { ): Array<Required<Element>> {
if (isElementArray(query)) { if (isElementArray(query)) {
return query.map((x) => ({ return query.map(x => ({
container: x.container ?? defaultContainer, container: x.container ?? defaultContainer,
text: x.text text: x.text,
})); }));
} }
if (Array.isArray(query)) { if (Array.isArray(query)) {
return [ return [
{ {
container: defaultContainer, container: defaultContainer,
text: query text: query,
} },
]; ];
} }
return [ return [
{ {
container: query.container ?? defaultContainer, container: query.container ?? defaultContainer,
text: query.text text: query.text,
} },
]; ];
} }
export async function pageIncludesLabels( export async function pageIncludesLabels(
page: Page, page: Page,
query: LabelQuery, query: LabelQuery,
options: Selector options: Selector
) { ) {
const elementQueries = getQueryAsElementArray(query, options.selector); const elementQueries = getQueryAsElementArray(query, options.selector);
const resolved = await Promise.all( const resolved = await Promise.all(
elementQueries.map(async (query) => { elementQueries.map(async query => {
const selector = {...options, selector: query.container}; const selector = {...options, selector: query.container};
const contents = (await extractPageContents(page, selector)) ?? ''; const contents = (await extractPageContents(page, selector)) ?? '';
if (!contents) { if (!contents) {
return false; return false;
} }
logger.debug(contents); logger.debug(contents);
return includesLabels(contents, query.text); return includesLabels(contents, query.text);
}) })
); );
return resolved.includes(true); return resolved.includes(true);
} }
export async function extractPageContents( export async function extractPageContents(
page: Page, page: Page,
selector: Selector selector: Selector
): Promise<string | null> { ): Promise<string | null> {
return page.evaluate((options: Selector) => { return page.evaluate((options: Selector) => {
const element: globalThis.HTMLElement | null = document.querySelector( const element: globalThis.HTMLElement | null = document.querySelector(
options.selector options.selector
); );
if (!element) { if (!element) {
return null; return null;
} }
if ( if (
options.requireVisible && options.requireVisible &&
!(element.offsetWidth > 0 && element.offsetHeight > 0) !(element.offsetWidth > 0 && element.offsetHeight > 0)
) { ) {
return null; return null;
} }
switch (options.type) { switch (options.type) {
case 'innerHTML': case 'innerHTML':
return element.innerHTML; return element.innerHTML;
case 'outerHTML': case 'outerHTML':
return element.outerHTML; return element.outerHTML;
case 'textContent': case 'textContent':
return element.textContent; return element.textContent;
default: default:
return 'Error: selector.type is unknown'; return 'Error: selector.type is unknown';
} }
}, selector); }, selector);
} }
/** /**
@@ -107,32 +107,32 @@ export async function extractPageContents(
* @param searchLabels Search labels for a match. * @param searchLabels Search labels for a match.
*/ */
export function includesLabels( export function includesLabels(
domText: string, domText: string,
searchLabels: string[] searchLabels: string[]
): boolean { ): boolean {
const domTextLowerCase = domText.toLowerCase(); const domTextLowerCase = domText.toLowerCase();
return searchLabels.some((label) => return searchLabels.some(label =>
domTextLowerCase.includes(label.toLowerCase()) domTextLowerCase.includes(label.toLowerCase())
); );
} }
export async function getPrice( export async function getPrice(
page: Page, page: Page,
query: Pricing, query: Pricing,
options: Selector options: Selector
): Promise<number | null> { ): Promise<number | null> {
const selector = {...options, selector: query.container}; const selector = {...options, selector: query.container};
const priceString = await extractPageContents(page, selector); const priceString = await extractPageContents(page, selector);
if (priceString) { if (priceString) {
const priceSeparator = query.euroFormat ? /\./g : /,/g; const priceSeparator = query.euroFormat ? /\./g : /,/g;
const price = Number.parseFloat( const price = Number.parseFloat(
priceString.replace(priceSeparator, '').match(/\d+/g)!.join('.') priceString.replace(priceSeparator, '').match(/\d+/g)!.join('.')
); );
logger.debug('received price', price); logger.debug('received price', price);
return price; return price;
} }
return null; return null;
} }
+445 -290
View File
@@ -1,13 +1,20 @@
import {Browser, Page, PageEventObj, Request, Response} from 'puppeteer'; import {
Browser,
Page,
HTTPRequest,
HTTPResponse,
ResponseForRequest,
} from 'puppeteer';
import {Link, Store, getStores} from './model'; import {Link, Store, getStores} from './model';
import {Print, logger} from '../logger'; import {Print, logger} from '../logger';
import {Selector, getPrice, pageIncludesLabels} from './includes-labels'; import {Selector, getPrice, pageIncludesLabels} from './includes-labels';
import { import {
closePage, closePage,
delay, delay,
getRandomUserAgent, getRandomUserAgent,
getSleepTime, getSleepTime,
isStatusCodeInRange isStatusCodeInRange,
noop,
} from '../util'; } from '../util';
import {disableBlockerInPage, enableBlockerInPage} from '../adblocker'; import {disableBlockerInPage, enableBlockerInPage} from '../adblocker';
import {config} from '../config'; import {config} from '../config';
@@ -16,100 +23,124 @@ import {filterStoreLink} from './filter';
import open from 'open'; import open from 'open';
import {processBackoffDelay} from './model/helpers/backoff'; import {processBackoffDelay} from './model/helpers/backoff';
import {sendNotification} from '../notification'; import {sendNotification} from '../notification';
import useProxy from 'puppeteer-page-proxy'; import useProxy from '@doridian/puppeteer-page-proxy';
const inStock: Record<string, boolean> = {}; const inStock: Record<string, boolean> = {};
const linkBuilderLastRunTimes: Record<string, number> = {}; const linkBuilderLastRunTimes: Record<string, number> = {};
function nextProxy(store: Store) { function nextProxy(store: Store) {
if (!store.proxyList) { if (!store.proxyList) {
return; return;
} }
if (store.currentProxyIndex === undefined) { if (store.currentProxyIndex === undefined) {
store.currentProxyIndex = 0; store.currentProxyIndex = 0;
} } else {
store.currentProxyIndex++;
}
store.currentProxyIndex++; if (store.currentProxyIndex >= store.proxyList.length) {
if (store.currentProxyIndex >= store.proxyList.length) { store.currentProxyIndex = 0;
store.currentProxyIndex = 0; }
}
logger.info( logger.debug(
` [${store.name}] Next proxy index: ${store.currentProxyIndex} / Count: ${store.proxyList.length}` ` [${store.name}] Next proxy index: ${store.currentProxyIndex} / Count: ${
); store.proxyList.length
} (${store.proxyList[store.currentProxyIndex]})`
);
return store.proxyList[store.currentProxyIndex]; return store.proxyList[store.currentProxyIndex];
} }
async function handleLowBandwidth(request: Request) { async function handleLowBandwidth(request: HTTPRequest) {
if (!config.browser.lowBandwidth) { if (!config.browser.lowBandwidth) {
return false; return false;
} }
const typ = request.resourceType(); const typ = request.resourceType();
if (typ === 'font' || typ === 'image') { if (typ === 'font' || typ === 'image') {
try { try {
await request.abort(); await request.abort();
} catch {} } catch {
logger.debug('Failed to abort request.');
}
return true; return true;
} }
return false; return false;
} }
async function handleProxy(request: Request, proxy?: string) { async function handleProxy(request: HTTPRequest, proxy?: string) {
if (!proxy) { if (!proxy) {
return false; return false;
} }
try { try {
await useProxy(request, proxy); await useProxy(request, proxy);
} catch (error: unknown) { } catch (error: unknown) {
logger.error(error); logger.error('handleProxy', error);
try { try {
await request.abort(); await request.abort();
} catch {} } catch {
} logger.debug('Failed to abort request.');
}
}
return true; return true;
} }
async function handleAdBlock(request: Request, adBlockRequestHandler: any) { async function handleAdBlock(request: HTTPRequest, adBlockRequestHandler: any) {
if (!adBlockRequestHandler) { if (!adBlockRequestHandler) {
return false; return false;
} }
return new Promise((resolve) => { return new Promise(resolve => {
const continueFunc = async () => { const continueFunc = async () => {
resolve(false); resolve(false);
}; };
const abortFunc = async () => { const abortFunc = async () => {
try { try {
await request.abort(); await request.abort();
} catch {} } catch {
logger.debug('Failed to abort request.');
}
resolve(true); resolve(true);
}; };
const requestProxy = new Proxy(request, { const respondFunc = async (response: ResponseForRequest) => {
get(target, prop, receiver) { try {
if (prop === 'continue') { await request.respond(response);
return continueFunc; } catch {
} logger.debug('Failed to abort request.');
}
if (prop === 'abort') { resolve(true);
return abortFunc; };
}
return Reflect.get(target, prop, receiver); const requestProxy = new Proxy(request, {
} get(target, prop, receiver) {
}); if (prop === 'continue') {
adBlockRequestHandler(requestProxy); return continueFunc;
}); }
if (prop === 'abort') {
return abortFunc;
}
if (prop === 'respond') {
return respondFunc;
}
return Reflect.get(target, prop, receiver);
},
});
adBlockRequestHandler(requestProxy);
});
} }
/** /**
@@ -121,275 +152,399 @@ async function handleAdBlock(request: Request, adBlockRequestHandler: any) {
* @param store Vendor of graphics cards. * @param store Vendor of graphics cards.
*/ */
async function lookup(browser: Browser, store: Store) { async function lookup(browser: Browser, store: Store) {
if (!getStores().has(store.name)) { if (!getStores().has(store.name)) {
return; return;
} }
if (store.linksBuilder) { if (store.linksBuilder) {
logger.info(`[${store.name}] Running linksBuilder...`); const lastRunTime = linkBuilderLastRunTimes[store.name] ?? -1;
const lastRunTime = linkBuilderLastRunTimes[store.name] ?? -1; const ttl = store.linksBuilder.ttl ?? Number.MAX_SAFE_INTEGER;
const ttl = store.linksBuilder.ttl ?? Number.MAX_SAFE_INTEGER; if (lastRunTime === -1 || Date.now() - lastRunTime > ttl) {
if (lastRunTime === -1 || Date.now() - lastRunTime > ttl) { logger.info(`[${store.name}] Running linksBuilder...`);
try { try {
await fetchLinks(store, browser); await fetchLinks(store, browser);
linkBuilderLastRunTimes[store.name] = Date.now(); linkBuilderLastRunTimes[store.name] = Date.now();
} catch (error: unknown) { } catch (error: unknown) {
logger.error(error); logger.error(error);
} }
} }
} }
/* eslint-disable no-await-in-loop */ /* eslint-disable no-await-in-loop */
for (const link of store.links) { for (const link of store.links) {
if (!filterStoreLink(link)) { if (!filterStoreLink(link)) {
continue; continue;
} }
if (config.page.inStockWaitTime && inStock[link.url]) { if (config.page.inStockWaitTime && inStock[link.url]) {
logger.info(Print.inStockWaiting(link, store, true)); logger.info(Print.inStockWaiting(link, store, true));
continue; continue;
} }
const proxy = nextProxy(store); const proxy = nextProxy(store);
const useAdBlock = !config.browser.lowBandwidth && !store.disableAdBlocker; const useAdBlock = !config.browser.lowBandwidth && !store.disableAdBlocker;
const customContext = config.browser.isIncognito; const customContext = config.browser.isIncognito;
const context = customContext const context = customContext
? await browser.createIncognitoBrowserContext() ? await browser.createIncognitoBrowserContext()
: browser.defaultBrowserContext(); : browser.defaultBrowserContext();
const page = await context.newPage(); const page = await context.newPage();
await page.setRequestInterception(true);
page.setDefaultNavigationTimeout(config.page.timeout); page.setDefaultNavigationTimeout(config.page.timeout);
await page.setUserAgent(getRandomUserAgent()); await page.setUserAgent(await getRandomUserAgent());
let adBlockRequestHandler: any; let adBlockRequestHandler: any;
let pageProxy; let pageProxy;
if (useAdBlock) { if (useAdBlock) {
const onProxyFunc = (event: keyof PageEventObj, handler: any) => { const onProxyFunc = (event: string, handler: any) => {
if (event !== 'request') { if (event !== 'request') {
page.on(event, handler); page.on(event, handler);
return; return;
} }
adBlockRequestHandler = handler; adBlockRequestHandler = handler;
}; };
pageProxy = new Proxy(page, { pageProxy = new Proxy(page, {
get(target, prop, receiver) { get(target, prop, receiver) {
if (prop === 'on') { if (prop === 'on') {
return onProxyFunc; return onProxyFunc;
} }
return Reflect.get(target, prop, receiver); // Give dummy setRequestInterception to avoid AdBlock from messing with it
} if (prop === 'setRequestInterception') {
}); return noop;
await enableBlockerInPage(pageProxy); }
}
await page.setRequestInterception(true); return Reflect.get(target, prop, receiver);
page.on('request', async (request) => { },
if (await handleLowBandwidth(request)) { });
return; await enableBlockerInPage(pageProxy);
} }
if (await handleAdBlock(request, adBlockRequestHandler)) { await page.setRequestInterception(true);
return; page.on('request', async request => {
} if (await handleLowBandwidth(request)) {
return;
}
if (await handleProxy(request, proxy)) { if (await handleAdBlock(request, adBlockRequestHandler)) {
return; return;
} }
try { if (await handleProxy(request, proxy)) {
await request.continue(); return;
} catch {} }
});
let statusCode = 0; try {
await request.continue();
} catch {
logger.debug('Failed to continue request.');
}
});
try { if (store.captchaDeterrent) {
statusCode = await lookupCard(browser, store, page, link); await runCaptchaDeterrent(browser, store, page);
} catch (error: unknown) { }
logger.error(
`✖ [${store.name}] ${link.brand} ${link.series} ${link.model} - ${
(error as Error).message
}`
);
const client = await page.target().createCDPSession();
await client.send('Network.clearBrowserCookies');
// Await client.send('Network.clearBrowserCache');
}
if (pageProxy) { let statusCode = 0;
await disableBlockerInPage(pageProxy);
}
// Must apply backoff before closing the page, e.g. if CloudFlare is try {
// used to detect bot traffic, it introduces a 5 second page delay statusCode = await lookupCard(browser, store, page, link);
// before redirecting to the next page } catch (error: unknown) {
await processBackoffDelay(store, link, statusCode); if (store.currentProxyIndex !== undefined && store.proxyList) {
await closePage(page); const proxy = `${store.currentProxyIndex + 1}/${
if (customContext) { store.proxyList.length
await context.close(); }`;
} logger.error(
} `✖ [${proxy}] [${store.name}] ${link.brand} ${link.series} ${
/* eslint-enable no-await-in-loop */ link.model
} - ${(error as Error).message}`
);
} else {
logger.error(
`✖ [${store.name}] ${link.brand} ${link.series} ${link.model} - ${
(error as Error).message
}`
);
}
const client = await page.target().createCDPSession();
await client.send('Network.clearBrowserCookies');
}
if (pageProxy) {
await disableBlockerInPage(pageProxy);
}
// Must apply backoff before closing the page, e.g. if CloudFlare is
// used to detect bot traffic, it introduces a 5 second page delay
// before redirecting to the next page
await processBackoffDelay(store, link, statusCode);
await closePage(page);
if (customContext) {
await context.close();
}
}
/* eslint-enable no-await-in-loop */
} }
async function lookupCard( async function lookupCard(
browser: Browser, browser: Browser,
store: Store, store: Store,
page: Page, page: Page,
link: Link link: Link
): Promise<number> { ): Promise<number> {
const givenWaitFor = store.waitUntil ? store.waitUntil : 'networkidle0'; const givenWaitFor = store.waitUntil ? store.waitUntil : 'networkidle0';
const response: Response | null = await page.goto(link.url, { const response: HTTPResponse | null = await page.goto(link.url, {
waitUntil: givenWaitFor waitUntil: givenWaitFor,
}); });
if (!response) { const successStatusCodes = store.successStatusCodes ?? [[0, 399]];
logger.debug(Print.noResponse(link, store, true)); const statusCode = await handleResponse(browser, store, page, link, response);
}
const successStatusCodes = store.successStatusCodes ?? [[0, 399]]; if (!isStatusCodeInRange(statusCode, successStatusCodes)) {
const statusCode = response?.status() ?? 0; return statusCode;
if (!isStatusCodeInRange(statusCode, successStatusCodes)) { }
if (statusCode === 429) {
logger.warn(Print.rateLimit(link, store, true));
} else {
logger.warn(Print.badStatusCode(link, store, statusCode, true));
}
return statusCode; if (await lookupCardInStock(store, page, link)) {
} const givenUrl =
link.cartUrl && config.store.autoAddToCart ? link.cartUrl : link.url;
logger.info(`${Print.inStock(link, store, true)}\n${givenUrl}`);
if (await lookupCardInStock(store, page, link)) { if (config.browser.open) {
const givenUrl = await (link.openCartAction === undefined
link.cartUrl && config.store.autoAddToCart ? link.cartUrl : link.url; ? open(givenUrl)
logger.info(`${Print.inStock(link, store, true)}\n${givenUrl}`); : link.openCartAction(browser));
}
if (config.browser.open) { sendNotification(link, store);
await (link.openCartAction === undefined
? open(givenUrl)
: link.openCartAction(browser));
}
sendNotification(link, store); if (config.page.inStockWaitTime) {
inStock[link.url] = true;
if (config.page.inStockWaitTime) { setTimeout(() => {
inStock[link.url] = true; inStock[link.url] = false;
}, 1000 * config.page.inStockWaitTime);
}
setTimeout(() => { if (config.page.screenshot) {
inStock[link.url] = false; logger.debug(' saving screenshot');
}, 1000 * config.page.inStockWaitTime);
}
if (config.page.screenshot) { link.screenshot = `success-${Date.now()}.png`;
logger.debug(' saving screenshot'); await page.screenshot({path: link.screenshot});
}
}
link.screenshot = `success-${Date.now()}.png`; return statusCode;
await page.screenshot({path: link.screenshot}); }
}
}
return statusCode; // eslint-disable-next-line max-params
async function handleResponse(
browser: Browser,
store: Store,
page: Page,
link: Link,
response?: HTTPResponse | null,
recursionDepth = 0
) {
if (!response) {
logger.debug(Print.noResponse(link, store, true));
}
const successStatusCodes = store.successStatusCodes ?? [[0, 399]];
let statusCode = response?.status() ?? 0;
if (!isStatusCodeInRange(statusCode, successStatusCodes)) {
if (statusCode === 429) {
logger.warn(Print.rateLimit(link, store, true));
} else if (statusCode === 503) {
if (await checkIsCloudflare(store, page, link)) {
if (recursionDepth > 4) {
logger.warn(Print.recursionLimit(link, store, true));
} else {
const response: HTTPResponse | null = await page.waitForNavigation({
waitUntil: 'networkidle0',
});
recursionDepth++;
statusCode = await handleResponse(
browser,
store,
page,
link,
response,
recursionDepth
);
}
} else {
logger.warn(Print.badStatusCode(link, store, statusCode, true));
}
} else {
logger.warn(Print.badStatusCode(link, store, statusCode, true));
}
}
return statusCode;
}
async function checkIsCloudflare(store: Store, page: Page, link: Link) {
const baseOptions: Selector = {
requireVisible: true,
selector: 'body',
type: 'textContent',
};
const cloudflareLabel = {
container: 'div[class="attribution"] a[rel="noopener noreferrer"]',
text: ['Cloudflare'],
};
if (await pageIncludesLabels(page, cloudflareLabel, baseOptions)) {
logger.warn(Print.cloudflare(link, store, true));
return true;
}
return false;
} }
async function lookupCardInStock(store: Store, page: Page, link: Link) { async function lookupCardInStock(store: Store, page: Page, link: Link) {
const baseOptions: Selector = { const baseOptions: Selector = {
requireVisible: false, requireVisible: false,
selector: store.labels.container ?? 'body', selector: store.labels.container ?? 'body',
type: 'textContent' type: 'textContent',
}; };
if (store.labels.captcha) { if (store.labels.captcha) {
if (await pageIncludesLabels(page, store.labels.captcha, baseOptions)) { if (await pageIncludesLabels(page, store.labels.captcha, baseOptions)) {
logger.warn(Print.captcha(link, store, true)); logger.warn(Print.captcha(link, store, true));
await delay(getSleepTime(store)); await delay(getSleepTime(store));
return false; return false;
} }
} }
if (store.labels.bannedSeller) { if (store.labels.bannedSeller) {
if ( if (
await pageIncludesLabels(page, store.labels.bannedSeller, baseOptions) await pageIncludesLabels(page, store.labels.bannedSeller, baseOptions)
) { ) {
logger.warn(Print.bannedSeller(link, store, true)); logger.warn(Print.bannedSeller(link, store, true));
return false; return false;
} }
} }
if (store.labels.maxPrice) { if (store.labels.outOfStock) {
const maxPrice = config.store.maxPrice.series[link.series]; if (await pageIncludesLabels(page, store.labels.outOfStock, baseOptions)) {
logger.info(Print.outOfStock(link, store, true));
return false;
}
}
link.price = await getPrice(page, store.labels.maxPrice, baseOptions); if (store.labels.maxPrice) {
const maxPrice = config.store.maxPrice.series[link.series];
if (link.price && link.price > maxPrice && maxPrice > 0) { link.price = await getPrice(page, store.labels.maxPrice, baseOptions);
logger.info(Print.maxPrice(link, store, maxPrice, true));
return false;
}
}
// Fixme: currently causing issues if (link.price && link.price > maxPrice && maxPrice > 0) {
// Do API inventory validation in realtime (no cache) if available logger.info(Print.maxPrice(link, store, maxPrice, true));
// if ( return false;
// store.realTimeInventoryLookup !== undefined && }
// link.itemNumber !== undefined }
// ) {
// return store.realTimeInventoryLookup(link.itemNumber);
// }
if (store.labels.inStock) { if (link.labels?.inStock) {
const options = { const options = {
...baseOptions, ...baseOptions,
requireVisible: true, requireVisible: true,
type: 'outerHTML' as const type: 'outerHTML' as const,
}; };
if (!(await pageIncludesLabels(page, store.labels.inStock, options))) { if (!(await pageIncludesLabels(page, link.labels.inStock, options))) {
logger.info(Print.outOfStock(link, store, true)); logger.info(Print.outOfStock(link, store, true));
return false; return false;
} }
} }
if (link.labels?.inStock) { if (store.labels.inStock) {
const options = { const options = {
...baseOptions, ...baseOptions,
requireVisible: true, requireVisible: true,
type: 'outerHTML' as const type: 'outerHTML' as const,
}; };
if (!(await pageIncludesLabels(page, link.labels.inStock, options))) { if (!(await pageIncludesLabels(page, store.labels.inStock, options))) {
logger.info(Print.outOfStock(link, store, true)); logger.info(Print.outOfStock(link, store, true));
return false; return false;
} }
} }
if (store.labels.outOfStock) { return true;
if (await pageIncludesLabels(page, store.labels.outOfStock, baseOptions)) { }
logger.info(Print.outOfStock(link, store, true));
return false;
}
}
return true; async function runCaptchaDeterrent(browser: Browser, store: Store, page: Page) {
const successStatusCodes = store.successStatusCodes ?? [[0, 399]];
let statusCode = 0;
let deterrentLinks: string[] = [];
logger.debug(`[${store.name}] Navigating to random anti-captcha page...`);
if (store.captchaDeterrent?.hardLinks?.length) {
deterrentLinks = deterrentLinks.concat(store.captchaDeterrent.hardLinks);
}
if (store.captchaDeterrent?.searchUrl) {
if (store.captchaDeterrent.searchTerms) {
store.captchaDeterrent.searchTerms.forEach(element =>
deterrentLinks.push(
store.captchaDeterrent?.searchUrl
? store.captchaDeterrent.searchUrl.replace('%%s', element)
: ''
)
);
}
}
if (deterrentLinks.length > 0) {
const link: Link = {
brand: 'captcha-deterrent',
model: 'captcha-deterrent',
series: 'captcha-deterrent',
url: deterrentLinks[Math.floor(Math.random() * deterrentLinks.length)],
};
logger.debug(`Selected captcha-deterrent link: ${link.url}`);
try {
const givenWaitFor = store.waitUntil ? store.waitUntil : 'networkidle0';
const response: HTTPResponse | null = await page.goto(link.url, {
waitUntil: givenWaitFor,
});
statusCode = await handleResponse(browser, store, page, link, response);
setTimeout(() => {
// Do nothing
}, 3000);
} catch (error: unknown) {
logger.error(error);
}
if (!isStatusCodeInRange(statusCode, successStatusCodes)) {
logger.warn(
`✖ [${store.name}] - Failed to navigate to anti-captcha target: ${link.url}`
);
}
}
} }
export async function tryLookupAndLoop(browser: Browser, store: Store) { export async function tryLookupAndLoop(browser: Browser, store: Store) {
if (!browser.isConnected()) { if (!browser.isConnected()) {
logger.debug(`[${store.name}] Ending this loop as browser is disposed...`); logger.debug(`[${store.name}] Ending this loop as browser is disposed...`);
return; return;
} }
logger.debug(`[${store.name}] Starting lookup...`); logger.debug(`[${store.name}] Starting lookup...`);
try { try {
await lookup(browser, store); await lookup(browser, store);
} catch (error: unknown) { } catch (error: unknown) {
logger.error(error); logger.error(error);
} }
const sleepTime = getSleepTime(store); const sleepTime = getSleepTime(store);
logger.debug(`[${store.name}] Lookup done, next one in ${sleepTime} ms`); logger.debug(`[${store.name}] Lookup done, next one in ${sleepTime} ms`);
setTimeout(tryLookupAndLoop, sleepTime, browser, store); setTimeout(tryLookupAndLoop, sleepTime, browser, store);
} }
+234
View File
@@ -0,0 +1,234 @@
import {Store} from './store';
export const AComPC: Store = {
currency: '€',
labels: {
inStock: {
container: '.filial_stock',
text: ['lagernd', 'im Zulauf'],
},
maxPrice: {
container: '.price',
euroFormat: true,
},
outOfStock: [
{
container: '.filial_stock',
text: ['nicht lieferbar'],
},
],
},
links: [
{
brand: 'asus',
model: 'strix',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ASUS-ROG-STRIX-RTX3080-10G-GAMING-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-2-x-HDMI-3-x-DisplayPort.html',
},
{
brand: 'asus',
model: 'strix oc',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ASUS-ROG-STRIX-RTX3080-O10G-GAMING-OC-Edition-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-2-x-HDMI-3-x-DisplayPort.html',
},
{
brand: 'asus',
model: 'tuf',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ASUS-TUF-Gaming-GeForce-RTX-3080-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DisplayPort.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ASUS-TUF-Gaming-GeForce-RTX-3080-OC-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DisplayPort.html',
},
{
brand: 'gigabyte',
model: 'aorus master',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-AORUS-GeForce-RTX-3080-MASTER-10G-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-x16-3-x-DisplayPort-3-x-HDMI.html',
},
{
brand: 'gigabyte',
model: 'aorus xtreme',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-AORUS-GeForce-RTX-3080-XTREME-10G-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-x16-3-x-DisplayPort-3-x-HDMI.html',
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-GeForce-RTX-3080-Eagle-OC-10G-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DisplayPort.html',
},
{
brand: 'gigabyte',
model: 'eagle',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-GeForce-RTX-3080-Eagle-10G-Grafikkarte-10.240-MB.html',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-GeForce-RTX-3080-GAMING-OC-10G-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DisplayPort.html',
},
{
brand: 'gigabyte',
model: 'vision oc',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-GeForce-RTX-3080-Vision-OC-10G-Grafikkarten-GF-RTX-3080-10GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DP-weiss.html',
},
{
brand: 'inno3d',
model: 'twin x2 oc',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Inno3D-GeForce-RTX-3080-Twin-X2-OC-Grafikkarten-GF-RTX-3080-10-GB-GDDR6-PCIe-4.0-x16-HDMI-3x-DisplayPort.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/MSI-GeForce-RTX-3080-Gaming-X-Trio-10G-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-HDMI-3x-DisplayPort.html',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/MSI-GeForce-RTX-3080-Ventus-3X-10G-OC-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-x16-HDMI-3x-DisplayPort.html',
},
{
brand: 'zotac',
model: 'amp holo',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ZOTAC-GAMING-GeForce-RTX-3080-AMP-Holo-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-HDMI-3-x-DisplayPort.html',
},
{
brand: 'zotac',
model: 'trinity oc',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ZOTAC-GAMING-GeForce-RTX-3080-Trinity-OC-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-HDMI-3-x-DisplayPort.html',
},
{
brand: 'zotac',
model: 'trinity',
series: '3080',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ZOTAC-GAMING-GeForce-RTX-3080-Trinity-Grafikkarten-GF-RTX-3080-10-GB-GDDR6X-PCIe-4.0-HDMI-3x-DisplayPort.html',
},
{
brand: 'asus',
model: 'strix',
series: '3090',
url:
'https://www.acom-pc.de/Peripherie-Zubehoer/noch-nicht-kategorisierte-Artikel/ASUS-ROG-Strix-GeForce-RTX-3090-ROG-STRIX-RTX3090-24G-GAMING-24GB-GDDR6X-2x-HDMI-3x-DP-90YV0F90-M0NM00-.html',
},
{
brand: 'asus',
model: 'strix oc',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ASUS-ROG-STRIX-RTX3090-O24G-GAMING-OC-Edition-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-2-x-HDMI-3-x-DisplayPort.html',
},
{
brand: 'asus',
model: 'tuf',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ASUS-TUF-Gaming-GeForce-RTX-3090-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DisplayPort.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ASUS-TUF-Gaming-GeForce-RTX-3090-OC-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DisplayPort.html',
},
{
brand: 'gigabyte',
model: 'aorus master',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-Aorus-GeForce-RTX-3090-Master-24G-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-x16-HDMI-3x-DisplayPort.html',
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-GeForce-RTX-3090-Eagle-OC-24G-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DisplayPort.html',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/Gigabyte-GeForce-RTX-3090-Gaming-OC-24G-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-x16-2x-HDMI-3x-DisplayPort.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/MSI-RTX-3090-GAMING-X-TRIO-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-x16-HDMI-3x-DisplayPort.html',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/MSI-GeForce-RTX-3090-Ventus-3X-24G-OC-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-x16-HDMI-3x-DisplayPort.html',
},
{
brand: 'zotac',
model: 'trinity',
series: '3090',
url:
'https://www.acom-pc.de/Hardware-Software/Grafikkarten-Zubehoer/Grafikkarten-NVIDIA-PCI-Express/ZOTAC-GAMING-GeForce-RTX-3090-Trinity-Grafikkarten-GF-RTX-3090-24-GB-GDDR6X-PCIe-4.0-HDMI-3x-DisplayPort.html',
},
{
brand: 'amd',
model: '5600x',
series: 'ryzen5600',
url:
'https://www.acom-pc.de/Hardware-Software/CPU-Prozessor-/-CPU-Kuehler-Zubehoer/AMD-CPU/AMD-CPU-Socket-AM4/AMD-RYZEN-5-5600X-4.60GHZ-6-CORE-SKT-AM4-35MB-65W-PIB.html',
},
{
brand: 'amd',
model: '5800x',
series: 'ryzen5800',
url:
'https://www.acom-pc.de/Hardware-Software/CPU-Prozessor-/-CPU-Kuehler-Zubehoer/AMD-CPU/AMD-CPU-Socket-AM4/AMD-RYZEN-7-5800X-4.70GHZ-8-CORE-SKT-AM4-36MB-105W-WOF.html',
},
{
brand: 'amd',
model: '5900x',
series: 'ryzen5900',
url:
'https://www.acom-pc.de/Hardware-Software/CPU-Prozessor-/-CPU-Kuehler-Zubehoer/AMD-CPU/AMD-CPU-Socket-AM4/AMD-Ryzen-9-5900X-AMD-Ryzen-9-Socket-AM4-PC-7nm-AMD-3-7-GHz-AM4.html',
},
{
brand: 'amd',
model: '5950x',
series: 'ryzen5950',
url:
'https://www.acom-pc.de/Hardware-Software/CPU-Prozessor-/-CPU-Kuehler-Zubehoer/AMD-CPU/AMD-CPU-Socket-AM4/AMD-RYZEN-9-5950X-4.90GHZ-16-CORE-SKT-AM4-72MB-105W-WOF.html',
},
],
name: 'acompc',
};
+126 -125
View File
@@ -1,129 +1,130 @@
import {Store} from './store'; import {Store} from './store';
export const Adorama: Store = { export const Adorama: Store = {
labels: { currency: '$',
captcha: { labels: {
container: 'body', captcha: {
text: ['please verify you are a human'] container: 'body',
}, text: ['please verify you are a human'],
inStock: { },
container: '.buy-section.purchase', inStock: {
text: ['add to cart'] container: '.buy-section.purchase',
}, text: ['add to cart'],
maxPrice: { },
container: '.your-price', maxPrice: {
euroFormat: false container: '.your-price',
} euroFormat: false,
}, },
links: [ },
{ links: [
brand: 'test:brand', {
model: 'test:model', brand: 'test:brand',
series: 'test:series', model: 'test:model',
url: 'https://www.adorama.com/ev08gp43067k.html' series: 'test:series',
}, url: 'https://www.adorama.com/ev08gp43067k.html',
{ },
brand: 'pny', {
model: 'xlr8 revel', brand: 'pny',
series: '3080', model: 'xlr8 revel',
url: 'https://www.adorama.com/pnv301tfxmpb.html' series: '3080',
}, url: 'https://www.adorama.com/pnv301tfxmpb.html',
{ },
brand: 'msi', {
model: 'gaming x trio', brand: 'msi',
series: '3080', model: 'gaming x trio',
url: 'https://www.adorama.com/msig380gxt1.html' series: '3080',
}, url: 'https://www.adorama.com/msig380gxt1.html',
{ },
brand: 'evga', {
model: 'ftw3 ultra', brand: 'evga',
series: '3080', model: 'ftw3 ultra',
url: 'https://www.adorama.com/ev10g53897kr.html' series: '3080',
}, url: 'https://www.adorama.com/ev10g53897kr.html',
{ },
brand: 'evga', {
model: 'xc3 ultra', brand: 'evga',
series: '3080', model: 'xc3 ultra',
url: 'https://www.adorama.com/ev10g53885kr.html' series: '3080',
}, url: 'https://www.adorama.com/ev10g53885kr.html',
{ },
brand: 'evga', {
model: 'ftw3', brand: 'evga',
series: '3080', model: 'ftw3',
url: 'https://www.adorama.com/ev10g53895kr.html' series: '3080',
}, url: 'https://www.adorama.com/ev10g53895kr.html',
{ },
brand: 'evga', {
model: 'xc3', brand: 'evga',
series: '3080', model: 'xc3',
url: 'https://www.adorama.com/ev10g53883kr.html' series: '3080',
}, url: 'https://www.adorama.com/ev10g53883kr.html',
{ },
brand: 'evga', {
model: 'xc3 black', brand: 'evga',
series: '3080', model: 'xc3 black',
url: 'https://www.adorama.com/ev10g53881kr.html' series: '3080',
}, url: 'https://www.adorama.com/ev10g53881kr.html',
{ },
brand: 'msi', {
model: 'ventus 3x oc', brand: 'msi',
series: '3080', model: 'ventus 3x oc',
url: 'https://www.adorama.com/msig38v3x10c.html' series: '3080',
}, url: 'https://www.adorama.com/msig38v3x10c.html',
{ },
brand: 'pny', {
model: 'xlr8 revel', brand: 'pny',
series: '3080', model: 'xlr8 revel',
url: 'https://www.adorama.com/png30801tfxb.html' series: '3080',
}, url: 'https://www.adorama.com/png30801tfxb.html',
{ },
brand: 'asus', {
model: 'strix oc', brand: 'asus',
series: '3080', model: 'strix oc',
url: 'https://www.adorama.com/asrx3080o10g.html' series: '3080',
}, url: 'https://www.adorama.com/asrx3080o10g.html',
{ },
brand: 'asus', {
model: 'tuf oc', brand: 'asus',
series: '3080', model: 'tuf oc',
url: 'https://www.adorama.com/astr3080o10g.html' series: '3080',
}, url: 'https://www.adorama.com/astr3080o10g.html',
{ },
brand: 'asus', {
model: 'tuf', brand: 'asus',
series: '3080', model: 'tuf',
url: 'https://www.adorama.com/astrx308010g.html' series: '3080',
}, url: 'https://www.adorama.com/astrx308010g.html',
{ },
brand: 'msi', {
model: 'gaming x trio', brand: 'msi',
series: '3090', model: 'gaming x trio',
url: 'https://www.adorama.com/msig390gxt24.html' series: '3090',
}, url: 'https://www.adorama.com/msig390gxt24.html',
{ },
brand: 'msi', {
model: 'ventus 3x oc', brand: 'msi',
series: '3090', model: 'ventus 3x oc',
url: 'https://www.adorama.com/msig39v3x24c.html' series: '3090',
}, url: 'https://www.adorama.com/msig39v3x24c.html',
{ },
brand: 'asus', {
model: 'tuf', brand: 'asus',
series: '3090', model: 'tuf',
url: 'https://www.adorama.com/asrtx309024g.html' series: '3090',
}, url: 'https://www.adorama.com/asrtx309024g.html',
{ },
brand: 'asus', {
model: 'tuf oc', brand: 'asus',
series: '3090', model: 'tuf oc',
url: 'https://www.adorama.com/ast3090o24g.html' series: '3090',
}, url: 'https://www.adorama.com/ast3090o24g.html',
{ },
brand: 'asus', {
model: 'strix oc', brand: 'asus',
series: '3090', model: 'strix oc',
url: 'https://www.adorama.com/asrx3090o24g.html' series: '3090',
} url: 'https://www.adorama.com/asrx3090o24g.html',
], },
name: 'adorama' ],
name: 'adorama',
}; };
+329
View File
@@ -0,0 +1,329 @@
import {Store} from './store';
export const Akinformatica: Store = {
currency: '€',
labels: {
inStock: [
{
container: '#dispOnLine .available',
text: ['Disponibile Online'],
},
{
container: '#addCartLinkButton',
text: ['Aggiungi al carrello'],
},
],
maxPrice: {
container: '#PrezzoListinoIvatoLabel',
euroFormat: true,
},
outOfStock: [
{
container: '#dispOnLine .available .disabled',
text: ['Disponibile Online'],
},
{
container: '#preOrderPanel > label',
text: ['PRE-ORDINI APERTI'],
},
],
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://shop.akinformatica.it/catalogo/adata-xpg/mouse-gaming-adata-xpg-primer---wired--rgb_4710273777139.aspx',
},
{
brand: 'palit',
model: 'gaming pro',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-palit-geforce-rtx3070-gamingpro-oc-8gb-gddr6x_4710562242089.aspx',
},
{
brand: 'zotac',
model: 'twin edge',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-zotac-gaming-geforce-rtx-3070-twin-edge-8g_4895173622472.aspx',
},
{
brand: 'msi',
model: 'ventus 2x oc',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-msi-geforce-rtx-3070-ventus-2x-oc-8g_4719072763091.aspx',
},
{
brand: 'asus',
model: 'dual',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-asus-geforce-rtx-3070-dual-o8g-8g_4718017927864.aspx',
},
{
brand: 'gigabyte',
model: 'eagle',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-gigabyte-geforce-rtx-3070-eagle-8gb_4719331307738.aspx',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-msi-geforce-rtx-3070-ventus-3x-oc-8g_4719072763084.aspx',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-msi-geforce-rtx-3070-gaming-x-trio-8g_4719072763053.aspx',
},
{
brand: 'zotac',
model: 'twin edge oc',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-zotac-gaming-geforce-rtx-3070-twin-edge-oc-8g_4895173622489.aspx',
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-gigabyte-geforce-rtx-3070-eagle-oc-8gb_4719331307677.aspx',
},
{
brand: 'asus',
model: 'tuf',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-asus-geforce-rtx-3070-tuf-o8g-8g_4718017948678.aspx',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-gigabyte-geforce-rtx-3070-gaming-oc-8gb_4719331307691.aspx',
},
{
brand: 'asus',
model: 'strix oc',
series: '3070',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3070/vga-asus-geforce-rtx-3070-rog-strix-gaming-oc-8g_4718017938150.aspx',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-msi-geforce-rtx-3090-gaming-x-trio-24g_4719072762506.aspx',
},
{
brand: 'zotac',
model: 'trinity',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-zotac-geforce-rtx-3090-trinity-24g_4895173622427.aspx',
},
{
brand: 'msi',
model: 'suprim x',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-msi-geforce-rtx-3090-suprim-x-24g_4719072762490.aspx',
},
{
brand: 'pny',
model: 'xlr8 epic x',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-pny-geforce-rtx-3090-epic-x-xlr8-gaming-24g_0751492639536.aspx',
},
{
brand: 'msi',
model: 'ventus 3x',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-msi-geforce-rtx-3090-ventus-3x-24g-oc--consegne-da-marzo_4719072762476.aspx',
},
{
brand: 'palit',
model: 'gamerock',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-palit-geforce-rtx3090-gamerock-24gb-gddr6x_4710562242041.aspx',
},
{
brand: 'palit',
model: 'gaming pro',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-palit-geforce-rtx3090-gamingpro-24gb-gddr6x_4710562241969.aspx',
},
{
brand: 'palit',
model: 'gamerock oc',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-palit-geforce-rtx3090-gamerock-oc-24gb-gddr6x_4710562242065.aspx',
},
{
brand: 'palit',
model: 'gaming pro oc',
series: '3090',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3090/vga-palit-geforce-rtx3090-gamingpro-oc-24gb-gddr6x_4710562242027.aspx',
},
{
brand: 'amd',
model: '5600x',
series: 'ryzen5600',
url:
'https://shop.akinformatica.it/catalogo/amd-am4/cpu-amd-ryzen-5-5600x---6-core--max-boost-4-60-ghz--socket-am4_0730143312042.aspx',
},
{
brand: 'amd',
model: '5800x',
series: 'ryzen5800',
url:
'https://shop.akinformatica.it/catalogo/amd-am4/cpu-amd-ryzen-7-5800x---8-core--max-boost-4-70-ghz--socket-am4_0730143312714.aspx',
},
{
brand: 'amd',
model: '5900x',
series: 'ryzen5900',
url:
'https://shop.akinformatica.it/catalogo/amd-am4/cpu-amd-ryzen-9-5950x---16-core--max-boost-4-90-ghz--socket-am4_0730143312745.aspx',
},
{
brand: 'sapphire',
model: 'nitro+ se',
series: 'rx6800',
url:
'https://shop.akinformatica.it/catalogo/amd-rx-6800-6800-xt/vga-sapphire-radeon-rx-6800-xt-nitro--oc-se-16g_4895106289901.aspx',
},
{
brand: 'sapphire',
model: 'nitro+',
series: 'rx6800',
url:
'https://shop.akinformatica.it/catalogo/amd-rx-6800-6800-xt/vga-sapphire-radeon-rx-6800-xt-nitro--16g_4895106289925.aspx',
},
{
brand: 'sapphire',
model: 'amd reference',
series: 'rx6900xt',
url:
'https://shop.akinformatica.it/catalogo/amd-rx-6900-xt/vga-sapphire-radeon-rx-6900-xt-16g_4895106290136.aspx',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3080',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-msi-geforce-rtx-3080-ventus-3x-10g-oc--consegne-da-marzo_4719072762520.aspx',
},
{
brand: 'zotac',
model: 'trinity',
series: '3080',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-zotac-geforce-rtx-3080-trinity-10g_4895173622403.aspx',
},
{
brand: 'asus',
model: 'strix oc',
series: '3080',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-asus-geforce-rtx-3080-rog-strix-gaming-oc-10g_4718017928786.aspx',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-msi-geforce-rtx-3080-gaming-x-trio-10g_4719072762544.aspx',
},
{
brand: 'asus',
model: 'strix',
series: '3080',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-asus-geforce-rtx-3080-rog-strix-gaming-10g_4718017909150.aspx',
},
{
brand: 'pny',
model: 'xlr8 epic x',
series: '3080',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-pny-geforce-rtx-3080-epic-x-xlr8-gaming-10g_0751492639567.aspx',
},
{
brand: 'pny',
model: 'xlr8 epic x',
series: '3080',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-pny-geforce-rtx-3080-epic-x-xlr8-gaming-10g_0751492639550.aspx',
},
{
brand: 'palit',
model: 'gaming pro oc',
series: '3080',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3080/vga-palit-geforce-rtx3080-gamingpro-oc-10gb-gddr6x_4710562242003.aspx',
},
{
brand: 'msi',
model: 'ventus 2x oc',
series: '3060ti',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-msi-geforce-rtx-3060ti-ventus-2x-oc-8g-_4719072763121.aspx',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3060ti',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-msi-geforce-rtx-3060ti-gaming-x-trio-8g-_4719072763145.aspx',
},
{
brand: 'palit',
model: 'dual oc',
series: '3060ti',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-palit-geforce-rtx-3060ti-dual-oc-8g-gddr6-256bit-3xdp--hdmi-_4710562242287.aspx',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3060ti',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-msi-geforce-rtx-3060ti-ventus-3x-oc-8g_4719072763152.aspx',
},
{
brand: 'zotac',
model: 'twin edge',
series: '3060ti',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-zotac-gaming-geforce-rtx-3060ti-twin-edge-8g_4895173622502.aspx',
},
{
brand: 'zotac',
model: 'twin edge oc',
series: '3060ti',
url:
'https://shop.akinformatica.it/catalogo/nvidia-rtx-3060ti/vga-zotac-gaming-geforce-rtx-3060ti-twin-edge-oc-8g_4895173622519.aspx',
},
],
name: 'akinformatica',
successStatusCodes: [[0, 399], 404],
};
+64
View File
@@ -0,0 +1,64 @@
import {Store} from './store';
export const Allneeds: Store = {
backoffStatusCodes: [403, 429],
currency: '$',
labels: {
inStock: {
container: '.amstockstatus',
text: ['In Stock'],
},
maxPrice: {
container: 'span.price',
euroFormat: false,
},
outOfStock: {
container: '.amstockstatus',
text: ['sold out'],
},
},
links: [
{
brand: 'asus',
model: 'strix oc white',
series: '3080',
url:
'https://allneeds.com.au/asus-geforce-rtx-3080-rog-strix-gaming-oc-10gb-video-card-white-edition-limited-edition',
},
{
brand: 'sapphire',
model: 'nitro+',
series: 'rx6900xt',
url:
'https://allneeds.com.au/sapphire-nitro-radeon-rx-6900-xt-16gb-video-card-11308-01-20g',
},
{
brand: 'amd',
model: '5950x',
series: 'ryzen5950',
url:
'https://allneeds.com.au/amd-ryzen-9-5950x-processor-100-100000059wof',
},
{
brand: 'amd',
model: '5900x',
series: 'ryzen5900',
url:
'https://allneeds.com.au/amd-ryzen-9-5900x-processor-100-100000061wof',
},
{
brand: 'amd',
model: '5800x',
series: 'ryzen5800',
url: 'https://allneeds.com.au/amd-ryzen-7-5800x-processor',
},
{
brand: 'amd',
model: '5600x',
series: 'ryzen5600',
url:
'https://allneeds.com.au/amd-ryzen-5-5600x-with-wraith-stealth-100-100000065box',
},
],
name: 'allneeds',
};
+168 -167
View File
@@ -1,171 +1,172 @@
import {Store} from './store'; import {Store} from './store';
export const AlternateNL: Store = { export const AlternateNL: Store = {
labels: { currency: '€',
inStock: { labels: {
container: '.stockStatus', inStock: {
text: ['Direct leverbaar'] container: '.stockStatus',
}, text: ['Direct leverbaar'],
maxPrice: { },
container: 'div.price > span', maxPrice: {
euroFormat: true container: 'div.price > span',
}, euroFormat: true,
outOfStock: { },
container: '.stockStatus', outOfStock: {
text: ['Levertermijn onbekend', 'pre-order'] container: '.stockStatus',
} text: ['Levertermijn onbekend', 'pre-order'],
}, },
links: [ },
{ links: [
brand: 'test:brand', {
model: 'test:model', brand: 'test:brand',
series: 'test:series', model: 'test:model',
url: 'https://www.alternate.nl/product/1516616' series: 'test:series',
}, url: 'https://www.alternate.nl/product/1516616',
{ },
brand: 'gigabyte', {
model: 'eagle oc', brand: 'gigabyte',
series: '3080', model: 'eagle oc',
url: 'https://www.alternate.nl/product/1672756' series: '3080',
}, url: 'https://www.alternate.nl/product/1672756',
{ },
brand: 'msi', {
model: 'ventus 3x oc', brand: 'msi',
series: '3080', model: 'ventus 3x oc',
url: 'https://www.alternate.nl/product/1672345' series: '3080',
}, url: 'https://www.alternate.nl/product/1672345',
{ },
brand: 'asus', {
model: 'tuf', brand: 'asus',
series: '3080', model: 'tuf',
url: 'https://www.alternate.nl/product/1672251' series: '3080',
}, url: 'https://www.alternate.nl/product/1672251',
{ },
brand: 'gigabyte', {
model: 'gaming oc', brand: 'gigabyte',
series: '3080', model: 'gaming oc',
url: 'https://www.alternate.nl/product/1672753' series: '3080',
}, url: 'https://www.alternate.nl/product/1672753',
{ },
brand: 'msi', {
model: 'gaming x trio', brand: 'msi',
series: '3080', model: 'gaming x trio',
url: 'https://www.alternate.nl/product/1672343' series: '3080',
}, url: 'https://www.alternate.nl/product/1672343',
{ },
brand: 'asus', {
model: 'tuf oc', brand: 'asus',
series: '3080', model: 'tuf oc',
url: 'https://www.alternate.nl/product/1672634' series: '3080',
}, url: 'https://www.alternate.nl/product/1672634',
{ },
brand: 'asus', {
model: 'strix oc', brand: 'asus',
series: '3080', model: 'strix oc',
url: 'https://www.alternate.nl/product/1672867' series: '3080',
}, url: 'https://www.alternate.nl/product/1672867',
{ },
brand: 'evga', {
model: 'xc3 black', brand: 'evga',
series: '3080', model: 'xc3 black',
url: 'https://www.alternate.nl/product/1673512' series: '3080',
}, url: 'https://www.alternate.nl/product/1673512',
{ },
brand: 'zotac', {
model: 'trinity', brand: 'zotac',
series: '3080', model: 'trinity',
url: 'https://www.alternate.nl/product/1672612' series: '3080',
}, url: 'https://www.alternate.nl/product/1672612',
{ },
brand: 'evga', {
model: 'xc3 ultra', brand: 'evga',
series: '3080', model: 'xc3 ultra',
url: 'https://www.alternate.nl/product/1674164' series: '3080',
}, url: 'https://www.alternate.nl/product/1674164',
{ },
brand: 'asus', {
model: 'strix', brand: 'asus',
series: '3080', model: 'strix',
url: 'https://www.alternate.nl/product/1672868' series: '3080',
}, url: 'https://www.alternate.nl/product/1672868',
{ },
brand: 'palit', {
model: 'gaming pro oc', brand: 'palit',
series: '3080', model: 'gaming pro oc',
url: 'https://www.alternate.nl/product/1673431' series: '3080',
}, url: 'https://www.alternate.nl/product/1673431',
{ },
brand: 'zotac', {
model: 'trinity oc', brand: 'zotac',
series: '3080', model: 'trinity oc',
url: 'https://www.alternate.nl/product/1677989' series: '3080',
}, url: 'https://www.alternate.nl/product/1677989',
{ },
brand: 'gigabyte', {
model: 'vision oc', brand: 'gigabyte',
series: '3080', model: 'vision oc',
url: 'https://www.alternate.nl/product/1681134' series: '3080',
}, url: 'https://www.alternate.nl/product/1681134',
{ },
brand: 'evga', {
model: 'xc3', brand: 'evga',
series: '3080', model: 'xc3',
url: 'https://www.alternate.nl/product/1673520' series: '3080',
}, url: 'https://www.alternate.nl/product/1673520',
{ },
brand: 'gainward', {
model: 'phoenix gs', brand: 'gainward',
series: '3080', model: 'phoenix gs',
url: 'https://www.alternate.nl/product/1673442' series: '3080',
}, url: 'https://www.alternate.nl/product/1673442',
{ },
brand: 'inno3d', {
model: 'ichill x3', brand: 'inno3d',
series: '3080', model: 'ichill x3',
url: 'https://www.alternate.nl/product/1673136' series: '3080',
}, url: 'https://www.alternate.nl/product/1673136',
{ },
brand: 'evga', {
model: 'ftw3 ultra', brand: 'evga',
series: '3080', model: 'ftw3 ultra',
url: 'https://www.alternate.nl/product/1673524' series: '3080',
}, url: 'https://www.alternate.nl/product/1673524',
{ },
brand: 'gigabyte', {
model: 'aorus master', brand: 'gigabyte',
series: '3080', model: 'aorus master',
url: 'https://www.alternate.nl/product/1680168' series: '3080',
}, url: 'https://www.alternate.nl/product/1680168',
{ },
brand: 'evga', {
model: 'ftw3', brand: 'evga',
series: '3080', model: 'ftw3',
url: 'https://www.alternate.nl/product/1673517' series: '3080',
}, url: 'https://www.alternate.nl/product/1673517',
{ },
brand: 'zotac', {
model: 'amp holo', brand: 'zotac',
series: '3080', model: 'amp holo',
url: 'https://www.alternate.nl/product/1677985' series: '3080',
}, url: 'https://www.alternate.nl/product/1677985',
{ },
brand: 'zotac', {
model: 'amp extreme holo', brand: 'zotac',
series: '3080', model: 'amp extreme holo',
url: 'https://www.alternate.nl/product/1677982' series: '3080',
}, url: 'https://www.alternate.nl/product/1677982',
{ },
brand: 'inno3d', {
model: 'twin x2 oc', brand: 'inno3d',
series: '3080', model: 'twin x2 oc',
url: 'https://www.alternate.nl/product/1673137' series: '3080',
}, url: 'https://www.alternate.nl/product/1673137',
{ },
brand: 'inno3d', {
model: 'ichill x4', brand: 'inno3d',
series: '3080', model: 'ichill x4',
url: 'https://www.alternate.nl/product/1673134' series: '3080',
} url: 'https://www.alternate.nl/product/1673134',
], },
name: 'alternate-nl' ],
name: 'alternate-nl',
}; };
+431 -412
View File
@@ -1,416 +1,435 @@
import {Store} from './store'; import {Store} from './store';
export const Alternate: Store = { export const Alternate: Store = {
labels: { currency: '€',
inStock: { labels: {
container: '.stockStatus', inStock: {
text: [ container: '.stockStatus',
'auf lager', text: [
'ware neu eingetroffen', 'auf lager',
'in kürze versandfertig', 'ware neu eingetroffen',
'ware im zulauf' 'in kürze versandfertig',
] 'ware im zulauf',
}, ],
maxPrice: { },
container: 'div.price > span', maxPrice: {
euroFormat: true container: 'div.price > span',
}, euroFormat: true,
outOfStock: [ },
{ outOfStock: [
container: '.stockStatus', {
text: ['liefertermin unbekannt'] container: '.stockStatus',
}, text: ['liefertermin unbekannt'],
{ },
container: '.stockStatus', {
text: ['Artikel kann nicht gekauft werden'] container: '.stockStatus',
} text: ['Artikel kann nicht gekauft werden'],
] },
}, ],
links: [ },
{ links: [
brand: 'test:brand', {
model: 'test:model', brand: 'test:brand',
series: 'test:series', model: 'test:model',
url: 'https://www.alternate.de/product/1662088' series: 'test:series',
}, url: 'https://www.alternate.de/html/product/1662088',
{ },
brand: 'asus', {
model: 'strix', brand: 'asus',
series: '3080', model: 'strix',
url: 'https://www.alternate.de/product/1672868' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672868',
{ },
brand: 'asus', {
model: 'strix oc', brand: 'asus',
series: '3080', model: 'strix oc',
url: 'https://www.alternate.de/product/1672867' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672867',
{ },
brand: 'asus', {
model: 'tuf', brand: 'asus',
series: '3080', model: 'tuf',
url: 'https://www.alternate.de/product/1672251' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672251',
{ },
brand: 'asus', {
model: 'tuf oc', brand: 'asus',
series: '3080', model: 'tuf oc',
url: 'https://www.alternate.de/product/1672634' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672634',
{ },
brand: 'evga', {
model: 'ftw3', brand: 'evga',
series: '3080', model: 'ftw3',
url: 'https://www.alternate.de/product/1673517' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673517',
{ },
brand: 'evga', {
model: 'ftw3 ultra', brand: 'evga',
series: '3080', model: 'ftw3 ultra',
url: 'https://www.alternate.de/product/1673524' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673524',
{ },
brand: 'evga', {
model: 'xc3 black', brand: 'evga',
series: '3080', model: 'xc3 black',
url: 'https://www.alternate.de/product/1673512' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673512',
{ },
brand: 'evga', {
model: 'xc3', brand: 'evga',
series: '3080', model: 'xc3',
url: 'https://www.alternate.de/product/1673520' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673520',
{ },
brand: 'evga', {
model: 'xc3 ultra', brand: 'evga',
series: '3080', model: 'xc3 ultra',
url: 'https://www.alternate.de/product/1674164' series: '3080',
}, url: 'https://www.alternate.de/html/product/1674164',
{ },
brand: 'gainward', {
model: 'phantom gs', brand: 'gainward',
series: '3080', model: 'phantom gs',
url: 'https://www.alternate.de/product/1688597' series: '3080',
}, url: 'https://www.alternate.de/html/product/1688597',
{ },
brand: 'gainward', {
model: 'phoenix gs', brand: 'gainward',
series: '3080', model: 'phoenix gs',
url: 'https://www.alternate.de/product/1673442' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673442',
{ },
brand: 'gigabyte', {
model: 'aorus master', brand: 'gigabyte',
series: '3080', model: 'aorus master',
url: 'https://www.alternate.de/product/1680168' series: '3080',
}, url: 'https://www.alternate.de/html/product/1680168',
{ },
brand: 'gigabyte', {
model: 'aorus xtreme', brand: 'gigabyte',
series: '3080', model: 'aorus xtreme',
url: 'https://www.alternate.de/product/1680168' series: '3080',
}, url: 'https://www.alternate.de/html/product/1680168',
{ },
brand: 'gigabyte', {
model: 'eagle oc', brand: 'gigabyte',
series: '3080', model: 'eagle oc',
url: 'https://www.alternate.de/product/1672756' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672756',
{ },
brand: 'gigabyte', {
model: 'gaming oc', brand: 'gigabyte',
series: '3080', model: 'gaming oc',
url: 'https://www.alternate.de/product/1672753' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672753',
{ },
brand: 'gigabyte', {
model: 'vision oc', brand: 'gigabyte',
series: '3080', model: 'vision oc',
url: 'https://www.alternate.de/product/1681134' series: '3080',
}, url: 'https://www.alternate.de/html/product/1681134',
{ },
brand: 'inno3d', {
model: 'ichill x3', brand: 'inno3d',
series: '3080', model: 'ichill x3',
url: 'https://www.alternate.de/product/1673136' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673136',
{ },
brand: 'inno3d', {
model: 'ichill x4', brand: 'inno3d',
series: '3080', model: 'ichill x4',
url: 'https://www.alternate.de/product/1673134' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673134',
{ },
brand: 'inno3d', {
model: 'twin x2 oc', brand: 'inno3d',
series: '3080', model: 'twin x2 oc',
url: 'https://www.alternate.de/product/1673137' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673137',
{ },
brand: 'msi', {
model: 'gaming x trio', brand: 'msi',
series: '3080', model: 'gaming x trio',
url: 'https://www.alternate.de/product/1672343' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672343',
{ },
brand: 'msi', {
model: 'ventus 3x oc', brand: 'msi',
series: '3080', model: 'ventus 3x oc',
url: 'https://www.alternate.de/product/1672345' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672345',
{ },
brand: 'palit', {
model: 'gamerock oc', brand: 'palit',
series: '3080', model: 'gamerock oc',
url: 'https://www.alternate.de/product/1688594' series: '3080',
}, url: 'https://www.alternate.de/html/product/1688594',
{ },
brand: 'palit', {
model: 'gaming pro oc', brand: 'palit',
series: '3080', model: 'gaming pro oc',
url: 'https://www.alternate.de/product/1673431' series: '3080',
}, url: 'https://www.alternate.de/html/product/1673431',
{ },
brand: 'zotac', {
model: 'amp extreme holo', brand: 'zotac',
series: '3080', model: 'amp extreme holo',
url: 'https://www.alternate.de/product/1677982' series: '3080',
}, url: 'https://www.alternate.de/html/product/1677982',
{ },
brand: 'zotac', {
model: 'amp holo', brand: 'zotac',
series: '3080', model: 'amp holo',
url: 'https://www.alternate.de/product/1677985' series: '3080',
}, url: 'https://www.alternate.de/html/product/1677985',
{ },
brand: 'zotac', {
model: 'trinity oc', brand: 'zotac',
series: '3080', model: 'trinity oc',
url: 'https://www.alternate.de/product/1677989' series: '3080',
}, url: 'https://www.alternate.de/html/product/1677989',
{ },
brand: 'zotac', {
model: 'trinity', brand: 'zotac',
series: '3080', model: 'trinity',
url: 'https://www.alternate.de/product/1672612' series: '3080',
}, url: 'https://www.alternate.de/html/product/1672612',
{ },
brand: 'asus', {
model: 'strix', brand: 'asus',
series: '3090', model: 'strix',
url: 'https://www.alternate.de/product/1672870' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672870',
{ },
brand: 'asus', {
model: 'strix oc', brand: 'asus',
series: '3090', model: 'strix oc',
url: 'https://www.alternate.de/product/1672872' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672872',
{ },
brand: 'asus', {
model: 'tuf', brand: 'asus',
series: '3090', model: 'tuf',
url: 'https://www.alternate.de/product/1672259' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672259',
{ },
brand: 'asus', {
model: 'tuf oc', brand: 'asus',
series: '3090', model: 'tuf oc',
url: 'https://www.alternate.de/product/1672629' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672629',
{ },
brand: 'evga', {
model: 'ftw3', brand: 'evga',
series: '3090', model: 'ftw3',
url: 'https://www.alternate.de/product/1673530' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673530',
{ },
brand: 'evga', {
model: 'ftw3 ultra', brand: 'evga',
series: '3090', model: 'ftw3 ultra',
url: 'https://www.alternate.de/product/1673531' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673531',
{ },
brand: 'evga', {
model: 'xc3 black', brand: 'evga',
series: '3090', model: 'xc3 black',
url: 'https://www.alternate.de/product/1673521' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673521',
{ },
brand: 'evga', {
model: 'xc3', brand: 'evga',
series: '3090', model: 'xc3',
url: 'https://www.alternate.de/product/1673525' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673525',
{ },
brand: 'evga', {
model: 'xc3 ultra', brand: 'evga',
series: '3090', model: 'xc3 ultra',
url: 'https://www.alternate.de/product/1673529' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673529',
{ },
brand: 'gainward', {
model: 'phoenix gs', brand: 'gainward',
series: '3090', model: 'phoenix gs',
url: 'https://www.alternate.de/product/1673440' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673440',
{ },
brand: 'gigabyte', {
model: 'aorus xtreme', brand: 'gigabyte',
series: '3090', model: 'aorus xtreme',
url: 'https://www.alternate.de/product/1680670' series: '3090',
}, url: 'https://www.alternate.de/html/product/1680670',
{ },
brand: 'gigabyte', {
model: 'aorus master', brand: 'gigabyte',
series: '3090', model: 'aorus master',
url: 'https://www.alternate.de/product/1687793' series: '3090',
}, url: 'https://www.alternate.de/html/product/1687793',
{ },
brand: 'gigabyte', {
model: 'eagle oc', brand: 'gigabyte',
series: '3090', model: 'eagle oc',
url: 'https://www.alternate.de/product/1672744' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672744',
{ },
brand: 'gigabyte', {
model: 'gaming oc', brand: 'gigabyte',
series: '3090', model: 'gaming oc',
url: 'https://www.alternate.de/product/1672749' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672749',
{ },
brand: 'gigabyte', {
model: 'turbo', brand: 'gigabyte',
series: '3090', model: 'turbo',
url: 'https://www.alternate.de/product/1687703' series: '3090',
}, url: 'https://www.alternate.de/html/product/1687703',
{ },
brand: 'inno3d', {
model: 'gaming x3', brand: 'inno3d',
series: '3090', model: 'gaming x3',
url: 'https://www.alternate.de/product/1673131' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673131',
{ },
brand: 'inno3d', {
model: 'ichill x3', brand: 'inno3d',
series: '3090', model: 'ichill x3',
url: 'https://www.alternate.de/product/1673135' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673135',
{ },
brand: 'inno3d', {
model: 'ichill x4', brand: 'inno3d',
series: '3090', model: 'ichill x4',
url: 'https://www.alternate.de/product/1673129' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673129',
{ },
brand: 'msi', {
model: 'gaming x trio', brand: 'msi',
series: '3090', model: 'gaming x trio',
url: 'https://www.alternate.de/product/1672341' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672341',
{ },
brand: 'msi', {
model: 'ventus 3x oc', brand: 'msi',
series: '3090', model: 'ventus 3x oc',
url: 'https://www.alternate.de/product/1672346' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672346',
{ },
brand: 'palit', {
model: 'gaming pro oc', brand: 'palit',
series: '3090', model: 'gaming pro oc',
url: 'https://www.alternate.de/product/1673434' series: '3090',
}, url: 'https://www.alternate.de/html/product/1673434',
{ },
brand: 'zotac', {
model: 'trinity', brand: 'zotac',
series: '3090', model: 'trinity',
url: 'https://www.alternate.de/product/1672611' series: '3090',
}, url: 'https://www.alternate.de/html/product/1672611',
{ },
brand: 'amd', {
model: '5600x', brand: 'amd',
series: 'ryzen5600', model: '5600x',
url: 'https://www.alternate.de/product/1685588' series: 'ryzen5600',
}, url: 'https://www.alternate.de/html/product/1685588',
{ },
brand: 'amd', {
model: '5800x', brand: 'amd',
series: 'ryzen5800', model: '5800x',
url: 'https://www.alternate.de/product/1685585' series: 'ryzen5800',
}, url: 'https://www.alternate.de/html/product/1685585',
{ },
brand: 'amd', {
model: '5900x', brand: 'amd',
series: 'ryzen5900', model: '5900x',
url: 'https://www.alternate.de/product/1685590' series: 'ryzen5900',
}, url: 'https://www.alternate.de/html/product/1685590',
{ },
brand: 'amd', {
model: '5950x', brand: 'amd',
series: 'ryzen5950', model: '5950x',
url: 'https://www.alternate.de/product/1685584' series: 'ryzen5950',
}, url: 'https://www.alternate.de/html/product/1685584',
{ },
brand: 'sony', {
model: 'ps5 console', brand: 'sony',
series: 'sonyps5c', model: 'ps5 console',
url: 'https://www.alternate.de/product/1651220' series: 'sonyps5c',
}, url: 'https://www.alternate.de/html/product/1651220',
{ },
brand: 'sony', {
model: 'ps5 digital', brand: 'sony',
series: 'sonyps5de', model: 'ps5 digital',
url: 'https://www.alternate.de/product/1651221' series: 'sonyps5de',
}, url: 'https://www.alternate.de/html/product/1651221',
{ },
brand: 'xfx', {
model: 'merc', brand: 'xfx',
series: 'rx6800xt', model: 'merc',
url: 'https://www.alternate.de/product/1698792' series: 'rx6800xt',
}, url: 'https://www.alternate.de/html/product/1698792',
{ },
brand: 'sapphire', {
model: 'nitro oc se', brand: 'sapphire',
series: 'rx6800xt', model: 'nitro oc se',
url: 'https://www.alternate.de/product/1696478' series: 'rx6800xt',
}, url: 'https://www.alternate.de/html/product/1696478',
{ },
brand: 'sapphire', {
model: 'nitro oc', brand: 'sapphire',
series: 'rx6800xt', model: 'nitro oc',
url: 'https://www.alternate.de/product/1696482' series: 'rx6800xt',
}, url: 'https://www.alternate.de/html/product/1696482',
{ },
brand: 'asus', {
model: 'strix lc', brand: 'asus',
series: 'rx6800xt', model: 'strix lc',
url: 'https://www.alternate.de/product/1695392' series: 'rx6800xt',
}, url: 'https://www.alternate.de/html/product/1695392',
{ },
brand: 'gigabyte', {
model: 'gaming oc', brand: 'gigabyte',
series: 'rx6800xt', model: 'gaming oc',
url: 'https://www.alternate.de/product/1697044' series: 'rx6800xt',
}, url: 'https://www.alternate.de/html/product/1697044',
{ },
brand: 'microsoft', {
model: 'xbox series x', brand: 'asus',
series: 'xboxsx', model: 'tuf oc',
url: 'https://www.alternate.de/product/1675115' series: 'rx6900xt',
}, url: 'https://www.alternate.de/html/product/1702773',
{ },
brand: 'microsoft', {
model: 'xbox series s', brand: 'msi',
series: 'xboxss', model: 'amd reference',
url: 'https://www.alternate.de/product/1675117' series: 'rx6900xt',
}, url: 'https://www.alternate.de/html/product/1700508',
{ },
brand: 'sony', {
model: 'ps5 console', brand: 'xfx',
series: 'sonyps5c', model: 'merc',
url: 'https://www.alternate.de/product/1676874' series: 'rx6900xt',
} url: 'https://www.alternate.de/html/product/1704614',
], },
name: 'alternate' {
brand: 'microsoft',
model: 'xbox series x',
series: 'xboxsx',
url: 'https://www.alternate.de/html/product/1675115',
},
{
brand: 'microsoft',
model: 'xbox series s',
series: 'xboxss',
url: 'https://www.alternate.de/html/product/1675117',
},
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.alternate.de/html/product/1651220',
},
],
name: 'alternate',
}; };
+293 -216
View File
@@ -1,220 +1,297 @@
import {Store} from './store'; import {Store} from './store';
export const AmazonCa: Store = { export const AmazonCa: Store = {
labels: { currency: '$',
captcha: { labels: {
container: 'body', captcha: {
text: ['enter the characters you see below'] container: 'body',
}, text: ['enter the characters you see below'],
inStock: { },
container: '#desktop_buybox', inStock: {
text: ['add to cart'] container: '#desktop_buybox',
}, text: ['add to cart'],
maxPrice: { },
container: '#priceblock_ourprice' maxPrice: {
} container: '.a-color-price',
}, },
links: [ outOfStock: {
{ container: '.a-color-price',
brand: 'test:brand', text: ['currently unavailable.'],
cartUrl: },
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B07PBLD2MX&Quantity.1=1', },
model: 'test:model', links: [
series: 'test:series', {
url: 'https://www.amazon.ca/dp/B07PBLD2MX' brand: 'test:brand',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B07PBLD2MX&Quantity.1=1',
brand: 'msi', model: 'test:model',
cartUrl: series: 'test:series',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR7SV3M&Quantity.1=1', url: 'https://www.amazon.ca/dp/B07PBLD2MX',
model: 'gaming x trio', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HR7SV3M' brand: 'msi',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08KWN2LZG&Quantity.1=1',
brand: 'msi', model: 'gaming x trio',
cartUrl: series: '3070',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR5SXPS&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08KWN2LZG',
model: 'ventus 3x oc', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HR5SXPS' brand: 'msi',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08KWLMZV4&Quantity.1=1',
brand: 'evga', model: 'ventus 3x oc',
cartUrl: series: '3070',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR3DPGW&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08KWLMZV4',
model: 'ftw3', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HR3DPGW' brand: 'evga',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08LW46GH2&Quantity.1=1',
brand: 'evga', model: 'xc3',
cartUrl: series: '3070',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR3Y5GQ&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08LW46GH2',
model: 'ftw3 ultra', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HR3Y5GQ' brand: 'evga',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08L8L71SM&Quantity.1=1',
brand: 'evga', model: 'xc3 ultra',
cartUrl: series: '3070',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR55YB5&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08L8L71SM',
model: 'xc3 ultra', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HR55YB5' brand: 'evga',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08L8L9TCZ&Quantity.1=1',
brand: 'evga', model: 'ftw3 ultra',
cartUrl: series: '3070',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR4RJ3Q&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08L8L9TCZ',
model: 'xc3', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HR4RJ3Q' brand: 'msi',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR7SV3M&Quantity.1=1',
brand: 'evga', model: 'gaming x trio',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR6FMF3&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HR7SV3M',
model: 'xc3 black', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HR6FMF3' brand: 'msi',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR5SXPS&Quantity.1=1',
brand: 'gigabyte', model: 'ventus 3x oc',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJTH61J&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HR5SXPS',
model: 'gaming oc', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HJTH61J' brand: 'evga',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR3DPGW&Quantity.1=1',
brand: 'gigabyte', model: 'ftw3',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJS2JLJ&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HR3DPGW',
model: 'eagle oc', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HJS2JLJ' brand: 'evga',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR3Y5GQ&Quantity.1=1',
brand: 'asus', model: 'ftw3 ultra',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HHDP9DW&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HR3Y5GQ',
model: 'tuf', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HHDP9DW' brand: 'evga',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR55YB5&Quantity.1=1',
brand: 'asus', model: 'xc3 ultra',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HH5WF97&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HR55YB5',
model: 'tuf oc', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HH5WF97' brand: 'evga',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR4RJ3Q&Quantity.1=1',
brand: 'zotac', model: 'xc3',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJNKT3P&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HR4RJ3Q',
model: 'trinity', },
series: '3080', {
url: 'https://www.amazon.ca/dp/B08HJNKT3P' brand: 'evga',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR6FMF3&Quantity.1=1',
brand: 'zotac', model: 'xc3 black',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJQ182D&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HR6FMF3',
model: 'trinity', },
series: '3090', {
url: 'https://www.amazon.ca/dp/B08HJQ182D' brand: 'gigabyte',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJTH61J&Quantity.1=1',
brand: 'msi', model: 'gaming oc',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR9D2JS&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HJTH61J',
model: 'ventus 3x oc', },
series: '3090', {
url: 'https://www.amazon.ca/dp/B08HR9D2JS' brand: 'gigabyte',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJS2JLJ&Quantity.1=1',
brand: 'gigabyte', model: 'eagle oc',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJRF2CN&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HJS2JLJ',
model: 'gaming oc', },
series: '3090', {
url: 'https://www.amazon.ca/dp/B08HJRF2CN' brand: 'asus',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HHDP9DW&Quantity.1=1',
brand: 'gigabyte', model: 'tuf',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJPDJTY&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HHDP9DW',
model: 'eagle oc', },
series: '3090', {
url: 'https://www.amazon.ca/dp/B08HJPDJTY' brand: 'asus',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HH5WF97&Quantity.1=1',
brand: 'asus', model: 'tuf oc',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJGNJ81&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HH5WF97',
model: 'tuf', },
series: '3090', {
url: 'https://www.amazon.ca/dp/B08HJGNJ81' brand: 'zotac',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJNKT3P&Quantity.1=1',
brand: 'asus', model: 'trinity',
cartUrl: series: '3080',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJLLF7G&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HJNKT3P',
model: 'tuf oc', },
series: '3090', {
url: 'https://www.amazon.ca/dp/B08HJLLF7G' brand: 'zotac',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJQ182D&Quantity.1=1',
brand: 'amd', model: 'trinity',
cartUrl: series: '3090',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HJQ182D',
model: '5600x', },
series: 'ryzen5600', {
url: 'https://www.amazon.ca/dp/B08166SLDF' brand: 'msi',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR9D2JS&Quantity.1=1',
brand: 'amd', model: 'ventus 3x oc',
cartUrl: series: '3090',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HR9D2JS',
model: '5800x', },
series: 'ryzen5800', {
url: 'https://www.amazon.ca/dp/B0815XFSGK' brand: 'gigabyte',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJRF2CN&Quantity.1=1',
brand: 'amd', model: 'gaming oc',
cartUrl: series: '3090',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HJRF2CN',
model: '5900x', },
series: 'ryzen5900', {
url: 'https://www.amazon.ca/dp/B08164VTWH' brand: 'gigabyte',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJPDJTY&Quantity.1=1',
brand: 'amd', model: 'eagle oc',
cartUrl: series: '3090',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HJPDJTY',
model: '5950x', },
series: 'ryzen5950', {
url: 'https://www.amazon.ca/dp/B0815Y8J9N' brand: 'asus',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJGNJ81&Quantity.1=1',
brand: 'sony', model: 'tuf',
cartUrl: series: '3090',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08GSC5D9G&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HJGNJ81',
model: 'ps5 console', },
series: 'sonyps5c', {
url: 'https://www.amazon.ca/dp/B08GSC5D9G' brand: 'asus',
}, cartUrl:
{ 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJLLF7G&Quantity.1=1',
brand: 'sony', model: 'tuf oc',
cartUrl: series: '3090',
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08GS1N24H&Quantity.1=1', url: 'https://www.amazon.ca/dp/B08HJLLF7G',
model: 'ps5 digital', },
series: 'sonyps5de', {
url: 'https://www.amazon.ca/dp/B08GS1N24H' brand: 'amd',
} cartUrl:
], 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
name: 'amazon-ca' model: '5600x',
series: 'ryzen5600',
url: 'https://www.amazon.ca/dp/B08166SLDF',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1',
model: '5800x',
series: 'ryzen5800',
url: 'https://www.amazon.ca/dp/B0815XFSGK',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1',
model: '5900x',
series: 'ryzen5900',
url: 'https://www.amazon.ca/dp/B08164VTWH',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1',
model: '5950x',
series: 'ryzen5950',
url: 'https://www.amazon.ca/dp/B0815Y8J9N',
},
{
brand: 'sony',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08GSC5D9G&Quantity.1=1',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.amazon.ca/dp/B08GSC5D9G',
},
{
brand: 'sony',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08GS1N24H&Quantity.1=1',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://www.amazon.ca/dp/B08GS1N24H',
},
{
brand: 'microsoft',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08H75RTZ8&Quantity.1=1',
model: 'xbox series x',
series: 'xboxsx',
url: 'https://www.amazon.ca/dp/B08H75RTZ8',
},
{
brand: 'microsoft',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08G9J44ZN&Quantity.1=1',
model: 'xbox series s',
series: 'xboxss',
url: 'https://www.amazon.ca/dp/B08G9J44ZN',
},
{
brand: 'xfx',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08NX14LV1&Quantity.1=1',
model: 'merc',
series: 'rx6800xt',
url: 'https://www.amazon.ca/dp/B08NX14LV1',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08PQ585CX&Quantity.1=1',
model: 'pulse',
series: 'rx6800xt',
url: 'https://www.amazon.ca/dp/B08PQ585CX',
},
],
name: 'amazon-ca',
}; };
+60 -59
View File
@@ -1,63 +1,64 @@
import {Store} from './store'; import {Store} from './store';
export const AmazonDeWarehouse: Store = { export const AmazonDeWarehouse: Store = {
backoffStatusCodes: [403, 429, 503], backoffStatusCodes: [403, 429, 503],
labels: { currency: '€',
captcha: { labels: {
container: 'body', captcha: {
text: [ container: 'body',
'geben sie die unten angezeigten zeichen ein', text: [
'geben sie die zeichen unten ein' 'geben sie die unten angezeigten zeichen ein',
] 'geben sie die zeichen unten ein',
}, ],
inStock: { },
container: '#a-autoid-0-announce', inStock: {
text: ['In den Einkaufswagen'] container: '#a-autoid-0-announce',
}, text: ['In den Einkaufswagen'],
maxPrice: { },
container: 'a-size-large a-color-price olpOfferPrice a-text-bold', maxPrice: {
euroFormat: true container: '.olpOfferPrice',
}, euroFormat: true,
outOfStock: [ },
{ outOfStock: [
container: '.a-size-medium', {
text: [ container: '.a-size-medium',
'Derzeit gibt es keine Verkäufer, die diesen Artikel an Ihren Standort liefern können' text: [
] 'Derzeit gibt es keine Verkäufer, die diesen Artikel an Ihren Standort liefern können',
} ],
] },
}, ],
links: [ },
{ links: [
brand: 'test:brand', {
model: 'test:model', brand: 'test:brand',
series: 'test:series', model: 'test:model',
url: 'https://www.amazon.de/gp/offer-listing/B07PW9VBK5' series: 'test:series',
}, url: 'https://www.amazon.de/gp/offer-listing/B07PW9VBK5',
{ },
brand: 'sony', {
model: 'ps5 console', brand: 'sony',
series: 'sonyps5c', model: 'ps5 console',
url: 'https://www.amazon.de/gp/offer-listing/B08H93ZRK9' series: 'sonyps5c',
}, url: 'https://www.amazon.de/gp/offer-listing/B08H93ZRK9',
{ },
brand: 'sony', {
model: 'ps5 digital', brand: 'sony',
series: 'sonyps5de', model: 'ps5 digital',
url: 'https://www.amazon.de/gp/offer-listing/B08H98GVK8' series: 'sonyps5de',
}, url: 'https://www.amazon.de/gp/offer-listing/B08H98GVK8',
{ },
brand: 'microsoft', {
model: 'xbox series s', brand: 'microsoft',
series: 'xboxss', model: 'xbox series s',
url: 'https://www.amazon.de/gp/offer-listing/B087VM5XC6' series: 'xboxss',
}, url: 'https://www.amazon.de/gp/offer-listing/B087VM5XC6',
{ },
brand: 'microsoft', {
model: 'xbox series x', brand: 'microsoft',
series: 'xboxsx', model: 'xbox series x',
url: 'https://www.amazon.de/gp/offer-listing/B08H93ZRLL' series: 'xboxsx',
} url: 'https://www.amazon.de/gp/offer-listing/B08H93ZRLL',
], },
name: 'amazon-de-warehouse' ],
name: 'amazon-de-warehouse',
}; };
File diff suppressed because it is too large Load Diff
+200 -199
View File
@@ -1,203 +1,204 @@
import {Store} from './store'; import {Store} from './store';
export const AmazonEs: Store = { export const AmazonEs: Store = {
backoffStatusCodes: [403, 429, 503], backoffStatusCodes: [403, 429, 503],
labels: { currency: '€',
captcha: { labels: {
container: 'body', captcha: {
text: ['introduzca los caracteres que ve a continuación'] container: 'body',
}, text: ['introduzca los caracteres que ve a continuación'],
inStock: { },
container: '#desktop_buybox', inStock: {
text: ['añadir a la cesta'] container: '#desktop_buybox',
}, text: ['añadir a la cesta'],
maxPrice: { },
container: '#priceblock_ourprice' maxPrice: {
}, container: '#priceblock_ourprice',
outOfStock: [ },
{ outOfStock: [
container: '#availability', {
text: ['No disponible'] container: '#availability',
} text: ['No disponible'],
] },
}, ],
links: [ },
{ links: [
brand: 'test:brand', {
cartUrl: brand: 'test:brand',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B07PW9VBK5&Quantity.1=1', cartUrl:
model: 'test:model', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B07PW9VBK5&Quantity.1=1',
series: 'test:series', model: 'test:model',
url: 'https://www.amazon.es/dp/B07PW9VBK5' series: 'test:series',
}, url: 'https://www.amazon.es/dp/B07PW9VBK5',
{ },
brand: 'msi', {
cartUrl: brand: 'msi',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HM4V2DH&Quantity.1=1', cartUrl:
model: 'gaming x trio', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HM4V2DH&Quantity.1=1',
series: '3080', model: 'gaming x trio',
url: 'https://www.amazon.es/dp/B08HM4V2DH' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HM4V2DH',
{ },
brand: 'evga', {
cartUrl: brand: 'evga',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGYXP4C&Quantity.1=1', cartUrl:
model: 'ftw3 ultra', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGYXP4C&Quantity.1=1',
series: '3080', model: 'ftw3 ultra',
url: 'https://www.amazon.es/dp/B08HGYXP4C' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HGYXP4C',
{ },
brand: 'evga', {
cartUrl: brand: 'evga',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HJ9XFNM&Quantity.1=1', cartUrl:
model: 'xc3 ultra', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HJ9XFNM&Quantity.1=1',
series: '3080', model: 'xc3 ultra',
url: 'https://www.amazon.es/dp/B08HJ9XFNM' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HJ9XFNM',
{ },
brand: 'evga', {
cartUrl: brand: 'evga',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGBYWQ6&Quantity.1=1', cartUrl:
model: 'ftw3', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGBYWQ6&Quantity.1=1',
series: '3080', model: 'ftw3',
url: 'https://www.amazon.es/dp/B08HGBYWQ6' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HGBYWQ6',
{ },
brand: 'evga', {
cartUrl: brand: 'evga',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGLN78Q&Quantity.1=1', cartUrl:
model: 'xc3', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGLN78Q&Quantity.1=1',
series: '3080', model: 'xc3',
url: 'https://www.amazon.es/dp/B08HGLN78Q' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HGLN78Q',
{ },
brand: 'evga', {
cartUrl: brand: 'evga',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HH1BMQQ&Quantity.1=1', cartUrl:
model: 'xc3 black', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HH1BMQQ&Quantity.1=1',
series: '3080', model: 'xc3 black',
url: 'https://www.amazon.es/dp/B08HH1BMQQ' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HH1BMQQ',
{ },
brand: 'gigabyte', {
cartUrl: brand: 'gigabyte',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HLZXHZY&Quantity.1=1', cartUrl:
model: 'gaming oc', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HLZXHZY&Quantity.1=1',
series: '3080', model: 'gaming oc',
url: 'https://www.amazon.es/dp/B08HLZXHZY' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HLZXHZY',
{ },
brand: 'gigabyte', {
cartUrl: brand: 'gigabyte',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HHZVZ3N&Quantity.1=1', cartUrl:
model: 'eagle oc', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HHZVZ3N&Quantity.1=1',
series: '3080', model: 'eagle oc',
url: 'https://www.amazon.es/dp/B08HHZVZ3N' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HHZVZ3N',
{ },
brand: 'asus', {
cartUrl: brand: 'asus',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN37VQK&Quantity.1=1', cartUrl:
model: 'tuf', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN37VQK&Quantity.1=1',
series: '3080', model: 'tuf',
url: 'https://www.amazon.es/dp/B08HN37VQK' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HN37VQK',
{ },
brand: 'asus', {
cartUrl: brand: 'asus',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN4DSTC&Quantity.1=1', cartUrl:
model: 'tuf oc', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN4DSTC&Quantity.1=1',
series: '3080', model: 'tuf oc',
url: 'https://www.amazon.es/dp/B08HN4DSTC' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HN4DSTC',
{ },
brand: 'asus', {
cartUrl: brand: 'asus',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN6KYS3&Quantity.1=1', cartUrl:
model: 'strix oc', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN6KYS3&Quantity.1=1',
series: '3080', model: 'strix oc',
url: 'https://www.amazon.es/dp/B08HN6KYS3' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HN6KYS3',
{ },
brand: 'msi', {
cartUrl: brand: 'msi',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HM4M621&Quantity.1=1', cartUrl:
model: 'ventus 3x oc', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HM4M621&Quantity.1=1',
series: '3080', model: 'ventus 3x oc',
url: 'https://www.amazon.es/dp/B08HM4M621' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HM4M621',
{ },
brand: 'zotac', {
cartUrl: brand: 'zotac',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HR1NPPQ&Quantity.1=1', cartUrl:
model: 'trinity', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HR1NPPQ&Quantity.1=1',
series: '3080', model: 'trinity',
url: 'https://www.amazon.es/dp/B08HR1NPPQ' series: '3080',
}, url: 'https://www.amazon.es/dp/B08HR1NPPQ',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1', cartUrl:
model: '5600x', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
series: 'ryzen5600', model: '5600x',
url: 'https://www.amazon.es/dp/B08166SLDF' series: 'ryzen5600',
}, url: 'https://www.amazon.es/dp/B08166SLDF',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1', cartUrl:
model: '5800x', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1',
series: 'ryzen5800', model: '5800x',
url: 'https://www.amazon.es/dp/B0815XFSGK' series: 'ryzen5800',
}, url: 'https://www.amazon.es/dp/B0815XFSGK',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1', cartUrl:
model: '5900x', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1',
series: 'ryzen5900', model: '5900x',
url: 'https://www.amazon.es/dp/B08164VTWH' series: 'ryzen5900',
}, url: 'https://www.amazon.es/dp/B08164VTWH',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1', cartUrl:
model: '5950x', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1',
series: 'ryzen5950', model: '5950x',
url: 'https://www.amazon.es/dp/B0815Y8J9N' series: 'ryzen5950',
}, url: 'https://www.amazon.es/dp/B0815Y8J9N',
{ },
brand: 'sony', {
cartUrl: brand: 'sony',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08KKJ37F7&Quantity.1=1', cartUrl:
model: 'ps5 console', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08KKJ37F7&Quantity.1=1',
series: 'sonyps5c', model: 'ps5 console',
url: 'https://www.amazon.es/dp/B08KKJ37F7' series: 'sonyps5c',
}, url: 'https://www.amazon.es/dp/B08KKJ37F7',
{ },
brand: 'sony', {
cartUrl: brand: 'sony',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08KJF2D25&Quantity.1=1', cartUrl:
model: 'ps5 digital', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08KJF2D25&Quantity.1=1',
series: 'sonyps5de', model: 'ps5 digital',
url: 'https://www.amazon.es/dp/B08KJF2D25' series: 'sonyps5de',
}, url: 'https://www.amazon.es/dp/B08KJF2D25',
{ },
brand: 'microsoft', {
cartUrl: brand: 'microsoft',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08H93ZRLL&Quantity.1=1', cartUrl:
model: 'xbox series x', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08H93ZRLL&Quantity.1=1',
series: 'xboxsx', model: 'xbox series x',
url: 'https://www.amazon.es/dp/B08H93ZRLL' series: 'xboxsx',
}, url: 'https://www.amazon.es/dp/B08H93ZRLL',
{ },
brand: 'microsoft', {
cartUrl: brand: 'microsoft',
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B087VM5XC6&Quantity.1=1', cartUrl:
model: 'xbox series s', 'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B087VM5XC6&Quantity.1=1',
series: 'xboxss', model: 'xbox series s',
url: 'https://www.amazon.es/dp/B087VM5XC6' series: 'xboxss',
} url: 'https://www.amazon.es/dp/B087VM5XC6',
], },
name: 'amazon-es' ],
name: 'amazon-es',
}; };
+187 -186
View File
@@ -1,190 +1,191 @@
import {Store} from './store'; import {Store} from './store';
export const AmazonFr: Store = { export const AmazonFr: Store = {
backoffStatusCodes: [403, 429, 503], backoffStatusCodes: [403, 429, 503],
labels: { currency: '€',
captcha: { labels: {
container: 'body', captcha: {
text: ['entrez les caractères que vous voyez ci-dessous'] container: 'body',
}, text: ['entrez les caractères que vous voyez ci-dessous'],
inStock: { },
container: '#desktop_buybox', inStock: {
text: ['ajouter au panier'] container: '#desktop_buybox',
}, text: ['ajouter au panier'],
maxPrice: { },
container: '#priceblock_ourprice', maxPrice: {
euroFormat: true container: '#priceblock_ourprice',
}, euroFormat: true,
outOfStock: [ },
{ outOfStock: [
container: '#availability', {
text: ['Actuellement indisponible'] container: '#availability',
} text: ['Actuellement indisponible'],
] },
}, ],
links: [ },
{ links: [
brand: 'test:brand', {
model: 'test:model', brand: 'test:brand',
series: 'test:series', model: 'test:model',
url: 'https://www.amazon.fr/dp/B07PW9VBK5' series: 'test:series',
}, url: 'https://www.amazon.fr/dp/B07PW9VBK5',
{ },
brand: 'msi', {
model: 'gaming x trio', brand: 'msi',
series: '3080', model: 'gaming x trio',
url: 'https://www.amazon.fr/dp/B08HR7SV3M' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HR7SV3M',
{ },
brand: 'msi', {
model: 'ventus 3x oc', brand: 'msi',
series: '3080', model: 'ventus 3x oc',
url: 'https://www.amazon.fr/dp/B08HR5SXPS' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HR5SXPS',
{ },
brand: 'evga', {
model: 'ftw3', brand: 'evga',
series: '3080', model: 'ftw3',
url: 'https://www.amazon.fr/dp/B08HR3DPGW' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HR3DPGW',
{ },
brand: 'evga', {
model: 'ftw3 ultra', brand: 'evga',
series: '3080', model: 'ftw3 ultra',
url: 'https://www.amazon.fr/dp/B08HR3Y5GQ' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HR3Y5GQ',
{ },
brand: 'evga', {
model: 'xc3 ultra', brand: 'evga',
series: '3080', model: 'xc3 ultra',
url: 'https://www.amazon.fr/dp/B08HR55YB5' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HR55YB5',
{ },
brand: 'evga', {
model: 'xc3', brand: 'evga',
series: '3080', model: 'xc3',
url: 'https://www.amazon.fr/dp/B08HR4RJ3Q' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HR4RJ3Q',
{ },
brand: 'evga', {
model: 'xc3 black', brand: 'evga',
series: '3080', model: 'xc3 black',
url: 'https://www.amazon.fr/dp/B08HR6FMF3' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HR6FMF3',
{ },
brand: 'gigabyte', {
model: 'gaming oc', brand: 'gigabyte',
series: '3080', model: 'gaming oc',
url: 'https://www.amazon.fr/dp/B08HJTH61J' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HJTH61J',
{ },
brand: 'gigabyte', {
model: 'eagle oc', brand: 'gigabyte',
series: '3080', model: 'eagle oc',
url: 'https://www.amazon.fr/dp/B08HJS2JLJ' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HJS2JLJ',
{ },
brand: 'asus', {
model: 'tuf', brand: 'asus',
series: '3080', model: 'tuf',
url: 'https://www.amazon.fr/dp/B08HHDP9DW' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HHDP9DW',
{ },
brand: 'asus', {
model: 'tuf oc', brand: 'asus',
series: '3080', model: 'tuf oc',
url: 'https://www.amazon.fr/dp/B08HH5WF97' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HH5WF97',
{ },
brand: 'zotac', {
model: 'trinity', brand: 'zotac',
series: '3080', model: 'trinity',
url: 'https://www.amazon.fr/dp/B08HJNKT3P' series: '3080',
}, url: 'https://www.amazon.fr/dp/B08HJNKT3P',
{ },
brand: 'zotac', {
model: 'trinity', brand: 'zotac',
series: '3090', model: 'trinity',
url: 'https://www.amazon.fr/dp/B08HJQ182D' series: '3090',
}, url: 'https://www.amazon.fr/dp/B08HJQ182D',
{ },
brand: 'msi', {
model: 'ventus 3x oc', brand: 'msi',
series: '3090', model: 'ventus 3x oc',
url: 'https://www.amazon.fr/dp/B08HR9D2JS' series: '3090',
}, url: 'https://www.amazon.fr/dp/B08HR9D2JS',
{ },
brand: 'gigabyte', {
model: 'gaming oc', brand: 'gigabyte',
series: '3090', model: 'gaming oc',
url: 'https://www.amazon.fr/dp/B08HJRF2CN' series: '3090',
}, url: 'https://www.amazon.fr/dp/B08HJRF2CN',
{ },
brand: 'gigabyte', {
model: 'eagle oc', brand: 'gigabyte',
series: '3090', model: 'eagle oc',
url: 'https://www.amazon.fr/dp/B08HJPDJTY' series: '3090',
}, url: 'https://www.amazon.fr/dp/B08HJPDJTY',
{ },
brand: 'asus', {
model: 'tuf', brand: 'asus',
series: '3090', model: 'tuf',
url: 'https://www.amazon.fr/dp/B08HJGNJ81' series: '3090',
}, url: 'https://www.amazon.fr/dp/B08HJGNJ81',
{ },
brand: 'asus', {
model: 'tuf oc', brand: 'asus',
series: '3090', model: 'tuf oc',
url: 'https://www.amazon.fr/dp/B08HJLLF7G' series: '3090',
}, url: 'https://www.amazon.fr/dp/B08HJLLF7G',
{ },
brand: 'amd', {
model: '5600x', brand: 'amd',
series: 'ryzen5600', model: '5600x',
url: 'https://www.amazon.fr/dp/B08166SLDF' series: 'ryzen5600',
}, url: 'https://www.amazon.fr/dp/B08166SLDF',
{ },
brand: 'amd', {
model: '5800x', brand: 'amd',
series: 'ryzen5800', model: '5800x',
url: 'https://www.amazon.fr/dp/B0815XFSGK' series: 'ryzen5800',
}, url: 'https://www.amazon.fr/dp/B0815XFSGK',
{ },
brand: 'amd', {
model: '5900x', brand: 'amd',
series: 'ryzen5900', model: '5900x',
url: 'https://www.amazon.fr/dp/B08164VTWH' series: 'ryzen5900',
}, url: 'https://www.amazon.fr/dp/B08164VTWH',
{ },
brand: 'amd', {
model: '5950x', brand: 'amd',
series: 'ryzen5950', model: '5950x',
url: 'https://www.amazon.fr/dp/B0815Y8J9N' series: 'ryzen5950',
}, url: 'https://www.amazon.fr/dp/B0815Y8J9N',
{ },
brand: 'sony', {
model: 'ps5 console', brand: 'sony',
series: 'sonyps5c', model: 'ps5 console',
url: 'https://www.amazon.fr/dp/B08H93ZRK9' series: 'sonyps5c',
}, url: 'https://www.amazon.fr/dp/B08H93ZRK9',
{ },
brand: 'sony', {
model: 'ps5 digital', brand: 'sony',
series: 'sonyps5de', model: 'ps5 digital',
url: 'https://www.amazon.fr/dp/B08H98GVK8' series: 'sonyps5de',
}, url: 'https://www.amazon.fr/dp/B08H98GVK8',
{ },
brand: 'microsoft', {
model: 'xbox series x', brand: 'microsoft',
series: 'xboxsx', model: 'xbox series x',
url: 'https://www.amazon.fr/dp/B08H93ZRLL' series: 'xboxsx',
}, url: 'https://www.amazon.fr/dp/B08H93ZRLL',
{ },
brand: 'microsoft', {
model: 'xbox series s', brand: 'microsoft',
series: 'xboxss', model: 'xbox series s',
url: 'https://www.amazon.fr/dp/B087VM5XC6' series: 'xboxss',
} url: 'https://www.amazon.fr/dp/B087VM5XC6',
], },
name: 'amazon-fr' ],
name: 'amazon-fr',
}; };
+411 -409
View File
@@ -1,413 +1,415 @@
import {Store} from './store'; import {Store} from './store';
export const AmazonIt: Store = { export const AmazonIt: Store = {
backoffStatusCodes: [403, 429, 503], backoffStatusCodes: [403, 429, 503],
labels: { currency: '€',
captcha: { labels: {
container: 'body', captcha: {
text: ['enter the characters you see below'] container: 'body',
}, text: ['Inserisci i caratteri visualizzati nello spazio sottostante'],
inStock: { },
container: '#desktop_buybox', inStock: {
text: ['Aggiungi al carrello'] container: '#desktop_buybox',
}, text: ['Aggiungi al carrello'],
maxPrice: { },
container: '#priceblock_ourprice' maxPrice: {
} container: '#priceblock_ourprice',
}, euroFormat: true,
links: [ },
{ },
brand: 'asus', links: [
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B07PW9VBK5&Quantity.1=1', brand: 'asus',
model: 'dual', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KHFZN9P&Quantity.1=1',
url: 'https://www.amazon.it/dp/B07PW9VBK5' model: 'dual',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08KHFZN9P',
brand: 'asus', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8HPKR6&Quantity.1=1', brand: 'asus',
model: 'dual', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8HPKR6&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08L8HPKR6' model: 'dual',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08L8HPKR6',
brand: 'asus', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8JNTXQ&Quantity.1=1', brand: 'asus',
model: 'strix', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8JNTXQ&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08L8JNTXQ' model: 'strix',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08L8JNTXQ',
brand: 'asus', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8KC1J7&Quantity.1=1', brand: 'asus',
model: 'tuf', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8KC1J7&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08L8KC1J7' model: 'tuf',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08L8KC1J7',
brand: 'gigabyte', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1', brand: 'gigabyte',
model: 'gaming oc', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08KY266MG' model: 'gaming oc',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08KY266MG',
brand: 'msi', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KWN2LZG&Quantity.1=1', brand: 'msi',
model: 'gaming', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KWN2LZG&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08KWN2LZG' model: 'gaming',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08KWN2LZG',
brand: 'pny', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBJB7YD&Quantity.1=1', brand: 'pny',
model: 'xlr8 revel', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBJB7YD&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HBJB7YD' model: 'xlr8 revel',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08HBJB7YD',
brand: 'pny', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBF5L3K&Quantity.1=1', brand: 'pny',
model: 'xlr8 uprising', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBF5L3K&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HBF5L3K' model: 'xlr8 uprising',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08HBF5L3K',
brand: 'msi', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KWPDXJZ&Quantity.1=1', brand: 'msi',
model: 'ventus 2x oc', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KWPDXJZ&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08KWPDXJZ' model: 'ventus 2x oc',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08KWPDXJZ',
brand: 'msi', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KWLMZV4&Quantity.1=1', brand: 'msi',
model: 'ventus 3x oc', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KWLMZV4&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08KWLMZV4' model: 'ventus 3x oc',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08KWLMZV4',
brand: 'zotac', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08LF32LJ6&Quantity.1=1', brand: 'zotac',
model: 'gaming', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08LF32LJ6&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08LF32LJ6' model: 'gaming',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08LF32LJ6',
brand: 'evga', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8L71SM&Quantity.1=1', brand: 'evga',
model: 'xc3 ultra', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8L71SM&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08L8L71SM' model: 'xc3 ultra',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08L8L71SM',
brand: 'evga', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8L9TCZ&Quantity.1=1', brand: 'evga',
model: 'ftw3', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08L8L9TCZ&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08L8L9TCZ' model: 'ftw3 ultra',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08L8L9TCZ',
brand: 'gigabyte', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1', brand: 'gigabyte',
model: 'gaming oc', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08KY266MG' model: 'gaming oc',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08KY266MG',
brand: 'gigabyte', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08M13DXSZ&Quantity.1=1', brand: 'gigabyte',
model: 'vision oc', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08M13DXSZ&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08M13DXSZ' model: 'vision oc',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08M13DXSZ',
brand: 'gigabyte', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KXZV626&Quantity.1=1', brand: 'gigabyte',
model: 'eagle', cartUrl:
series: '3070', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KXZV626&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08KXZV626' model: 'eagle',
}, series: '3070',
{ url: 'https://www.amazon.it/dp/B08KXZV626',
brand: 'pny', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBR7QBM&Quantity.1=1', brand: 'pny',
model: 'xlr8 revel', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBR7QBM&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HBR7QBM' model: 'xlr8 revel',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HBR7QBM',
brand: 'pny', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBTJMLJ&Quantity.1=1', brand: 'pny',
model: 'xlr8 revel', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBTJMLJ&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HBTJMLJ' model: 'xlr8 revel',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HBTJMLJ',
brand: 'evga', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR3Y5GQ&Quantity.1=1', brand: 'evga',
model: 'ftw3 ultra', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR3Y5GQ&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HR3Y5GQ' model: 'ftw3 ultra',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HR3Y5GQ',
brand: 'evga', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR55YB5&Quantity.1=1', brand: 'evga',
model: 'xc3 ultra', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR55YB5&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HR55YB5' model: 'xc3 ultra',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HR55YB5',
brand: 'evga', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR4RJ3Q&Quantity.1=1', brand: 'evga',
model: 'xc3', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR4RJ3Q&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HR4RJ3Q' model: 'xc3',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HR4RJ3Q',
brand: 'evga', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR6FMF3&Quantity.1=1', brand: 'evga',
model: 'xc3 black', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR6FMF3&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HR6FMF3' model: 'xc3 black',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HR6FMF3',
brand: 'gigabyte', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJTH61J&Quantity.1=1', brand: 'gigabyte',
model: 'gaming oc', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJTH61J&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HJTH61J' model: 'gaming oc',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HJTH61J',
brand: 'gigabyte', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJS2JLJ&Quantity.1=1', brand: 'gigabyte',
model: 'eagle oc', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJS2JLJ&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HJS2JLJ' model: 'eagle oc',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HJS2JLJ',
brand: 'asus', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HH5WF97&Quantity.1=1', brand: 'asus',
model: 'tuf oc', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HH5WF97&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HH5WF97' model: 'tuf oc',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HH5WF97',
brand: 'asus', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HHDP9DW&Quantity.1=1', brand: 'asus',
model: 'tuf', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HHDP9DW&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HHDP9DW' model: 'tuf',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HHDP9DW',
brand: 'asus', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08J6GMWCQ&Quantity.1=1', brand: 'asus',
model: 'strix oc', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08J6GMWCQ&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08J6GMWCQ' model: 'strix oc',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08J6GMWCQ',
brand: 'msi', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR5SXPS&Quantity.1=1', brand: 'msi',
model: 'ventus 3x oc', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR5SXPS&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HR5SXPS' model: 'ventus 3x oc',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HR5SXPS',
brand: 'zotac', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJNKT3P&Quantity.1=1', brand: 'zotac',
model: 'trinity', cartUrl:
series: '3080', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJNKT3P&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HJNKT3P' model: 'trinity',
}, series: '3080',
{ url: 'https://www.amazon.it/dp/B08HJNKT3P',
brand: 'zotac', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJQ182D&Quantity.1=1', brand: 'zotac',
model: 'trinity', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJQ182D&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HJQ182D' model: 'trinity',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HJQ182D',
brand: 'pny', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBQWBHH&Quantity.1=1', brand: 'pny',
model: 'xlr8 revel', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBQWBHH&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HBQWBHH' model: 'xlr8 revel',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HBQWBHH',
brand: 'pny', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBVX53D&Quantity.1=1', brand: 'pny',
model: 'xlr8 revel', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HBVX53D&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HBVX53D' model: 'xlr8 revel',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HBVX53D',
brand: 'msi', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HRBW6VB&Quantity.1=1', brand: 'msi',
model: 'gaming x trio', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HRBW6VB&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HRBW6VB' model: 'gaming x trio',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HRBW6VB',
brand: 'msi', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR9D2JS&Quantity.1=1', brand: 'msi',
model: 'ventus 3x', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HR9D2JS&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HR9D2JS' model: 'ventus 3x',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HR9D2JS',
brand: 'gigabyte', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJRF2CN&Quantity.1=1', brand: 'gigabyte',
model: 'gaming oc', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJRF2CN&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HJRF2CN' model: 'gaming oc',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HJRF2CN',
brand: 'gigabyte', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJPDJTY&Quantity.1=1', brand: 'gigabyte',
model: 'eagle oc', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJPDJTY&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HJPDJTY' model: 'eagle oc',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HJPDJTY',
brand: 'asus', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJGNJ81&Quantity.1=1', brand: 'asus',
model: 'tuf oc', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJGNJ81&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HJGNJ81' model: 'tuf oc',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HJGNJ81',
brand: 'asus', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJLLF7G&Quantity.1=1', brand: 'asus',
model: 'tuf oc', cartUrl:
series: '3090', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08HJLLF7G&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08HJLLF7G' model: 'tuf oc',
}, series: '3090',
{ url: 'https://www.amazon.it/dp/B08HJLLF7G',
brand: 'amd', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1', brand: 'amd',
model: '5600x', cartUrl:
series: 'ryzen5600', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08166SLDF' model: '5600x',
}, series: 'ryzen5600',
{ url: 'https://www.amazon.it/dp/B08166SLDF',
brand: 'amd', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1', brand: 'amd',
model: '5800x', cartUrl:
series: 'ryzen5800', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1',
url: 'https://www.amazon.it/dp/product/B0815XFSGK' model: '5800x',
}, series: 'ryzen5800',
{ url: 'https://www.amazon.it/dp/product/B0815XFSGK',
brand: 'amd', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1', brand: 'amd',
model: '5900x', cartUrl:
series: 'ryzen5900', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08164VTWH' model: '5900x',
}, series: 'ryzen5900',
{ url: 'https://www.amazon.it/dp/B08164VTWH',
brand: 'amd', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1', brand: 'amd',
model: '5950x', cartUrl:
series: 'ryzen5950', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1',
url: 'https://www.amazon.it/dp/B0815Y8J9N' model: '5950x',
}, series: 'ryzen5950',
{ url: 'https://www.amazon.it/dp/B0815Y8J9N',
brand: 'sapphire', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08MVC76SR&Quantity.1=1', brand: 'sapphire',
model: 'amd reference', cartUrl:
series: 'rx6800xt', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08MVC76SR&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08MVC76SR' model: 'amd reference',
}, series: 'rx6800xt',
{ url: 'https://www.amazon.it/dp/B08MVC76SR',
brand: 'sapphire', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08MVCLBWK&Quantity.1=1', brand: 'sapphire',
model: 'amd reference', cartUrl:
series: 'rx6800', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08MVCLBWK&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08MVCLBWK' model: 'amd reference',
}, series: 'rx6800',
{ url: 'https://www.amazon.it/dp/B08MVCLBWK',
brand: 'sony', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KKJ37F7&Quantity.1=1', brand: 'sony',
model: 'ps5 console', cartUrl:
series: 'sonyps5c', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KKJ37F7&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08KKJ37F7' model: 'ps5 console',
}, series: 'sonyps5c',
{ url: 'https://www.amazon.it/dp/B08KKJ37F7',
brand: 'sony', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KJF2D25&Quantity.1=1', brand: 'sony',
model: 'ps5 digital', cartUrl:
series: 'sonyps5de', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08KJF2D25&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08KJF2D25' model: 'ps5 digital',
}, series: 'sonyps5de',
{ url: 'https://www.amazon.it/dp/B08KJF2D25',
brand: 'microsoft', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08JDSW1ZW&Quantity.1=1', brand: 'microsoft',
model: 'xbox series x', cartUrl:
series: 'xboxsx', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08JDSW1ZW&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08JDSW1ZW' model: 'xbox series x',
}, series: 'xboxsx',
{ url: 'https://www.amazon.it/dp/B08JDSW1ZW',
brand: 'microsoft', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08JDTCXRG&Quantity.1=1', brand: 'microsoft',
model: 'xbox series s', cartUrl:
series: 'xboxss', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B08JDTCXRG&Quantity.1=1',
url: 'https://www.amazon.it/dp/B08JDTCXRG' model: 'xbox series s',
}, series: 'xboxss',
{ url: 'https://www.amazon.it/dp/B08JDTCXRG',
brand: 'corsair', },
cartUrl: {
'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B07M63H81H&Quantity.1=1', brand: 'corsair',
model: '750 platinum', cartUrl:
series: 'sf', 'https://www.amazon.it/gp/aws/cart/add.html?ASIN.1=B07M63H81H&Quantity.1=1',
url: 'https://www.amazon.it/dp/B07M63H81H' model: '750 platinum',
} series: 'sf',
], url: 'https://www.amazon.it/dp/B07M63H81H',
name: 'amazon-it' },
],
name: 'amazon-it',
}; };
+234 -112
View File
@@ -1,116 +1,238 @@
import {Store} from './store'; import {Store} from './store';
export const AmazonNl: Store = { export const AmazonNl: Store = {
labels: { currency: '€',
captcha: { labels: {
container: 'body', captcha: {
text: ['voer de karakters in die u hieronder ziet'] container: 'body',
}, text: ['voer de karakters in die u hieronder ziet'],
inStock: { },
container: '#availability', inStock: [
text: [ {
'op voorraad', container: '#add-to-cart-button',
'verkrijgbaar vanaf', text: ['in winkelwagen'],
'wordt gewoonlijk verzonden binnen', },
'nog slechts' {
] container: '#buy-now-button',
}, text: ['nu kopen'],
maxPrice: { },
container: '#priceblock_ourprice', ],
euroFormat: true maxPrice: {
}, container: '#priceblock_ourprice',
outOfStock: [ euroFormat: true,
{ },
container: '#availability', outOfStock: [
text: ['tijdelijk niet'] {
}, container: '#availability',
{ text: ['tijdelijk niet'],
container: '#outOfStock', },
text: ['we weten niet of en wanneer dit item weer op voorraad is'] {
} container: '#outOfStock',
] text: ['we weten niet of en wanneer dit item weer op voorraad is'],
}, },
links: [ ],
{ },
brand: 'test:brand', links: [
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B083GGYNQ6&Quantity.1=1', brand: 'test:brand',
model: 'test:model', cartUrl:
series: 'test:series', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B085K45C3S&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B083GGYNQ6' model: 'test:model',
}, series: 'test:series',
{ url: 'https://www.amazon.nl/dp/B085K45C3S',
brand: 'msi', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HM4M621&Quantity.1=1', brand: 'msi',
model: 'ventus 3x oc', cartUrl:
series: '3080', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HM4M621&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B08HM4M621' model: 'ventus 3x oc',
}, series: '3080',
{ url: 'https://www.amazon.nl/dp/B08HM4M621',
brand: 'msi', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HM4V2DH&Quantity.1=1', brand: 'msi',
model: 'gaming x trio', cartUrl:
series: '3080', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HM4V2DH&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B08HM4V2DH' model: 'gaming x trio',
}, series: '3080',
{ url: 'https://www.amazon.nl/dp/B08HM4V2DH',
brand: 'evga', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HJ9XFNM&Quantity.1=1', brand: 'evga',
model: 'xc3 ultra', cartUrl:
series: '3080', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HJ9XFNM&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B08HJ9XFNM' model: 'xc3 ultra',
}, series: '3080',
{ url: 'https://www.amazon.nl/dp/B08HJ9XFNM',
brand: 'evga', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HH1BMQQ&Quantity.1=1', brand: 'evga',
model: 'xc3 black', cartUrl:
series: '3080', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HH1BMQQ&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B08HH1BMQQ' model: 'xc3 black',
}, series: '3080',
{ url: 'https://www.amazon.nl/dp/B08HH1BMQQ',
brand: 'asus', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HN7VVLJ&Quantity.1=1', brand: 'asus',
model: 'strix', cartUrl:
series: '3080', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HN7VVLJ&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B08HN7VVLJ' model: 'strix',
}, series: '3080',
{ url: 'https://www.amazon.nl/dp/B08HN7VVLJ',
brand: 'amd', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1', brand: 'msi',
model: '5600x', cartUrl:
series: 'ryzen5600', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08P2DQ28S&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B08166SLDF' model: 'ventus 2x oc',
}, series: '3060ti',
{ url: 'https://www.amazon.nl/dp/B08P2DQ28S',
brand: 'amd', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1', brand: 'msi',
model: '5800x', cartUrl:
series: 'ryzen5800', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08NW2YJB2&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B0815XFSGK' model: 'ventus 2x oc',
}, series: '3060ti',
{ url: 'https://www.amazon.nl/dp/B08NW2YJB2',
brand: 'amd', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1', brand: 'zotac',
model: '5900x', cartUrl:
series: 'ryzen5900', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08P3XJLJJ&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B08164VTWH' model: 'twin edge',
}, series: '3060ti',
{ url: 'https://www.amazon.nl/dp/B08P3XJLJJ',
brand: 'amd', },
cartUrl: {
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1', brand: 'zotac',
model: '5950x', cartUrl:
series: 'ryzen5950', 'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08P3V572B&Quantity.1=1',
url: 'https://www.amazon.nl/dp/B0815Y8J9N' model: 'twin edge oc',
} series: '3060ti',
], url: 'https://www.amazon.nl/dp/B08P3V572B',
name: 'amazon-nl' },
{
brand: 'zotac',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08P3BJ9Y8&Quantity.1=1',
model: 'twin edge oc',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08P3BJ9Y8',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08P3JPX8P&Quantity.1=1',
model: 'eagle',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08P3JPX8P',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08NW2X37Z&Quantity.1=1',
model: 'gaming oc',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08NW2X37Z',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08NW528S1&Quantity.1=1',
model: 'eagle oc',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08NW528S1',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08NW693LG&Quantity.1=1',
model: 'xlr8 revel',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08NW693LG',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B083Z5P6TX&Quantity.1=1',
model: 'tuf oc',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B083Z5P6TX',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08NZ4G4T2&Quantity.1=1',
model: 'tuf oc',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08NZ4G4T2',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08P2HBBLX&Quantity.1=1',
model: 'dual oc',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08P2HBBLX',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08PDN36R3&Quantity.1=1',
model: 'ftw3',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08PDN36R3',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08PDP837W&Quantity.1=1',
model: 'xc gaming',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08PDP837W',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08PDMVPZ4&Quantity.1=1',
model: 'xc3 black',
series: '3060ti',
url: 'https://www.amazon.nl/dp/B08PDMVPZ4',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
model: '5600x',
series: 'ryzen5600',
url: 'https://www.amazon.nl/dp/B08166SLDF',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1',
model: '5800x',
series: 'ryzen5800',
url: 'https://www.amazon.nl/dp/B0815XFSGK',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1',
model: '5900x',
series: 'ryzen5900',
url: 'https://www.amazon.nl/dp/B08164VTWH',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1',
model: '5950x',
series: 'ryzen5950',
url: 'https://www.amazon.nl/dp/B0815Y8J9N',
},
],
name: 'amazon-nl',
}; };
+760
View File
@@ -0,0 +1,760 @@
import {Store} from './store';
export const AmazonSg: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '$',
labels: {
captcha: {
container: 'body',
text: ['enter the characters you see below'],
},
inStock: [
{
container: '#add-to-cart-button',
text: ['add to cart'],
},
{
container: '#buy-now-button',
text: ['buy now'],
},
],
maxPrice: {
container: '#priceblock_ourprice',
},
},
links: [
{
brand: 'test:brand',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B083248S3B&Quantity.1=1',
model: 'test:model',
series: 'test:series',
url: 'https://www.amazon.sg/dp/B083248S3B',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P2HBBLX&Quantity.1=1',
model: 'dual',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08P2HBBLX',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NYP7KG6&Quantity.1=1',
model: 'gaming oc',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08NYP7KG6',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NYPLXPJ&Quantity.1=1',
model: 'gaming oc pro',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08NYPLXPJ',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NYNJ6RC&Quantity.1=1',
model: 'eagle',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08NYNJ6RC',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B083Z5P6TX&Quantity.1=1',
model: 'tuf',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B083Z5P6TX',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P2D3JSG&Quantity.1=1',
model: 'gaming x trio',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08P2D3JSG',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P2DQ28S&Quantity.1=1',
model: 'ventus 2x',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08P2DQ28S',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P3XJLJJ&Quantity.1=1',
model: 'twin edge oc',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08P3XJLJJ',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P3V572B&Quantity.1=1',
model: 'twin edge',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08P3V572B',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P2D1JZZ&Quantity.1=1',
model: 'ko',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08P2D1JZZ',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B083Z7TR8Z&Quantity.1=1',
model: 'strix',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B083Z7TR8Z',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P2H5LW2&Quantity.1=1',
model: 'ftw3',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08P2H5LW2',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NYPKW1Z&Quantity.1=1',
model: 'eagle oc',
series: '3060ti',
url: 'https://www.amazon.sg/dp/B08NYPKW1Z',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08L8LG4M3&Quantity.1=1',
model: 'dual',
series: '3070',
url: 'https://www.amazon.sg/dp/B08L8LG4M3',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08L8HPKR6&Quantity.1=1',
model: 'dual',
series: '3070',
url: 'https://www.amazon.sg/dp/B08L8HPKR6',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08LW46GH2&Quantity.1=1',
model: 'xc3 black',
series: '3070',
url: 'https://www.amazon.sg/dp/B08LW46GH2',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08L8JNTXQ&Quantity.1=1',
model: 'strix',
series: '3070',
url: 'https://www.amazon.sg/dp/B08L8JNTXQ',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08L8KC1J7&Quantity.1=1',
model: 'tuf',
series: '3070',
url: 'https://www.amazon.sg/dp/B08L8KC1J7',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1',
model: 'gaming oc',
series: '3070',
url: 'https://www.amazon.sg/dp/B08KY266MG',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08KWN2LZG&Quantity.1=1',
model: 'gaming',
series: '3070',
url: 'https://www.amazon.sg/dp/B08KWN2LZG',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HBJB7YD&Quantity.1=1',
model: 'xlr8 revel',
series: '3070',
url: 'https://www.amazon.sg/dp/B08HBJB7YD',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HBF5L3K&Quantity.1=1',
model: 'xlr8 uprising',
series: '3070',
url: 'https://www.amazon.sg/dp/B08HBF5L3K',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08KWPDXJZ&Quantity.1=1',
model: 'ventus 2x oc',
series: '3070',
url: 'https://www.amazon.sg/dp/B08KWPDXJZ',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08KWLMZV4&Quantity.1=1',
model: 'ventus 3x oc',
series: '3070',
url: 'https://www.amazon.sg/dp/B08KWLMZV4',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08LF1CWT2&Quantity.1=1',
model: 'twin edge oc',
series: '3070',
url: 'https://www.amazon.sg/dp/B08LF1CWT2',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08LF32LJ6&Quantity.1=1',
model: 'gaming',
series: '3070',
url: 'https://www.amazon.sg/dp/B08LF32LJ6',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08L8L71SM&Quantity.1=1',
model: 'xc3 ultra',
series: '3070',
url: 'https://www.amazon.sg/dp/B08L8L71SM',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08L8L9TCZ&Quantity.1=1',
model: 'ftw3 ultra',
series: '3070',
url: 'https://www.amazon.sg/dp/B08L8L9TCZ',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08LW46GH2&Quantity.1=1',
model: 'xc3 black',
series: '3070',
url: 'https://www.amazon.sg/dp/B08LW46GH2',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1',
model: 'gaming oc',
series: '3070',
url: 'https://www.amazon.sg/dp/B08KY266MG',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08M13DXSZ&Quantity.1=1',
model: 'vision oc',
series: '3070',
url: 'https://www.amazon.sg/dp/B08M13DXSZ',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08M4YFNX2&Quantity.1=1',
model: 'gaming oc',
series: '3070',
url: 'https://www.amazon.sg/dp/B08M4YFNX2',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08KXZV626&Quantity.1=1',
model: 'eagle',
series: '3070',
url: 'https://www.amazon.sg/dp/B08KXZV626',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08KY322TH&Quantity.1=1',
model: 'eagle oc',
series: '3070',
url: 'https://www.amazon.sg/dp/B08KY322TH',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HBR7QBM&Quantity.1=1',
model: 'xlr8 revel',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HBR7QBM',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HBTJMLJ&Quantity.1=1',
model: 'xlr8 revel',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HBTJMLJ',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HR7SV3M&Quantity.1=1',
model: 'gaming x trio',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HR7SV3M',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HR3Y5GQ&Quantity.1=1',
model: 'ftw3 ultra',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HR3Y5GQ',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HR55YB5&Quantity.1=1',
model: 'xc3 ultra',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HR55YB5',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HR3DPGW&Quantity.1=1',
model: 'ftw3',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HR3DPGW',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HR4RJ3Q&Quantity.1=1',
model: 'xc3',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HR4RJ3Q',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HR6FMF3&Quantity.1=1',
model: 'xc3 black',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HR6FMF3',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HJTH61J&Quantity.1=1',
model: 'gaming oc',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HJTH61J',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HJS2JLJ&Quantity.1=1',
model: 'eagle oc',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HJS2JLJ',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HH5WF97&Quantity.1=1',
model: 'tuf oc',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HH5WF97',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HHDP9DW&Quantity.1=1',
model: 'tuf',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HHDP9DW',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08J6F174Z&Quantity.1=1',
model: 'strix oc',
series: '3080',
url: 'https://www.amazon.sg/dp/B08J6F174Z',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08J6GMWCQ&Quantity.1=1',
model: 'strix oc',
series: '3090',
url: 'https://www.amazon.sg/dp/B08J6GMWCQ',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HR5SXPS&Quantity.1=1',
model: 'ventus 3x oc',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HR5SXPS',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HJNKT3P&Quantity.1=1',
model: 'trinity',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HJNKT3P',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HVV2P4Z&Quantity.1=1',
model: 'trinity oc',
series: '3080',
url: 'https://www.amazon.sg/dp/B08HVV2P4Z',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HJQ182D&Quantity.1=1',
model: 'trinity',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HJQ182D',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HBQWBHH&Quantity.1=1',
model: 'xlr8 revel',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HBQWBHH',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HBVX53D&Quantity.1=1',
model: 'xlr8 revel',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HBVX53D',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HRBW6VB&Quantity.1=1',
model: 'gaming x trio',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HRBW6VB',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HR9D2JS&Quantity.1=1',
model: 'ventus 3x',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HR9D2JS',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08J5F3G18&Quantity.1=1',
model: 'ftw3 ultra',
series: '3090',
url: 'https://www.amazon.sg/dp/B08J5F3G18',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HJRF2CN&Quantity.1=1',
model: 'gaming oc',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HJRF2CN',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HJPDJTY&Quantity.1=1',
model: 'eagle oc',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HJPDJTY',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HJGNJ81&Quantity.1=1',
model: 'tuf oc',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HJGNJ81',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HJLLF7G&Quantity.1=1',
model: 'tuf oc',
series: '3090',
url: 'https://www.amazon.sg/dp/B08HJLLF7G',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
model: '5600x',
series: 'ryzen5600',
url: 'https://www.amazon.sg/dp/B08166SLDF',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1',
model: '5800x',
series: 'ryzen5800',
url: 'https://www.amazon.sg/dp/product/B0815XFSGK',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1',
model: '5900x',
series: 'ryzen5900',
url: 'https://www.amazon.sg/dp/B08164VTWH',
},
{
brand: 'amd',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1',
model: '5950x',
series: 'ryzen5950',
url: 'https://www.amazon.sg/dp/B0815Y8J9N',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08PHWJC8X&Quantity.1=1',
model: 'amd reference',
series: 'rx6900xt',
url: 'https://www.amazon.sg/dp/B08PHWJC8X',
},
{
brand: 'xfx',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08PDQJVD9&Quantity.1=1',
model: 'amd reference',
series: 'rx6900xt',
url: 'https://www.amazon.sg/dp/B08PDQJVD9',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NS4W2ZY&Quantity.1=1',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.amazon.sg/dp/B08NS4W2ZY',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08MVC76SR&Quantity.1=1',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.amazon.sg/dp/B08MVC76SR',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NXXT7WN&Quantity.1=1',
model: 'nitro+',
series: 'rx6800xt',
url: 'https://www.amazon.sg/dp/B08NXXT7WN',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NXYNLMR&Quantity.1=1',
model: 'pulse',
series: 'rx6800xt',
url: 'https://www.amazon.sg/dp/B08NXYNLMR',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NXVNMPQ&Quantity.1=1',
model: 'nitro+',
series: 'rx6800xt',
url: 'https://www.amazon.sg/dp/B08NXVNMPQ',
},
{
brand: 'xfx',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08N6ZLX9B&Quantity.1=1',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.amazon.sg/dp/B08N6ZLX9B',
},
{
brand: 'xfx',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NX14LV1&Quantity.1=1',
model: 'merc',
series: 'rx6800xt',
url: 'https://www.amazon.sg/dp/B08NX14LV1',
},
{
brand: 'xfx',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NN76VJD&Quantity.1=1',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.amazon.sg/dp/B08NN76VJD',
},
{
brand: 'xfx',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P5YFZCY&Quantity.1=1',
model: 'merc',
series: 'rx6800',
url: 'https://www.amazon.sg/dp/B08P5YFZCY',
},
{
brand: 'powercolor',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08MNZM5TK&Quantity.1=1',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.amazon.sg/dp/B08MNZM5TK',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08MVCLBWK&Quantity.1=1',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.amazon.sg/dp/B08MVCLBWK',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NXZSPMY&Quantity.1=1',
model: 'nitro+',
series: 'rx6800',
url: 'https://www.amazon.sg/dp/B08NXZSPMY',
},
{
brand: 'sapphire',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NXYBVDB&Quantity.1=1',
model: 'pulse',
series: 'rx6800',
url: 'https://www.amazon.sg/dp/B08NXYBVDB',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NWJ29NB&Quantity.1=1',
model: 'strix oc',
series: 'rx6800',
url: 'https://www.amazon.sg/dp/B08NWJ29NB',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08P3YT3MY&Quantity.1=1',
model: 'tuf oc',
series: 'rx6800',
url: 'https://www.amazon.sg/dp/B08P3YT3MY',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08NWHKGS9&Quantity.1=1',
model: 'strix lc',
series: 'rx6800xt',
url: 'https://www.amazon.sg/dp/B08NWHKGS9',
},
{
brand: 'sony',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08FC5L3RG&Quantity.1=1',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.amazon.sg/dp/B08FC5L3RG',
},
{
brand: 'sony',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HNRSVQP&Quantity.1=1',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.amazon.sg/dp/B08HNRSVQP',
},
{
brand: 'sony',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08FC6MR62&Quantity.1=1',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://www.amazon.sg/dp/B08FC6MR62',
},
{
brand: 'sony',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B08HNSWWT7&Quantity.1=1',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://www.amazon.sg/dp/B08HNSWWT7',
},
{
brand: 'microsoft',
model: 'xbox series x',
series: 'xboxsx',
url: 'https://www.amazon.sg/dp/B08H75RTZ8',
},
{
brand: 'microsoft',
model: 'xbox series s',
series: 'xboxss',
url: 'https://www.amazon.sg/dp/B08G9J44ZN',
},
{
brand: 'corsair',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B07M63H81H&Quantity.1=1',
model: '750 platinum',
series: 'sf',
url: 'https://www.amazon.sg/dp/B07M63H81H',
},
{
brand: 'corsair',
cartUrl:
'https://www.amazon.sg/gp/aws/cart/add.html?ASIN.1=B07F84FJ1G&Quantity.1=1',
model: '600 platinum',
series: 'sf',
url: 'https://www.amazon.sg/dp/B07F84FJ1G',
},
],
name: 'amazon-sg',
};
+496 -133
View File
@@ -1,137 +1,500 @@
import {Link, Store} from './store'; import {Link, Store} from './store';
import {logger} from '../../logger';
import {parseCard} from './helpers/card';
export const AmazonUk: Store = { export const AmazonUk: Store = {
backoffStatusCodes: [403, 429, 503], backoffStatusCodes: [403, 429, 503],
labels: { currency: '£',
captcha: { labels: {
container: 'body', captcha: {
text: ['enter the characters you see below'] container: 'body',
}, text: ['enter the characters you see below'],
inStock: { },
container: '#availability', inStock: {
text: ['in stock'] container: '#availability',
}, text: ['in stock'],
maxPrice: { },
container: '#priceblock_ourprice' maxPrice: {
}, container: '#priceblock_ourprice',
outOfStock: [ },
{ outOfStock: [
container: '#availability', {
text: ['out of stock', 'unavailable'] container: '#availability',
}, text: ['out of stock', 'unavailable'],
{ },
container: '#backInStock', {
text: ['unavailable'] container: '#backInStock',
} text: ['unavailable'],
] },
}, ],
links: [ },
{ links: [
brand: 'test:brand', {
cartUrl: brand: 'test:brand',
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B0753R2TWC&Quantity.1=1', cartUrl:
model: 'test:model', 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B0753R2TWC&Quantity.1=1',
series: 'test:series', model: 'test:model',
url: 'https://www.amazon.co.uk/dp/B0753R2TWC/' series: 'test:series',
}, url: 'https://www.amazon.co.uk/dp/B0753R2TWC/',
{ },
brand: 'sony', {
cartUrl: brand: 'sony',
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08H95Y452&Quantity.1=1', cartUrl:
model: 'ps5 console', 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08H95Y452&Quantity.1=1',
series: 'sonyps5c', model: 'ps5 console',
url: 'https://www.amazon.co.uk/dp/B08H95Y452' series: 'sonyps5c',
}, url: 'https://www.amazon.co.uk/dp/B08H95Y452',
{ },
brand: 'sony', {
cartUrl: brand: 'sony',
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08H97NYGP&Quantity.1=1', cartUrl:
model: 'ps5 digital', 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08H97NYGP&Quantity.1=1',
series: 'sonyps5de', model: 'ps5 digital',
url: 'https://www.amazon.co.uk/dp/B08H97NYGP' series: 'sonyps5de',
}, url: 'https://www.amazon.co.uk/dp/B08H97NYGP',
{ },
brand: 'microsoft', {
cartUrl: brand: 'microsoft',
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08H93GKNJ&Quantity.1=1', cartUrl:
model: 'xbox series x', 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08H93GKNJ&Quantity.1=1',
series: 'xboxsx', model: 'xbox series x',
url: 'https://www.amazon.co.uk/dp/B08H93GKNJ' series: 'xboxsx',
}, url: 'https://www.amazon.co.uk/dp/B08H93GKNJ',
{ },
brand: 'microsoft', {
cartUrl: brand: 'microsoft',
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08GD9MNZB&Quantity.1=1', cartUrl:
model: 'xbox series s', 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08GD9MNZB&Quantity.1=1',
series: 'xboxss', model: 'xbox series s',
url: 'https://www.amazon.co.uk/dp/B08GD9MNZB' series: 'xboxss',
} url: 'https://www.amazon.co.uk/dp/B08GD9MNZB',
], },
linksBuilder: { {
builder: (docElement, series) => { brand: 'amd',
const productElements = docElement.find( model: '5600x',
'.s-result-list .s-result-item[data-asin]' series: 'ryzen5600',
); url:
const links: Link[] = []; 'https://www.amazon.co.uk/AMD-Ryzen-5600X-Processor-Cache/dp/B08166SLDF',
for (let i = 0; i < productElements.length; i++) { },
const productElement = productElements.eq(i); {
const asin = productElement.attr()['data-asin']; brand: 'amd',
model: '5800x',
if (!asin) { series: 'ryzen5800',
continue; url:
} 'https://www.amazon.co.uk/AMD-Ryzen-5800X-Processor-Cache/dp/B0815XFSGK',
},
const url = `https://www.amazon.co.uk/dp/${asin}/`; {
const titleElement = productElement brand: 'amd',
.find('.sg-col-inner h2 a.a-text-normal[href] span') model: '5900x',
.first(); series: 'ryzen5900',
const title = titleElement.text().trim(); url:
'https://www.amazon.co.uk/AMD-Ryzen-5900X-Processor-Cache/dp/B08164VTWH',
if (!title || !new RegExp(`RTX.*${series}`, 'i').exec(title)) { },
continue; {
} brand: 'amd',
model: '5950x',
const card = parseCard(title); series: 'ryzen5950',
url:
if (card) { 'https://www.amazon.co.uk/AMD-Ryzen-5950X-Processor-Cache/dp/B0815Y8J9N',
links.push({ },
brand: card.brand as any, {
cartUrl: `https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=${asin}&Quantity.1=1`, brand: 'asus',
model: card.model, cartUrl:
series, 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HN7VVLJ&Quantity.1=1',
url model: 'strix',
}); series: '3080',
} else { url: 'https://www.amazon.co.uk/dp/B08HN7VVLJ',
logger.error(`Failed to parse card: ${title}`, {url}); },
} {
} brand: 'asus',
cartUrl:
return links; 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HN6KYS3&Quantity.1=1',
}, model: 'strix oc',
ttl: 300000, series: '3080',
urls: [ url: 'https://www.amazon.co.uk/dp/B08HN6KYS3',
{ },
series: '3080', {
url: [ brand: 'asus',
'https://www.amazon.co.uk/s?k=%2B%22RTX+3080%22+-2080+-GTX&i=computers&rh=n%3A430500031%2Cp_n_availability%3A419162031&s=relevancerank&dc&qid=1601675291', cartUrl:
'https://www.amazon.co.uk/s?k=%2B%22RTX+3080%22+-2080+-GTX&i=computers&rh=n%3A430500031%2Cp_n_availability%3A419162031&s=relevancerank&dc&qid=1601675594&page=2' 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HN37VQK&Quantity.1=1',
] model: 'tuf',
}, series: '3080',
{ url: 'https://www.amazon.co.uk/dp/B08HN37VQK',
series: '3090', },
url: [ {
'https://www.amazon.co.uk/s?k=%2B%22RTX+3090%22+-3080+-GTX&i=computers&rh=n%3A430500031%2Cp_n_availability%3A419162031&s=relevancerank&dc&qid=1601675291', brand: 'asus',
'https://www.amazon.co.uk/s?k=%2B%22RTX+3090%22+-3080+-GTX&i=computers&rh=n%3A430500031%2Cp_n_availability%3A419162031&s=relevancerank&dc&qid=1601675594&page=2' cartUrl:
] 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HN4DSTC&Quantity.1=1',
}, model: 'tuf oc',
{ series: '3080',
series: '3060ti', url: 'https://www.amazon.co.uk/dp/B08HN4DSTC',
url: },
'https://www.amazon.co.uk/s?k=%2B%22RTX+3060+TI%22+-2060+-2070+-2080+-SUPER+-GTX&i=computers&rh=n%3A430500031%2Cp_n_availability%3A419162031&s=relevancerank&dc&qid=1601675291sb_noss' {
} brand: 'evga',
] cartUrl:
}, 'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HGBYWQ6&Quantity.1=1',
name: 'amazon-uk' model: 'ftw3',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HGBYWQ6',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HGYXP4C&Quantity.1=1',
model: 'ftw3 ultra',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HGYXP4C',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HGLN78Q&Quantity.1=1',
model: 'xc3',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HGLN78Q',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HH1BMQQ&Quantity.1=1',
model: 'xc3 black',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HH1BMQQ',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HJ9XFNM&Quantity.1=1',
model: 'xc3 ultra',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HJ9XFNM',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KHLDS72&Quantity.1=1',
model: 'aorus master',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08KHLDS72',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HHZVZ3N&Quantity.1=1',
model: 'eagle oc',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HHZVZ3N',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HLZXHZY&Quantity.1=1',
model: 'gaming oc',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HLZXHZY',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KH7RL89&Quantity.1=1',
model: 'vision oc',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08KH7RL89',
},
{
brand: 'inno3d',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08JD6QPXD&Quantity.1=1',
model: 'twin x2 oc',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08JD6QPXD',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HM4V2DH&Quantity.1=1',
model: 'gaming x trio',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HM4V2DH',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HM4M621&Quantity.1=1',
model: 'ventus 3x oc',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HM4M621',
},
{
brand: 'palit',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08JCVWTQY&Quantity.1=1',
model: 'gaming pro',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08JCVWTQY',
},
{
brand: 'palit',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08JCKYYL8&Quantity.1=1',
model: 'gaming pro oc',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08JCKYYL8',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HR1NPPQ&Quantity.1=1',
model: 'trinity',
series: '3080',
url: 'https://www.amazon.co.uk/dp/B08HR1NPPQ',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KHFZN9P&Quantity.1=1',
model: 'dual',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08KHFZN9P',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08L8HPKR6&Quantity.1=1',
model: 'dual',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08L8HPKR6',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08L8JNTXQ&Quantity.1=1',
model: 'strix',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08L8JNTXQ',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08L8KC1J7&Quantity.1=1',
model: 'tuf',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08L8KC1J7',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1',
model: 'gaming oc',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08KY266MG',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KWN2LZG&Quantity.1=1',
model: 'gaming',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08KWN2LZG',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HBJB7YD&Quantity.1=1',
model: 'xlr8 revel',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08HBJB7YD',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08HBF5L3K&Quantity.1=1',
model: 'xlr8 uprising',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08HBF5L3K',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KWPDXJZ&Quantity.1=1',
model: 'ventus 2x oc',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08KWPDXJZ',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KWLMZV4&Quantity.1=1',
model: 'ventus 3x oc',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08KWLMZV4',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08LF32LJ6&Quantity.1=1',
model: 'gaming',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08LF32LJ6',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08L8L71SM&Quantity.1=1',
model: 'xc3 ultra',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08L8L71SM',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08L8L9TCZ&Quantity.1=1',
model: 'ftw3 ultra',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08L8L9TCZ',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1',
model: 'gaming oc',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08KY266MG',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08M13DXSZ&Quantity.1=1',
model: 'vision oc',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08M13DXSZ',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08KXZV626&Quantity.1=1',
model: 'eagle',
series: '3070',
url: 'https://www.amazon.co.uk/dp/B08KXZV626',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08P2DQ28S&Quantity.1=1',
model: 'ventus 2x oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08P2DQ28S',
},
{
brand: 'msi',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08NW2YJB2&Quantity.1=1',
model: 'ventus 2x oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08NW2YJB2',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08P3XJLJJ&Quantity.1=1',
model: 'twin edge',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08P3XJLJJ',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08P3V572B&Quantity.1=1',
model: 'twin edge oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08P3V572B',
},
{
brand: 'zotac',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08P3BJ9Y8&Quantity.1=1',
model: 'twin edge oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08P3BJ9Y8',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08P3JPX8P&Quantity.1=1',
model: 'eagle',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08P3JPX8P',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08NW2X37Z&Quantity.1=1',
model: 'gaming oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08NW2X37Z',
},
{
brand: 'gigabyte',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08NW528S1&Quantity.1=1',
model: 'eagle oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08NW528S1',
},
{
brand: 'pny',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08NW693LG&Quantity.1=1',
model: 'xlr8 revel',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08NW693LG',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B083Z5P6TX&Quantity.1=1',
model: 'tuf oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B083Z5P6TX',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08NZ4G4T2&Quantity.1=1',
model: 'tuf oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08NZ4G4T2',
},
{
brand: 'asus',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08P2HBBLX&Quantity.1=1',
model: 'dual oc',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08P2HBBLX',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08PDN36R3&Quantity.1=1',
model: 'ftw3',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08PDN36R3',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08PDP837W&Quantity.1=1',
model: 'xc gaming',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08PDP837W',
},
{
brand: 'evga',
cartUrl:
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B08PDMVPZ4&Quantity.1=1',
model: 'xc3 black',
series: '3060ti',
url: 'https://www.amazon.co.uk/dp/B08PDMVPZ4',
},
],
name: 'amazon-uk',
}; };
+755 -603
View File
File diff suppressed because it is too large Load Diff
+44 -35
View File
@@ -1,39 +1,48 @@
import {Store} from './store'; import {Store} from './store';
export const AmdCa: Store = { export const AmdCa: Store = {
labels: { currency: '$',
inStock: { labels: {
container: '.btn-shopping-cart', inStock: {
text: ['add to cart'] container: '.btn-shopping-cart',
}, text: ['add to cart'],
maxPrice: { },
container: '.product-page-description h4', maxPrice: {
euroFormat: false container: '.product-page-description h4',
} euroFormat: false,
}, },
links: [ },
{ links: [
brand: 'test:brand', {
model: 'test:model', brand: 'test:brand',
series: 'test:series', model: 'test:model',
url: 'https://www.amd.com/en/direct-buy/5458373400/ca' series: 'test:series',
}, url: 'https://www.amd.com/en/direct-buy/5458373400/ca',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amd.com/en/direct-buy/5458373400/ca?add-to-cart=true', cartUrl:
model: 'amd reference', 'https://www.amd.com/en/direct-buy/5458373400/ca?add-to-cart=true',
series: 'rx6800', model: 'amd reference',
url: 'https://www.amd.com/en/direct-buy/5458373400/ca' series: 'rx6800',
}, url: 'https://www.amd.com/en/direct-buy/5458373400/ca',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amd.com/en/direct-buy/5458372800/ca?add-to-cart=true', cartUrl:
model: 'amd reference', 'https://www.amd.com/en/direct-buy/5458372800/ca?add-to-cart=true',
series: 'rx6800xt', model: 'amd reference',
url: 'https://www.amd.com/en/direct-buy/5458372800/ca' series: 'rx6800xt',
} url: 'https://www.amd.com/en/direct-buy/5458372800/ca',
], },
name: 'amd-ca' {
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5458372200/ca?add-to-cart=true',
model: 'amd reference',
series: 'rx6900xt',
url: 'https://www.amd.com/en/direct-buy/5458372200/ca',
},
],
name: 'amd-ca',
}; };
+80 -59
View File
@@ -1,63 +1,84 @@
import {Store} from './store'; import {Store} from './store';
export const AmdDe: Store = { export const AmdDe: Store = {
labels: { currency: '€',
inStock: { labels: {
container: '.btn-shopping-cart', inStock: {
text: ['add to cart'] container: '.btn-shopping-cart',
}, text: ['add to cart'],
maxPrice: { },
container: '.product-page-description h4', maxPrice: {
euroFormat: true container: '.product-page-description h4',
} euroFormat: true,
}, },
links: [ outOfStock: {
{ container: '.btn-radeon',
brand: 'test:brand', text: ['ausverkauft'],
model: 'test:model', },
series: 'test:series', },
url: 'https://www.amd.com/de/direct-buy/5450881400/de' links: [
}, {
{ brand: 'test:brand',
brand: 'amd', model: 'test:model',
cartUrl: series: 'test:series',
'https://www.amd.com/de/direct-buy/5450881400/de?add-to-cart=true', url: 'https://www.amd.com/de/direct-buy/5450881400/de',
model: '5950x', },
series: 'ryzen5950', {
url: 'https://www.amd.com/de/direct-buy/5450881400/de' brand: 'amd',
}, cartUrl:
{ 'https://www.amd.com/de/direct-buy/5450881400/de?add-to-cart=true',
brand: 'amd', model: '5950x',
cartUrl: series: 'ryzen5950',
'https://www.amd.com/de/direct-buy/5450881500/de?add-to-cart=true', url: 'https://www.amd.com/de/direct-buy/5450881400/de',
model: '5900x', },
series: 'ryzen5900', {
url: 'https://www.amd.com/de/direct-buy/5450881500/de' brand: 'amd',
}, cartUrl:
{ 'https://www.amd.com/de/direct-buy/5450881500/de?add-to-cart=true',
brand: 'amd', model: '5900x',
cartUrl: series: 'ryzen5900',
'https://www.amd.com/de/direct-buy/5450881600/de?add-to-cart=true', url: 'https://www.amd.com/de/direct-buy/5450881500/de',
model: '5800x', },
series: 'ryzen5800', {
url: 'https://www.amd.com/de/direct-buy/5450881600/de' brand: 'amd',
}, cartUrl:
{ 'https://www.amd.com/de/direct-buy/5450881600/de?add-to-cart=true',
brand: 'amd', model: '5800x',
cartUrl: series: 'ryzen5800',
'https://www.amd.com/de/direct-buy/5450881700/de?add-to-cart=true', url: 'https://www.amd.com/de/direct-buy/5450881600/de',
model: '5600x', },
series: 'ryzen5600', {
url: 'https://www.amd.com/de/direct-buy/5450881700/de' brand: 'amd',
}, cartUrl:
{ 'https://www.amd.com/de/direct-buy/5450881700/de?add-to-cart=true',
brand: 'amd', model: '5600x',
cartUrl: series: 'ryzen5600',
'https://www.amd.com/de/direct-buy/5458374100/de?add-to-cart=true', url: 'https://www.amd.com/de/direct-buy/5450881700/de',
model: 'amd reference', },
series: 'rx6800xt', {
url: 'https://www.amd.com/de/direct-buy/5458374100/de' brand: 'amd',
} cartUrl:
], 'https://www.amd.com/de/direct-buy/5458374000/de?add-to-cart=true',
name: 'amd-de' model: 'amd reference',
series: 'rx6800',
url: 'https://www.amd.com/de/direct-buy/5458374000/de',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/de/direct-buy/5458374100/de?add-to-cart=true',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.amd.com/de/direct-buy/5458374100/de',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/de/direct-buy/5458374200/de?add-to-cart=true',
model: 'amd reference',
series: 'rx6900xt',
url: 'https://www.amd.com/de/direct-buy/5458374200/de',
},
],
name: 'amd-de',
}; };
+60 -59
View File
@@ -1,63 +1,64 @@
import {Store} from './store'; import {Store} from './store';
export const AmdIt: Store = { export const AmdIt: Store = {
labels: { currency: '€',
inStock: { labels: {
container: '.btn-shopping-cart', inStock: {
text: ['add to cart'] container: '.btn-shopping-cart',
}, text: ['add to cart'],
maxPrice: { },
container: '.product-page-description h4', maxPrice: {
euroFormat: true container: '.product-page-description h4',
} euroFormat: true,
}, },
links: [ },
{ links: [
brand: 'test:brand', {
model: 'test:model', brand: 'test:brand',
series: 'test:series', model: 'test:model',
url: 'https://www.amd.com/en/direct-buy/5450881400/it' series: 'test:series',
}, url: 'https://www.amd.com/en/direct-buy/5450881400/it',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amd.com/en/direct-buy/5450881400/it?add-to-cart=true', cartUrl:
model: '5950x', 'https://www.amd.com/en/direct-buy/5450881400/it?add-to-cart=true',
series: 'ryzen5950', model: '5950x',
url: 'https://www.amd.com/en/direct-buy/5450881400/it' series: 'ryzen5950',
}, url: 'https://www.amd.com/en/direct-buy/5450881400/it',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amd.com/en/direct-buy/5450881500/it?add-to-cart=true', cartUrl:
model: '5900x', 'https://www.amd.com/en/direct-buy/5450881500/it?add-to-cart=true',
series: 'ryzen5900', model: '5900x',
url: 'https://www.amd.com/en/direct-buy/5450881500/it' series: 'ryzen5900',
}, url: 'https://www.amd.com/en/direct-buy/5450881500/it',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amd.com/en/direct-buy/5450881600/it?add-to-cart=true', cartUrl:
model: '5800x', 'https://www.amd.com/en/direct-buy/5450881600/it?add-to-cart=true',
series: 'ryzen5800', model: '5800x',
url: 'https://www.amd.com/en/direct-buy/5450881600/it' series: 'ryzen5800',
}, url: 'https://www.amd.com/en/direct-buy/5450881600/it',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amd.com/en/direct-buy/5450881700/it?add-to-cart=true', cartUrl:
model: '5600x', 'https://www.amd.com/en/direct-buy/5450881700/it?add-to-cart=true',
series: 'ryzen5600', model: '5600x',
url: 'https://www.amd.com/en/direct-buy/5450881700/it' series: 'ryzen5600',
}, url: 'https://www.amd.com/en/direct-buy/5450881700/it',
{ },
brand: 'amd', {
cartUrl: brand: 'amd',
'https://www.amd.com/en/direct-buy/5458374100/it?add-to-cart=true', cartUrl:
model: 'amd reference', 'https://www.amd.com/en/direct-buy/5458374100/it?add-to-cart=true',
series: 'rx6800xt', model: 'amd reference',
url: 'https://www.amd.com/en/direct-buy/5458374100/it' series: 'rx6800xt',
} url: 'https://www.amd.com/en/direct-buy/5458374100/it',
], },
name: 'amd-it' ],
name: 'amd-it',
}; };
+96
View File
@@ -0,0 +1,96 @@
import {Store} from './store';
export const AmdUk: Store = {
currency: '£',
labels: {
inStock: [
{
container: '.btn-shopping-cart',
text: ['add to cart'],
},
{
container: '.btn-radeon',
text: ['add to cart'],
},
],
maxPrice: {
container: '.product-page-description h4',
euroFormat: false,
},
outOfStock: [
{
container: '.product-out-of-stock',
text: ['out of stock'],
},
{
container: '.btn-radeon',
text: ['sold out'],
},
],
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.amd.com/en/direct-buy/5450881400/gb',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5450881400/gb?add-to-cart=true',
model: '5950x',
series: 'ryzen5950',
url: 'https://www.amd.com/en/direct-buy/5450881400/gb',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5450881500/gb?add-to-cart=true',
model: '5900x',
series: 'ryzen5900',
url: 'https://www.amd.com/en/direct-buy/5450881500/gb',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5450881600/gb?add-to-cart=true',
model: '5800x',
series: 'ryzen5800',
url: 'https://www.amd.com/en/direct-buy/5450881600/gb',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5450881700/gb?add-to-cart=true',
model: '5600x',
series: 'ryzen5600',
url: 'https://www.amd.com/en/direct-buy/5450881700/gb',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5458374000/gb?add-to-cart=true',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.amd.com/en/direct-buy/5458374000/gb',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5458374100/gb?add-to-cart=true',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.amd.com/en/direct-buy/5458374100/gb',
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5458374200/gb?add-to-cart=true',
model: 'amd reference',
series: 'rx6900xt',
url: 'https://www.amd.com/en/direct-buy/5458374200/gb',
},
],
name: 'amd-uk',
};

Some files were not shown because too many files have changed in this diff Show More