mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 06:27:38 +00:00
Compare commits
422 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c2defe224a | |||
| e552c9102d | |||
| 292e3603fd | |||
| 85bbaf905e | |||
| 432d38bd5a | |||
| 2d01cfddff | |||
| 53739e05ab | |||
| 9ad9793dc1 | |||
| f6f5c6bfe7 | |||
| 28c965d653 | |||
| 4b689cb94e | |||
| c3f38fb2c9 | |||
| 239b5d3e8a | |||
| 7694829dd6 | |||
| d7921168cb | |||
| 9745190ee4 | |||
| b5435643da | |||
| af631c86f1 | |||
| 5eb36a6cb7 | |||
| 6f273305df | |||
| 6d292a11cd | |||
| 89a762e2f5 | |||
| f9b617dd69 | |||
| 7fea7d58f0 | |||
| f16a9fb331 | |||
| 777c31b420 | |||
| 229daabb34 | |||
| d0ebffd056 | |||
| 3feda151c5 | |||
| d41798ac23 | |||
| eb314afda5 | |||
| f377820894 | |||
| 8933896c5c | |||
| 88a1303f73 | |||
| 167713bb14 | |||
| 7c28c7f72b | |||
| b21b2440f7 | |||
| 63d550ca63 | |||
| 8e1744c6b1 | |||
| 0ed826fb5d | |||
| d47a3e064e | |||
| 501ea34a54 | |||
| b60ad12cf2 | |||
| ef2036b75d | |||
| c38bebb49d | |||
| 02d7c47c40 | |||
| efe0d64f06 | |||
| bd69e471f7 | |||
| bdd74e5b16 | |||
| 32702929a9 | |||
| b4de369ca8 | |||
| ccb207abeb | |||
| 841647c06c | |||
| 23d061b387 | |||
| a5249ecc7c | |||
| 0e730f4203 | |||
| bc8c14c88d | |||
| 5be33d045f | |||
| d19dd5a404 | |||
| b1f1ea6ef0 | |||
| 15e4520213 | |||
| 0904253cc6 | |||
| 318e626e78 | |||
| 0bf9ba2e18 | |||
| 9f28fe5803 | |||
| ab1fddf20c | |||
| ff79d9e70d | |||
| 050fd9faf6 | |||
| 0128718ba7 | |||
| 037056156e | |||
| d9692c7bbd | |||
| 0754feccae | |||
| e8fd2f7c5b | |||
| 314f533f0b | |||
| 4e086e9267 | |||
| dde9837829 | |||
| 25700567c5 | |||
| c02241c752 | |||
| 38937f6880 | |||
| 0362bf8081 | |||
| 815822f6f8 | |||
| f9a6fd025a | |||
| 2291b8eff5 | |||
| 8a459056c5 | |||
| 9320918335 | |||
| 0d14500d5d | |||
| 42ef7cfdce | |||
| 0a680e977b | |||
| 19fd6895e7 | |||
| e3fcc70bb3 | |||
| 71d5cb4261 | |||
| deb17d109f | |||
| 760ddf5d85 | |||
| 5db83484f3 | |||
| 85208c4452 | |||
| df3b10b9a5 | |||
| c8a9b0ba3e | |||
| 2955ea70ab | |||
| 7ec2894147 | |||
| 6924f362ba | |||
| 31a3d8f7e0 | |||
| a293f5e747 | |||
| 2d3ea40a59 | |||
| 6861b3d052 | |||
| 3f9b3c6017 | |||
| 30720d3ca6 | |||
| 0c550312bb | |||
| 30eb6a60cd | |||
| 2737574b03 | |||
| d3c1a0233e | |||
| 6ced13e993 | |||
| ec7be28f2e | |||
| 018784e653 | |||
| 3c5407f5cf | |||
| 0da1621595 | |||
| 5b3e95acdf | |||
| 601742cf2c | |||
| e62eb72056 | |||
| 6cbe72118e | |||
| bb3509f99b | |||
| 430f3ed220 | |||
| e00dafe8ff | |||
| 137c0efdf0 | |||
| ffa2fdc700 | |||
| a9f452f5a7 | |||
| 1d2a33b1d7 | |||
| 493834b526 | |||
| 1918fda5a2 | |||
| 7038be2944 | |||
| 2fc584bdbd | |||
| 191bf8b2ff | |||
| 3085dbcc7f | |||
| 92bb2ef915 | |||
| 2ec5baa37c | |||
| 0fe3db9c99 | |||
| 317c987b08 | |||
| d7360f71ef | |||
| ab4f779573 | |||
| f04c669143 | |||
| 72d66ab127 | |||
| cc114afd15 | |||
| 7c16f85abc | |||
| 8dd10424b3 | |||
| 13edbf311e | |||
| e5b0d7983b | |||
| 3976b21907 | |||
| 87f1c0191d | |||
| 9e0f767a1d | |||
| 2353ee2ef8 | |||
| 6b9ecaeb3d | |||
| 1d6beb8235 | |||
| bde6a25063 | |||
| 273d058414 | |||
| 8548c07e3b | |||
| fa90afc42c | |||
| ceb049b317 | |||
| 2213c9e140 | |||
| 3b5b2b1182 | |||
| 12dd49c387 | |||
| 0318f33234 | |||
| c1dda4f987 | |||
| 61a23fe978 | |||
| 2f57632479 | |||
| 17555ece11 | |||
| 16adc3efda | |||
| 3c22a458b2 | |||
| 3c111bd3a8 | |||
| 0a633ddcfb | |||
| 0b53cb5e51 | |||
| 5cfb1a62d7 | |||
| 373d1a9738 | |||
| 83f82d66d9 | |||
| 5a3bb437aa | |||
| e8b96eb649 | |||
| a42418f814 | |||
| 699de573f6 | |||
| a2af30b703 | |||
| 2e5db7af04 | |||
| f9c4c25874 | |||
| 503d76f3c7 | |||
| 11ee0bf1a3 | |||
| ac37f87793 | |||
| 4847725d3a | |||
| f6db3489b8 | |||
| 9de2307c64 | |||
| 6203a1c18b | |||
| 699e77d960 | |||
| 1f095ce6ac | |||
| 675f13abb8 | |||
| 58416e1994 | |||
| 062201f092 | |||
| aca6523333 | |||
| 10a81dcbd5 | |||
| 68ff5bf836 | |||
| 4fefe22a90 | |||
| 2b6457e840 | |||
| 5ea7cc4ca4 | |||
| 542b92301a | |||
| 0c8771e3eb | |||
| c82b986aab | |||
| 92c5a02f30 | |||
| d575b8b96a | |||
| 8e7b83a55a | |||
| 3b815a9f24 | |||
| 0263bf8b12 | |||
| 199fac45ea | |||
| dc2fcf5ab4 | |||
| 1aaa102c06 | |||
| 32f114b235 | |||
| 053b22100b | |||
| b319bc1080 | |||
| e0735903b7 | |||
| 586029c92a | |||
| 1f89945c57 | |||
| f24f56549e | |||
| 207bc411ed | |||
| 1efde6b783 | |||
| 51d8b5290a | |||
| 2b0eab656d | |||
| cbc3b0b025 | |||
| 81daa7c559 | |||
| 97357c19b8 | |||
| f7ed86506b | |||
| 0cdf6657bf | |||
| 5c61333df0 | |||
| e5909c532d | |||
| a04a0f34af | |||
| 79b9bfe9a8 | |||
| 4192b7108e | |||
| e7592db963 | |||
| c857985a6d | |||
| e1cae3ed71 | |||
| 92696d4654 | |||
| ed970fc397 | |||
| eac05c610d | |||
| 6b9d8cd006 | |||
| b43f352707 | |||
| 812093455e | |||
| 7274ead169 | |||
| 86bef5a617 | |||
| 8adc07a03e | |||
| 160ae37d7b | |||
| 332b4a8246 | |||
| 85a07dc0dc | |||
| b9b6b55c29 | |||
| ee8cb12156 | |||
| 4157a5d746 | |||
| 4ea417cfc1 | |||
| 5109227e88 | |||
| ae6bc86bcb | |||
| 8098a31092 | |||
| f006a8595b | |||
| 8ef8109830 | |||
| eb9d082d17 | |||
| fd3351c028 | |||
| b7e5941a95 | |||
| 9d5272a0a5 | |||
| 628cab1b60 | |||
| b4d8733d18 | |||
| 0c810d62e2 | |||
| 4085136269 | |||
| fd294d2baa | |||
| 02f9ed5e53 | |||
| 177203a085 | |||
| eee6b8183a | |||
| 313d176848 | |||
| fddc0021d3 | |||
| 7a981e7456 | |||
| 760d57b113 | |||
| 7ce6904887 | |||
| 4b3018345b | |||
| e27ea63674 | |||
| b8d4f2f83e | |||
| d3bb507edc | |||
| 5a5d03b259 | |||
| 4db4f1f9d7 | |||
| f980a0bba0 | |||
| 9e7976df57 | |||
| 7148451b66 | |||
| fdd92f9d65 | |||
| 589fbbcd34 | |||
| f1d22d1684 | |||
| d84a409fc7 | |||
| 1a0753e739 | |||
| b110a5a429 | |||
| 54a9890130 | |||
| e55398e789 | |||
| 3b7487e97a | |||
| 7d8897cd9f | |||
| d2476ddb08 | |||
| 95c28a8d6d | |||
| fdcd787f91 | |||
| 772de900a1 | |||
| 5b8d774b7c | |||
| 5414b249a6 | |||
| f2f8d81498 | |||
| 3b90bbbe5d | |||
| 1bac1b928d | |||
| 3bde805f2c | |||
| 8828dd15cd | |||
| 07bd246e87 | |||
| 24786a443a | |||
| 03755d5eb1 | |||
| 0aa7ab596c | |||
| eda6c85fc0 | |||
| 696b75dfbd | |||
| f6760d3c65 | |||
| 9636572c7d | |||
| 1bead4712b | |||
| a2983eb54c | |||
| 349f55d360 | |||
| 38ee437cc9 | |||
| 8d8e5b587d | |||
| d9dea3d0f2 | |||
| b868d1a483 | |||
| 7ef9d935c6 | |||
| c7a716f981 | |||
| d25a643425 | |||
| d69189f12c | |||
| 2893f76e29 | |||
| e992cf4db8 | |||
| 4c63acc75a | |||
| 21aa700a86 | |||
| 8165033ea4 | |||
| 62172d224a | |||
| 9d3b7d38ab | |||
| f277172191 | |||
| f9ed774595 | |||
| c53cfd67c1 | |||
| e1b34a9ccf | |||
| d6a27c988c | |||
| 8a70f14743 | |||
| 02ea40b6b2 | |||
| 47dab22d57 | |||
| 676e793ef3 | |||
| dd45dba82c | |||
| 482fb58cbf | |||
| 8913879593 | |||
| 9a53917586 | |||
| ab61a98bea | |||
| 9f470f06e9 | |||
| 4cb52d31d5 | |||
| 6aed674ee1 | |||
| bcbd2b6007 | |||
| 76b28a6dbd | |||
| a154e95681 | |||
| 0ad67fe204 | |||
| 2bd8446960 | |||
| 257dd0e615 | |||
| c78d9a98ba | |||
| 7c50e2b5aa | |||
| 8466f9f398 | |||
| 22fd22fe74 | |||
| 98c8b1e7b8 | |||
| 74490eae3a | |||
| 20656805c1 | |||
| 6608a79769 | |||
| a70e63bb35 | |||
| 908ed35882 | |||
| 9d5f430119 | |||
| ede9f6f5a6 | |||
| 136ccf3593 | |||
| 9d66683528 | |||
| cf0eac2b23 | |||
| 6409646d57 | |||
| 605bdd7ca7 | |||
| 8e7d267549 | |||
| 190388cfe4 | |||
| 1d63733681 | |||
| 78758552b2 | |||
| 14c36bebe7 | |||
| 327f7b080a | |||
| 4f7db895e2 | |||
| 3b51c02873 | |||
| ebd6091a09 | |||
| 3b9a1d2ea8 | |||
| adb603b776 | |||
| 2c6866ad7f | |||
| 71c6774511 | |||
| 5f628d2c12 | |||
| 4dfdb9eb2e | |||
| 12d25eb710 | |||
| 9675c5b8d6 | |||
| 0df2dcfbd4 | |||
| 76f5849889 | |||
| 6413144c1c | |||
| 133a54fa17 | |||
| debd8f57da | |||
| 3ea146da14 | |||
| 722eaf3cd6 | |||
| 7191e03a80 | |||
| 0f6e570cc8 | |||
| 7fc1e776fd | |||
| a75d214dd5 | |||
| 19c8f188c7 | |||
| d42736bf22 | |||
| d2893f6826 | |||
| 07b2da4fe9 | |||
| 770a13ac35 | |||
| d9be3fe618 | |||
| 252459d5d3 | |||
| 7efdcd8f07 | |||
| 4f83b3b233 | |||
| c0352961a9 | |||
| dc0f710674 | |||
| 2e5d13bda5 | |||
| 2a1f15041e | |||
| a3fc07daf0 | |||
| 5b91065043 | |||
| e819e46116 | |||
| 39a478050a | |||
| 28947be9bc | |||
| 3de1f81eb1 | |||
| d1a5aa1f02 | |||
| a501cf703b | |||
| c65fa04666 | |||
| a538809db5 | |||
| 85faaa1ca7 | |||
| 103d96dc81 | |||
| df5ba68e94 | |||
| b7d9462e79 | |||
| 1e9d8fec42 |
@@ -0,0 +1,6 @@
|
|||||||
|
.idea/
|
||||||
|
.git/
|
||||||
|
.vs/
|
||||||
|
.vscode/
|
||||||
|
build/
|
||||||
|
node_modules/
|
||||||
+12
-5
@@ -1,5 +1,12 @@
|
|||||||
root = true
|
root = true
|
||||||
[*]
|
|
||||||
end_of_line = lf
|
[*]
|
||||||
insert_final_newline = true
|
indent_style = tab
|
||||||
indent_style = tab
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{yml, json, md}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|||||||
+91
-17
@@ -1,18 +1,92 @@
|
|||||||
EMAIL_USERNAME="youremail@gmail.com"
|
# ** All configuration variables are optional **
|
||||||
EMAIL_PASSWORD="secretpassword"
|
# Read https://github.com/jef/streetmerchant#customization for help on customizing this file
|
||||||
NOTIFICATION_TEST="false"
|
#############################################################################################
|
||||||
PAGE_TIMEOUT="30000"
|
|
||||||
RATE_LIMIT_TIMEOUT="5000"
|
ASCII_BANNER=""
|
||||||
SLACK_CHANNEL="SlackChannelName"
|
ASCII_COLOR=""
|
||||||
SLACK_TOKEN="slack-token"
|
AUTO_ADD_TO_CART=""
|
||||||
STORES="bestbuy,bandh,nvidia"
|
BROWSER_TRUSTED=""
|
||||||
PHONE_NUMBER="1234567890"
|
COUNTRY=""
|
||||||
PHONE_CARRIER="tmobile"
|
DESKTOP_NOTIFICATIONS=""
|
||||||
PUSHOVER_TOKEN="123pushover-token456"
|
DISCORD_NOTIFY_GROUP=""
|
||||||
PUSHOVER_USER="123pushover-user-key"
|
DISCORD_WEB_HOOK=""
|
||||||
OPEN_BROWSER="true"
|
EMAIL_PASSWORD=""
|
||||||
PLAY_SOUND="false"
|
EMAIL_TO=""
|
||||||
SCREENSHOT="true"
|
EMAIL_USERNAME=""
|
||||||
|
HEADLESS=""
|
||||||
|
IN_STOCK_WAIT_TIME=""
|
||||||
|
LOG_LEVEL=""
|
||||||
|
LOW_BANDWIDTH=""
|
||||||
|
MAX_PRICE_SERIES_3070=""
|
||||||
|
MAX_PRICE_SERIES_3080=""
|
||||||
|
MAX_PRICE_SERIES_3090=""
|
||||||
|
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=""
|
||||||
|
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_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_ACCESS_TOKEN=""
|
||||||
TELEGRAM_CHAT_ID="1234"
|
TELEGRAM_CHAT_ID=""
|
||||||
SHOW_ONLY_BRANDS="evga"
|
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=""
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
github: jef
|
github: jef
|
||||||
|
custom: ["https://www.paypal.me/jxf"]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
name: 🐛 Bug report
|
name: 🐛 Bug report
|
||||||
about: Report a bug for this project
|
about: Report a bug for this project
|
||||||
title: ''
|
title: ''
|
||||||
labels: 'bug'
|
labels: 'type: bug'
|
||||||
assignees: jef
|
assignees: jef
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
name: 🚀 Feature request
|
name: 🚀 Feature request
|
||||||
about: Suggest a feature for this project
|
about: Suggest a feature for this project
|
||||||
title: ''
|
title: ''
|
||||||
labels: 'enhancement'
|
labels: 'type: enhancement'
|
||||||
assignees: jef
|
assignees: jef
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: 🤔 Question
|
||||||
|
about: Open to all questions
|
||||||
|
title: ''
|
||||||
|
labels: 'type: question'
|
||||||
|
assignees: jef
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Description
|
||||||
|
|
||||||
|
<!-- Describe the feature here. -->
|
||||||
@@ -4,17 +4,11 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
labels:
|
|
||||||
- "dependencies"
|
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
labels:
|
|
||||||
- "dependencies"
|
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
labels:
|
|
||||||
- "dependencies"
|
|
||||||
|
|||||||
@@ -4,13 +4,26 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
cd:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: GoogleCloudPlatform/release-please-action@v2.4.1
|
- uses: GoogleCloudPlatform/release-please-action@v2.6.0
|
||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
release-type: node
|
release-type: simple
|
||||||
package-name: nvidia-snatcher
|
package-name: streetmerchant
|
||||||
|
- name: login into github package registry
|
||||||
|
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
|
||||||
|
- name: build latest docker image
|
||||||
|
if: ${{ steps.release.outputs.release_created }}
|
||||||
|
run: |
|
||||||
|
docker build \
|
||||||
|
-t "ghcr.io/${GITHUB_REPOSITORY}:${TAG_NAME}" \
|
||||||
|
-t "ghcr.io/${GITHUB_REPOSITORY}:latest" .
|
||||||
|
env:
|
||||||
|
TAG_NAME: ${{ steps.release.outputs.tag_name }}
|
||||||
|
- name: publish latest image
|
||||||
|
if: ${{ steps.release.outputs.release_created }}
|
||||||
|
run: docker push "ghcr.io/${GITHUB_REPOSITORY}"
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build-lint:
|
build-and-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2.1.1
|
- uses: actions/setup-node@v2.1.2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 14.15.0
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
@@ -23,3 +23,16 @@ jobs:
|
|||||||
npm ci
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
npm run lint
|
npm run lint
|
||||||
|
build-docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: dorny/paths-filter@v2.5.3
|
||||||
|
id: filter
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
docker:
|
||||||
|
- 'Dockerfile'
|
||||||
|
- name: Build image
|
||||||
|
if: steps.filter.outputs.docker == 'true'
|
||||||
|
run: docker build .
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
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}"
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
name: pr-lint
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: amannn/action-semantic-pull-request@v2.1.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
+8
-2
@@ -4,9 +4,15 @@
|
|||||||
build/
|
build/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
.env
|
.env*
|
||||||
|
.*env
|
||||||
|
!.env-example
|
||||||
success-*.png
|
success-*.png
|
||||||
|
|
||||||
*.wav
|
*.wav
|
||||||
*.mp3
|
*.mp3
|
||||||
*.flac
|
*.flac
|
||||||
|
*.exe
|
||||||
|
desktop.ini
|
||||||
|
|
||||||
|
twitch.json
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
14.11.0
|
14.15.0
|
||||||
|
|||||||
+306
-30
@@ -1,73 +1,349 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [1.4.0](https://www.github.com/jef/nvidia-snatcher/compare/v1.3.0...v1.4.0) (2020-09-19)
|
## [3.1.0](https://www.github.com/jef/streetmerchant/compare/v3.0.0...v3.1.0) (2020-11-22)
|
||||||
|
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
* **notification:** add mint mobile carrier ([#70](https://www.github.com/jef/nvidia-snatcher/issues/70)) ([8aba7ec](https://www.github.com/jef/nvidia-snatcher/commit/8aba7ecbdb0bfce06257b7b9066e8fccbd82e47e))
|
* **asus:** add backoff codes ([#790](https://www.github.com/jef/streetmerchant/issues/790)) ([501ea34](https://www.github.com/jef/streetmerchant/commit/501ea34a54e877600050d5a99fd3b71ec799e96a))
|
||||||
* **notification:** add pushover ([#55](https://www.github.com/jef/nvidia-snatcher/issues/55)) ([c85658b](https://www.github.com/jef/nvidia-snatcher/commit/c85658bf82fdf360e5e9d8345eaa846f0572e67c))
|
* **canadacomputers:** add ryzen 5000 series ([#842](https://www.github.com/jef/streetmerchant/issues/842)) ([6f27330](https://www.github.com/jef/streetmerchant/commit/6f273305df69ac7b420b5446b4c6824866821a7e))
|
||||||
* **notification:** add telegram ([#71](https://www.github.com/jef/nvidia-snatcher/issues/71)) ([393d5f6](https://www.github.com/jef/nvidia-snatcher/commit/393d5f689887bf1d6f30a37eea163b2e6bbd4efa))
|
* **coolmod:** add `maxPrice` ([#862](https://www.github.com/jef/streetmerchant/issues/862)) ([4b689cb](https://www.github.com/jef/streetmerchant/commit/4b689cb94e99b83c8829c11d1bfe4cd6db9fbd7a))
|
||||||
* **notification:** add telus sms ([6be74a1](https://www.github.com/jef/nvidia-snatcher/commit/6be74a19f3d3f999145d17ac8e91c59db2502071))
|
* **newegg-ca:** add big navi links ([#843](https://www.github.com/jef/streetmerchant/issues/843)) ([6d292a1](https://www.github.com/jef/streetmerchant/commit/6d292a11cd53bd3893d4a0ff5d13eb2ce3319faa))
|
||||||
* **store:** add amazon.ca, fix timeout ([#75](https://www.github.com/jef/nvidia-snatcher/issues/75)) ([d4de1a4](https://www.github.com/jef/nvidia-snatcher/commit/d4de1a4638e903eb9518354ab6fb2f8c4befc347))
|
* **notification:** add product link to email and telegram ([#816](https://www.github.com/jef/streetmerchant/issues/816)) ([777c31b](https://www.github.com/jef/streetmerchant/commit/777c31b420a38cab860d98bc6bd8b7ba990c55e7))
|
||||||
* webpage toggle, sound notification, fix evga links ([#52](https://www.github.com/jef/nvidia-snatcher/issues/52)) ([a217409](https://www.github.com/jef/nvidia-snatcher/commit/a21740942bbbbe967948062fa06cfc82c31eb755))
|
* **playstation:** add `outOfStock` label ([#812](https://www.github.com/jef/streetmerchant/issues/812)) ([eb314af](https://www.github.com/jef/streetmerchant/commit/eb314afda557369dd27266429ac991c47ecc6375))
|
||||||
|
* **store:** add `PlayStation` store ([#806](https://www.github.com/jef/streetmerchant/issues/806)) ([7c28c7f](https://www.github.com/jef/streetmerchant/commit/7c28c7f72b171ce914aba770d88e8b1213c41233))
|
||||||
|
* **store:** add 3070 models to pccomponentes & coolmod ([#820](https://www.github.com/jef/streetmerchant/issues/820)) ([d0ebffd](https://www.github.com/jef/streetmerchant/commit/d0ebffd056dc166e3557ccf694379bf8c10148b5))
|
||||||
|
* **store:** add amd rx 6000 series model ([#832](https://www.github.com/jef/streetmerchant/issues/832)) ([89a762e](https://www.github.com/jef/streetmerchant/commit/89a762e2f5cd2ebd56c2586b1ebead4171b67153))
|
||||||
|
* **store:** add captcha check to saturn and mediamarkt ([#876](https://www.github.com/jef/streetmerchant/issues/876)) ([2d01cfd](https://www.github.com/jef/streetmerchant/commit/2d01cfddff557f112c6d53473dad25eb299f2fc0))
|
||||||
|
* **store:** add corsair sfx PSUs ([#881](https://www.github.com/jef/streetmerchant/issues/881)) ([e552c91](https://www.github.com/jef/streetmerchant/commit/e552c9102dd9801dcfc35652f2aaa0b1eea18ebb))
|
||||||
|
* **store:** add topachat ([#776](https://www.github.com/jef/streetmerchant/issues/776)) ([c38bebb](https://www.github.com/jef/streetmerchant/commit/c38bebb49dbe8243d0e3f1205150a33f9ce745aa))
|
||||||
|
* **store:** add vsgamers ([#767](https://www.github.com/jef/streetmerchant/issues/767)) ([53739e0](https://www.github.com/jef/streetmerchant/commit/53739e05abf50bbaddb8079087339c9f353096c8))
|
||||||
|
* add amazon-fr to stores. ([#766](https://www.github.com/jef/streetmerchant/issues/766)) ([02d7c47](https://www.github.com/jef/streetmerchant/commit/02d7c47c4093ad71dfab31f93a9b1390f4cad8a0))
|
||||||
|
* **store:** support for canadacomputers ([#772](https://www.github.com/jef/streetmerchant/issues/772)) ([bd69e47](https://www.github.com/jef/streetmerchant/commit/bd69e471f7b47e7faf1d9858992d4157145518aa))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **amazon:** add 5800x and 5600x ([#802](https://www.github.com/jef/streetmerchant/issues/802)) ([167713b](https://www.github.com/jef/streetmerchant/commit/167713bb14080e5e1d2f77c7ee933918b6fd5cfc))
|
||||||
|
* **bestbuy-ca:** use proper selector ([#801](https://www.github.com/jef/streetmerchant/issues/801)) ([63d550c](https://www.github.com/jef/streetmerchant/commit/63d550ca63b9bfd534f37b7747a1fae057abedb4))
|
||||||
|
* **config:** correcting newline split for multiple user agents ([#824](https://www.github.com/jef/streetmerchant/issues/824)) ([f16a9fb](https://www.github.com/jef/streetmerchant/commit/f16a9fb331fd38590325f399bde369ffa17dbe10))
|
||||||
|
* **store:** generate links only for selected stores ([292e360](https://www.github.com/jef/streetmerchant/commit/292e3603fd527a4454639c9abb73bd80a8a95fae)), closes [#694](https://www.github.com/jef/streetmerchant/issues/694)
|
||||||
|
|
||||||
|
|
||||||
|
### Reverts
|
||||||
|
|
||||||
|
* correcting newline split for multiple user agents ([af631c8](https://www.github.com/jef/streetmerchant/commit/af631c86f1a74d810cabf2d0de1b7bb31d350095)), closes [#824](https://www.github.com/jef/streetmerchant/issues/824)
|
||||||
|
* pipeline changes ([efe0d64](https://www.github.com/jef/streetmerchant/commit/efe0d64f060e812fd9846073a13837a3f2a27862))
|
||||||
|
|
||||||
|
## [3.0.0](https://www.github.com/jef/streetmerchant/compare/v2.0.0...v3.0.0) (2020-11-12)
|
||||||
|
|
||||||
|
|
||||||
|
### ⚠ BREAKING CHANGES
|
||||||
|
|
||||||
|
* removed duplicated `Model`
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **amazon:** add more 3070s ([#719](https://www.github.com/jef/streetmerchant/issues/719)) ([dde9837](https://www.github.com/jef/streetmerchant/commit/dde9837829b9d52e43800a2ac826b5dd00f5a744))
|
||||||
|
* **coolmod:** add zen 3 ([#754](https://www.github.com/jef/streetmerchant/issues/754)) ([3270292](https://www.github.com/jef/streetmerchant/commit/32702929a97236d7dc51aa8f669140bc6d89aa9a))
|
||||||
|
* **discord:** add cart link to embed ([#762](https://www.github.com/jef/streetmerchant/issues/762)) ([ccb207a](https://www.github.com/jef/streetmerchant/commit/ccb207abeb43b8e85f32c5c0a7a02aa33b5cdd7c))
|
||||||
|
* **store:** support for kabum (amd and rtx 30 series) ([#727](https://www.github.com/jef/streetmerchant/issues/727)) ([23d061b](https://www.github.com/jef/streetmerchant/commit/23d061b387b540803a81212fee937d4c8c9b17ad))
|
||||||
|
* add option to disable auto add to cart ([#759](https://www.github.com/jef/streetmerchant/issues/759)) ([a5249ec](https://www.github.com/jef/streetmerchant/commit/a5249ecc7c3acc29a1f9d5285bd77397263cb135))
|
||||||
|
* fix metadata in logging, lint prettier, typed `Model`s ([#747](https://www.github.com/jef/streetmerchant/issues/747)) ([318e626](https://www.github.com/jef/streetmerchant/commit/318e626e78c18524c4d8624176ccb659c6b6d17c))
|
||||||
|
* **amazon-ca:** add ps5 ([#713](https://www.github.com/jef/streetmerchant/issues/713)) ([2570056](https://www.github.com/jef/streetmerchant/commit/25700567c57a303a9376351daf015741193350a3))
|
||||||
|
* **amd:** add 5950 config ([#685](https://www.github.com/jef/streetmerchant/issues/685)) ([31a3d8f](https://www.github.com/jef/streetmerchant/commit/31a3d8f7e068a17c72e0c296e176b93625bf9063))
|
||||||
|
* **amd:** add env vars and series filtering ([#696](https://www.github.com/jef/streetmerchant/issues/696)) ([df3b10b](https://www.github.com/jef/streetmerchant/commit/df3b10b9a5c2467e00cacb3ab93f818aafc95f02))
|
||||||
|
* **galaxus:** add zen 3 ([#729](https://www.github.com/jef/streetmerchant/issues/729)) ([4e086e9](https://www.github.com/jef/streetmerchant/commit/4e086e92675df97fe7f94c4e6d51b73d63e7effb))
|
||||||
|
* **mindfactory:** add ryzen 5900x, 5950x ([#720](https://www.github.com/jef/streetmerchant/issues/720)) ([0362bf8](https://www.github.com/jef/streetmerchant/commit/0362bf808198d47e6aaa4a4838251f870d6dce4a))
|
||||||
|
* **notification:** add philips hue ([#681](https://www.github.com/jef/streetmerchant/issues/681)) ([c8a9b0b](https://www.github.com/jef/streetmerchant/commit/c8a9b0ba3ed581a9fef7ee2b459b1de84d976ff0))
|
||||||
|
* **notification:** support for multiple phone numbers ([#738](https://www.github.com/jef/streetmerchant/issues/738)) ([9f28fe5](https://www.github.com/jef/streetmerchant/commit/9f28fe5803fc71bf64d303cd1e7d20d0be8fecac))
|
||||||
|
* **ps5:** add console and digital edition ([#709](https://www.github.com/jef/streetmerchant/issues/709)) ([42ef7cf](https://www.github.com/jef/streetmerchant/commit/42ef7cfdced8ae3bc4192e245469798324bc42d3))
|
||||||
|
* **store:** add `arlt` and `amd-de` ([#721](https://www.github.com/jef/streetmerchant/issues/721)) ([38937f6](https://www.github.com/jef/streetmerchant/commit/38937f6880fcffb3a56ef17acd278f7c2f8d251c))
|
||||||
|
* **store:** add `game` store, add ps5 for uk stores ([#736](https://www.github.com/jef/streetmerchant/issues/736)) ([0128718](https://www.github.com/jef/streetmerchant/commit/0128718ba76b0c431d790cea7dd2183d10a02278))
|
||||||
|
* **store:** add ps5 to german stores ([#715](https://www.github.com/jef/streetmerchant/issues/715)) ([2291b8e](https://www.github.com/jef/streetmerchant/commit/2291b8eff5b23613d1233cc4c3ead83a42286d85))
|
||||||
|
* **store:** add xbox series x and s ([#732](https://www.github.com/jef/streetmerchant/issues/732)) ([314f533](https://www.github.com/jef/streetmerchant/commit/314f533f0bab0a466a276c5895d2f00bf86741f4))
|
||||||
|
* **store:** add zen 3 to german stores ([#702](https://www.github.com/jef/streetmerchant/issues/702)) ([71d5cb4](https://www.github.com/jef/streetmerchant/commit/71d5cb426179f5e587adeba1ec60f9a9233ec7b6))
|
||||||
|
* **store:** add zen 3 to more stores ([#698](https://www.github.com/jef/streetmerchant/issues/698)) ([760ddf5](https://www.github.com/jef/streetmerchant/commit/760ddf5d8523e28e294146643dda16e105176dff))
|
||||||
|
* **store:** Adds AM3 to microcenter ([#707](https://www.github.com/jef/streetmerchant/issues/707)) ([8a45905](https://www.github.com/jef/streetmerchant/commit/8a459056c5ba8a5a90de55cfbb08c4c89ccb19d3))
|
||||||
|
* **target:** add additional selector for 'ship it' ([#737](https://www.github.com/jef/streetmerchant/issues/737)) ([ab1fddf](https://www.github.com/jef/streetmerchant/commit/ab1fddf20c3a735b746befda0e21462701882645))
|
||||||
|
* add production scripts and better `Dockerfile` ([0d14500](https://www.github.com/jef/streetmerchant/commit/0d14500d5d8b93204bb99baf34dc9de745ae645d)), closes [#710](https://www.github.com/jef/streetmerchant/issues/710)
|
||||||
|
* bring back ascii banner, but make it configurable ([#703](https://www.github.com/jef/streetmerchant/issues/703)) ([0a680e9](https://www.github.com/jef/streetmerchant/commit/0a680e977b7904e7f62a8c1c0f3d533329b23fb0))
|
||||||
|
* memoryexpress website support ([#717](https://www.github.com/jef/streetmerchant/issues/717)) ([c02241c](https://www.github.com/jef/streetmerchant/commit/c02241c7528656c2c2fba9befc36628b4db7befb))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **docker:** copy web directory ([#745](https://www.github.com/jef/streetmerchant/issues/745)) ([0754fec](https://www.github.com/jef/streetmerchant/commit/0754feccaea2ce2dd37e7caeed3fa0b53c0cdcb3))
|
||||||
|
* **walmart:** ps5 digital url ([#763](https://www.github.com/jef/streetmerchant/issues/763)) ([841647c](https://www.github.com/jef/streetmerchant/commit/841647c06c488cf6b9d6d6af3c3eb6c8dbadab7e))
|
||||||
|
* environment variables to match ryzen cpus ([5db8348](https://www.github.com/jef/streetmerchant/commit/5db83484f301d48509205d9d0b5146c5d7114d26))
|
||||||
|
* revert to 14.15.0 until 15 is stable for `tsc` ([2955ea7](https://www.github.com/jef/streetmerchant/commit/2955ea70ab59c1b0dd82ec506c7a03952f81ea01)), closes [#691](https://www.github.com/jef/streetmerchant/issues/691)
|
||||||
|
|
||||||
|
|
||||||
|
### Code Refactoring
|
||||||
|
|
||||||
|
* removed duplicated `Model` ([d19dd5a](https://www.github.com/jef/streetmerchant/commit/d19dd5a404f2a585dd80f4d23d0e3af2d435ae85))
|
||||||
|
|
||||||
|
## [2.0.0](https://www.github.com/jef/streetmerchant/compare/v1.7.0...v2.0.0) (2020-11-05)
|
||||||
|
|
||||||
|
|
||||||
|
### ⚠ BREAKING CHANGES
|
||||||
|
|
||||||
|
* update naming to `streetmerchant`
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **asus:** realtime api ([#675](https://www.github.com/jef/streetmerchant/issues/675)) ([018784e](https://www.github.com/jef/streetmerchant/commit/018784e653831103465e8278db4929e04c52397c))
|
||||||
|
* **newegg-ca:** realtime api ([#674](https://www.github.com/jef/streetmerchant/issues/674)) ([3c5407f](https://www.github.com/jef/streetmerchant/commit/3c5407f5cfc635ae989101131188e999faa01d3c))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **filterBrandsSeriesModels:** always loop all stores ([#680](https://www.github.com/jef/streetmerchant/issues/680)) ([6ced13e](https://www.github.com/jef/streetmerchant/commit/6ced13e993f7b30bbdda5dc7615e895bac3e4f77))
|
||||||
|
|
||||||
|
|
||||||
|
### Miscellaneous Chores
|
||||||
|
|
||||||
|
* update naming to `streetmerchant` ([3f9b3c6](https://www.github.com/jef/streetmerchant/commit/3f9b3c6017431074d59550a6cd61c80a8897a9ae))
|
||||||
|
|
||||||
|
## [1.7.0](https://www.github.com/jef/streetmerchant/compare/v1.6.0...v1.7.0) (2020-11-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add deprecation notices ([601742c](https://www.github.com/jef/streetmerchant/commit/601742cf2c0b5ccf0131e4c4e904ad4037d80a8d))
|
||||||
|
* newegg realtime api ([#664](https://www.github.com/jef/streetmerchant/issues/664)) ([5b3e95a](https://www.github.com/jef/streetmerchant/commit/5b3e95acdf2f427a6098f15b9fbe65e88354a678))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **banner:** add version to docker image ([#649](https://www.github.com/jef/streetmerchant/issues/649)) ([1d2a33b](https://www.github.com/jef/streetmerchant/commit/1d2a33b1d765fece9d1c9bf7d548818d1f0c8d92))
|
||||||
|
|
||||||
|
## [1.6.0](https://www.github.com/jef/streetmerchant/compare/v1.5.0...v1.6.0) (2020-10-29)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add series to Discord webhook ([#618](https://www.github.com/jef/streetmerchant/issues/618)) ([273d058](https://www.github.com/jef/streetmerchant/commit/273d05841451ed896f1d505bcd24f2230a143d3a))
|
||||||
|
* **api:** add rudimentary web control panel ([#183](https://www.github.com/jef/streetmerchant/issues/183)) ([373d1a9](https://www.github.com/jef/streetmerchant/commit/373d1a973865b14b5753517aa70eabf85b136d94))
|
||||||
|
* **store:** add founders editions to notebooksbilliger.de ([#593](https://www.github.com/jef/streetmerchant/issues/593)) ([2e5db7a](https://www.github.com/jef/streetmerchant/commit/2e5db7af04e6ce79660477d8deb6636ec2e7845e))
|
||||||
|
* **store:** add max price containers to multiple stores ([#579](https://www.github.com/jef/streetmerchant/issues/579)) ([f9c4c25](https://www.github.com/jef/streetmerchant/commit/f9c4c258748ffd3735f1e7385bde15b6112a1ca7))
|
||||||
|
* **store:** add new cards to german web shops ([#597](https://www.github.com/jef/streetmerchant/issues/597)) ([699de57](https://www.github.com/jef/streetmerchant/commit/699de573f6579b59ba2c65cc2bf4dd6ccba3c863))
|
||||||
|
* **store:** Add PCComponentes and Amazon-ES Stores. ([#558](https://www.github.com/jef/streetmerchant/issues/558)) ([062201f](https://www.github.com/jef/streetmerchant/commit/062201f092c7a271202f27e7297b8eb9d7269c02))
|
||||||
|
* **store:** support for azerty ([#557](https://www.github.com/jef/streetmerchant/issues/557)) ([58416e1](https://www.github.com/jef/streetmerchant/commit/58416e1994006cc2e4055937c675e0f9191f6339))
|
||||||
|
* **store:** support for coolmod ([#605](https://www.github.com/jef/streetmerchant/issues/605)) ([c1dda4f](https://www.github.com/jef/streetmerchant/commit/c1dda4f9871988fad43d79f3bfe65f7c7860b9f7))
|
||||||
|
* add `meta` to logger ([#437](https://www.github.com/jef/streetmerchant/issues/437)) ([ae6bc86](https://www.github.com/jef/streetmerchant/commit/ae6bc86bcb75c154a2a68adda324f34f18281700))
|
||||||
|
* add alternate.nl support ([#552](https://www.github.com/jef/streetmerchant/issues/552)) ([aca6523](https://www.github.com/jef/streetmerchant/commit/aca65233339ddbbcc1dbd06f9011d6d44c6650cf))
|
||||||
|
* add asus-de store and asus 3080 tuf/oc to amazon-de ([#436](https://www.github.com/jef/streetmerchant/issues/436)) ([b4d8733](https://www.github.com/jef/streetmerchant/commit/b4d8733d1823e2fa5d3a1b80d2d4218bfa737cd7))
|
||||||
|
* add caseking and proshop-de store ([#521](https://www.github.com/jef/streetmerchant/issues/521)) ([1aaa102](https://www.github.com/jef/streetmerchant/commit/1aaa102c06281b60da593d04ced01f8b20a37a3b))
|
||||||
|
* add coolblue store ([#482](https://www.github.com/jef/streetmerchant/issues/482)) ([5c61333](https://www.github.com/jef/streetmerchant/commit/5c61333df00c0c30f04e4aced01a498c5816ad58))
|
||||||
|
* add german stores ([#462](https://www.github.com/jef/streetmerchant/issues/462)) ([85a07dc](https://www.github.com/jef/streetmerchant/commit/85a07dc0dc6a8dfe2aba1d4ea3e4cde6ec083086))
|
||||||
|
* add incognito mode ([#534](https://www.github.com/jef/streetmerchant/issues/534)) ([2b6457e](https://www.github.com/jef/streetmerchant/commit/2b6457e8409658b843204fa0aeafb00d48f9e53e))
|
||||||
|
* add link series to error message for better context ([#265](https://www.github.com/jef/streetmerchant/issues/265)) ([332b4a8](https://www.github.com/jef/streetmerchant/commit/332b4a8246320e458729c0b58c310d290df12530))
|
||||||
|
* Add PagerDuty Integration ([#565](https://www.github.com/jef/streetmerchant/issues/565)) ([11ee0bf](https://www.github.com/jef/streetmerchant/commit/11ee0bf1a3e2d0d550d2731f9de9e178c382ea1f))
|
||||||
|
* add proshop-dk ([#524](https://www.github.com/jef/streetmerchant/issues/524)) ([dc2fcf5](https://www.github.com/jef/streetmerchant/commit/dc2fcf5ab4dba8be459bd5aa6a41e3e097205d45))
|
||||||
|
* add support for multiple browser user agents ([#547](https://www.github.com/jef/streetmerchant/issues/547)) ([10a81dc](https://www.github.com/jef/streetmerchant/commit/10a81dcbd54557652537cb641cbbd727d39e34e5))
|
||||||
|
* add uk stores ([#455](https://www.github.com/jef/streetmerchant/issues/455)) ([b9b6b55](https://www.github.com/jef/streetmerchant/commit/b9b6b55c29d11f48b683816e5b8c1cab127ed5fd))
|
||||||
|
* allow filtering per model by a specific series ([#595](https://www.github.com/jef/streetmerchant/issues/595)) ([a42418f](https://www.github.com/jef/streetmerchant/commit/a42418f814dcd91354c136288d4c6a24e03a168d))
|
||||||
|
* optional per store min and max page sleep time ([#576](https://www.github.com/jef/streetmerchant/issues/576)) ([503d76f](https://www.github.com/jef/streetmerchant/commit/503d76f3c7d01368fc978af4ab02924d3d036ac0))
|
||||||
|
* **notification:** add `to` field for email ([#327](https://www.github.com/jef/streetmerchant/issues/327)) ([8828dd1](https://www.github.com/jef/streetmerchant/commit/8828dd15cd08959cd434bd256e8eac474dd17c49))
|
||||||
|
* **store:** add ttl for `scan` ([#555](https://www.github.com/jef/streetmerchant/issues/555)) ([4847725](https://www.github.com/jef/streetmerchant/commit/4847725d3a54d2f4dd0c349ff0ad80eb4bc4e9e3))
|
||||||
|
* add rog strix oc to amazon-de ([#471](https://www.github.com/jef/streetmerchant/issues/471)) ([e5909c5](https://www.github.com/jef/streetmerchant/commit/e5909c532da1c8b731e9835bffd8f31b76550d4d))
|
||||||
|
* add support for specifying smtp server ([#458](https://www.github.com/jef/streetmerchant/issues/458)) ([160ae37](https://www.github.com/jef/streetmerchant/commit/160ae37d7bee4f0323cb939566d586f1300aece6))
|
||||||
|
* allow multiple microcenter locations ([#487](https://www.github.com/jef/streetmerchant/issues/487)) ([2b0eab6](https://www.github.com/jef/streetmerchant/commit/2b0eab656d81314ce7d05064662ec138407550c3))
|
||||||
|
* clear cookies and cache ([#515](https://www.github.com/jef/streetmerchant/issues/515)) ([1f89945](https://www.github.com/jef/streetmerchant/commit/1f89945c5746befb2131381a358efdf8ac530e0c)), closes [#417](https://www.github.com/jef/streetmerchant/issues/417)
|
||||||
|
* max price per series ([#451](https://www.github.com/jef/streetmerchant/issues/451)) ([8adc07a](https://www.github.com/jef/streetmerchant/commit/8adc07a03e411dd536bebfdc7270db4bbf8ddb34))
|
||||||
|
* mqtt alerts ([#538](https://www.github.com/jef/streetmerchant/issues/538)) ([68ff5bf](https://www.github.com/jef/streetmerchant/commit/68ff5bf836c63c8e14d02c06777e02e64a6a0f38))
|
||||||
|
* twitch chat notification, multiple telegram chat ids and german web shop overhaul ([#528](https://www.github.com/jef/streetmerchant/issues/528)) ([675f13a](https://www.github.com/jef/streetmerchant/commit/675f13abb892d1158c92c41e3d57049313a5e0b8))
|
||||||
|
* **docker:** add docker and publish images to ghcr ([#411](https://www.github.com/jef/streetmerchant/issues/411)) ([c857985](https://www.github.com/jef/streetmerchant/commit/c857985a6d3736287976caf5b173f19046306465))
|
||||||
|
* **notification:** add at&t prepaid carrier ([#425](https://www.github.com/jef/streetmerchant/issues/425)) ([eb9d082](https://www.github.com/jef/streetmerchant/commit/eb9d082d178a42e35789ba822cfae7b35c0413c1))
|
||||||
|
* **notification:** add pushover priority setting ([#186](https://www.github.com/jef/streetmerchant/issues/186)) ([f277172](https://www.github.com/jef/streetmerchant/commit/f2771721914a20619833df8ccb2ac44298687b4d))
|
||||||
|
* **notification:** add Twillio notification provider ([#344](https://www.github.com/jef/streetmerchant/issues/344)) ([f2f8d81](https://www.github.com/jef/streetmerchant/commit/f2f8d81498d1acfb9359f4a690962042ec20d166))
|
||||||
|
* **store:** add `pny` ([#295](https://www.github.com/jef/streetmerchant/issues/295)) ([f6760d3](https://www.github.com/jef/streetmerchant/commit/f6760d3c65d60eae9e4b1e0fdba34e814f446a4c))
|
||||||
|
* **store:** add 3090s to amazon-ca ([#274](https://www.github.com/jef/streetmerchant/issues/274)) ([e992cf4](https://www.github.com/jef/streetmerchant/commit/e992cf4db85f045fc8d03c9b93286fb72bad1061))
|
||||||
|
* **store:** add additional cards to all stores ([#286](https://www.github.com/jef/streetmerchant/issues/286)) ([d25a643](https://www.github.com/jef/streetmerchant/commit/d25a643425020fa3f7cd48972360ede17501afeb))
|
||||||
|
* **store:** add amazon cards and `cartUrl`s ([#284](https://www.github.com/jef/streetmerchant/issues/284)) ([d69189f](https://www.github.com/jef/streetmerchant/commit/d69189f12c893fb6d88b198d802ff8e36a69bc88))
|
||||||
|
* **store:** add asus strix oc to asus store ([#385](https://www.github.com/jef/streetmerchant/issues/385)) ([e55398e](https://www.github.com/jef/streetmerchant/commit/e55398e789d52def6e15d1e5e10f56cdf5ea5bea))
|
||||||
|
* **store:** add evga 3090 to newegg canada ([#396](https://www.github.com/jef/streetmerchant/issues/396)) ([313d176](https://www.github.com/jef/streetmerchant/commit/313d176848a25f183334db8926ac0ec445a2c481))
|
||||||
|
* **store:** add ftw3 ultra to microcenter ([#448](https://www.github.com/jef/streetmerchant/issues/448)) ([5109227](https://www.github.com/jef/streetmerchant/commit/5109227e8899f57b828b157309a76c397c872559))
|
||||||
|
* **store:** add gamestop ([#390](https://www.github.com/jef/streetmerchant/issues/390)) ([7148451](https://www.github.com/jef/streetmerchant/commit/7148451b66e97f4f7dcdcc86ce06ba8712211bd5))
|
||||||
|
* **store:** add models to bestbuy ([#421](https://www.github.com/jef/streetmerchant/issues/421)) ([4085136](https://www.github.com/jef/streetmerchant/commit/4085136269b00f6bc5c8414836de8310dfec4166))
|
||||||
|
* **store:** add rog-strix-3080 to newegg-ca ([#489](https://www.github.com/jef/streetmerchant/issues/489)) ([207bc41](https://www.github.com/jef/streetmerchant/commit/207bc411ed240cd9150e018b21e735ba08a4d134))
|
||||||
|
* add `norway` to `nvidia-api` ([#304](https://www.github.com/jef/streetmerchant/issues/304)) ([eda6c85](https://www.github.com/jef/streetmerchant/commit/eda6c85fc03a70c5933308e96c572a480bb6c8a0))
|
||||||
|
* configurable status code behaviours ([#340](https://www.github.com/jef/streetmerchant/issues/340)) ([3b7487e](https://www.github.com/jef/streetmerchant/commit/3b7487e97ac9d93344403f50153f2de6243b1f0d))
|
||||||
|
* enhanced lookup behaviour ([#270](https://www.github.com/jef/streetmerchant/issues/270)) ([b868d1a](https://www.github.com/jef/streetmerchant/commit/b868d1a4833a8ec5ac1c79481530d75cd0c4b01e))
|
||||||
|
* in stock wait time per link now ([c7a716f](https://www.github.com/jef/streetmerchant/commit/c7a716f981976a76afe61a4d985bd6fe4343595b))
|
||||||
|
* low bandwidth mode ([#294](https://www.github.com/jef/streetmerchant/issues/294)) ([0aa7ab5](https://www.github.com/jef/streetmerchant/commit/0aa7ab596c907ce72c188eb4b1acdee088307437))
|
||||||
|
* max price filtering ([#383](https://www.github.com/jef/streetmerchant/issues/383)) ([fd294d2](https://www.github.com/jef/streetmerchant/commit/fd294d2baa06a1c0a68852497889a0412dea492e))
|
||||||
|
* **store:** adds aorus master 3080 to newegg ([#402](https://www.github.com/jef/streetmerchant/issues/402)) ([fddc002](https://www.github.com/jef/streetmerchant/commit/fddc0021d36e4d0a9dacccc546da8260684f0eeb))
|
||||||
|
* retry logic for nvidia session token and adding to cart ([#347](https://www.github.com/jef/streetmerchant/issues/347)) ([1bac1b9](https://www.github.com/jef/streetmerchant/commit/1bac1b928d401a819698848f3367edf54836b26f))
|
||||||
|
* support for proxy server ([#352](https://www.github.com/jef/streetmerchant/issues/352)) ([fdcd787](https://www.github.com/jef/streetmerchant/commit/fdcd787f91f26229db23e2291e8922b947007902))
|
||||||
|
* **store:** nvidia debug card for "product details" page ([#337](https://www.github.com/jef/streetmerchant/issues/337)) ([5b8d774](https://www.github.com/jef/streetmerchant/commit/5b8d774b7c7d31d6ba6fc43be3ea7b16a87d2e49))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `amazon.{nl,de}` test urls ([#345](https://www.github.com/jef/streetmerchant/issues/345)) ([589fbbc](https://www.github.com/jef/streetmerchant/commit/589fbbcd34393ceb2bd7c0a8ac391c54e14a21be))
|
||||||
|
* `envOrNumber` behavior ([#364](https://www.github.com/jef/streetmerchant/issues/364)) ([7d8897c](https://www.github.com/jef/streetmerchant/commit/7d8897cd9fb9ae0db796fd85da3f2b9d1a9f73af))
|
||||||
|
* `nvidia-api` ([#314](https://www.github.com/jef/streetmerchant/issues/314)) ([8d8e5b5](https://www.github.com/jef/streetmerchant/commit/8d8e5b587d2279a95d3e7837a99bea8c5990a477))
|
||||||
|
* add `amazon-nl`, captcha `amazon-de`, add ftw3 `newegg` ([#293](https://www.github.com/jef/streetmerchant/issues/293)) ([a2983eb](https://www.github.com/jef/streetmerchant/commit/a2983eb54c419ba3a56abf80d316ea136a05e0fa))
|
||||||
|
* add status code `429` to bandh `backOffStatusCodes` ([#404](https://www.github.com/jef/streetmerchant/issues/404)) ([7a981e7](https://www.github.com/jef/streetmerchant/commit/7a981e745673f2b12d48d7eed71fc34a6e4ba5b2))
|
||||||
|
* add support for stores label text to have uppercase letters ([#526](https://www.github.com/jef/streetmerchant/issues/526)) ([5ea7cc4](https://www.github.com/jef/streetmerchant/commit/5ea7cc4ca45c506d2b98d4b643b44ca4ede1d7a9))
|
||||||
|
* asus store links ([#573](https://www.github.com/jef/streetmerchant/issues/573)) ([f6db348](https://www.github.com/jef/streetmerchant/commit/f6db3489b8b8a737dfc425880703928d5bc8916d))
|
||||||
|
* bestbuy label container selector precision ([#491](https://www.github.com/jef/streetmerchant/issues/491)) ([cbc3b0b](https://www.github.com/jef/streetmerchant/commit/cbc3b0b025469e9882ba8267f18f909c08c6c931))
|
||||||
|
* corrected norway locales ([#356](https://www.github.com/jef/streetmerchant/issues/356)) ([d2476dd](https://www.github.com/jef/streetmerchant/commit/d2476ddb08606545b32b9676e2d299d57ec5cb6a))
|
||||||
|
* cyclical dependencies ([ed970fc](https://www.github.com/jef/streetmerchant/commit/ed970fc397210eb6ff684c7e82c79eb685a5d0d9)), closes [#468](https://www.github.com/jef/streetmerchant/issues/468)
|
||||||
|
* denver `microcenter` name ([#296](https://www.github.com/jef/streetmerchant/issues/296)) ([349f55d](https://www.github.com/jef/streetmerchant/commit/349f55d3603517b5741fce6ac42b29141816ea79))
|
||||||
|
* dutch stores components ([#513](https://www.github.com/jef/streetmerchant/issues/513)) ([586029c](https://www.github.com/jef/streetmerchant/commit/586029c92aa19bdddcc85b7a837bb7a16bb1d28d))
|
||||||
|
* gamestop false positives ([#395](https://www.github.com/jef/streetmerchant/issues/395)) ([d3bb507](https://www.github.com/jef/streetmerchant/commit/d3bb507edca112124115ed88fb03cf14440d95ef))
|
||||||
|
* in stock wait time ([#325](https://www.github.com/jef/streetmerchant/issues/325)) ([07bd246](https://www.github.com/jef/streetmerchant/commit/07bd246e876cd27df1b5019af5ee8613bb5368f0)), closes [#315](https://www.github.com/jef/streetmerchant/issues/315)
|
||||||
|
* max price getter updated to match .env ([#516](https://www.github.com/jef/streetmerchant/issues/516)) ([32f114b](https://www.github.com/jef/streetmerchant/commit/32f114b23527ee247c84c081a2cd0264de3b4847)), closes [#514](https://www.github.com/jef/streetmerchant/issues/514) [#510](https://www.github.com/jef/streetmerchant/issues/510)
|
||||||
|
* page sleep ([#586](https://www.github.com/jef/streetmerchant/issues/586)) ([a2af30b](https://www.github.com/jef/streetmerchant/commit/a2af30b70334cdbbfa51140d5de23a2d6b8429c8)), closes [#594](https://www.github.com/jef/streetmerchant/issues/594) [#576](https://www.github.com/jef/streetmerchant/issues/576)
|
||||||
|
* remove 3090 drid for DK/FI regions ([#361](https://www.github.com/jef/streetmerchant/issues/361)) ([f1d22d1](https://www.github.com/jef/streetmerchant/commit/f1d22d1684c8e70f09acd9978e6ea802d7224c8b))
|
||||||
|
* trim strings from comma-separated values ([#472](https://www.github.com/jef/streetmerchant/issues/472)) ([f7ed865](https://www.github.com/jef/streetmerchant/commit/f7ed86506b4e76d5bc20787068be83a44ec485b5))
|
||||||
|
* typo in maxPrice for 3090 ([#496](https://www.github.com/jef/streetmerchant/issues/496)) ([e073590](https://www.github.com/jef/streetmerchant/commit/e0735903b7b4b0d542dbbd76b9a860b1eca24e96))
|
||||||
|
* update gigabyte model `vision oc` ([#550](https://www.github.com/jef/streetmerchant/issues/550)) ([4fefe22](https://www.github.com/jef/streetmerchant/commit/4fefe22a907094fa39af5b4f2e3f8f3fe6897115))
|
||||||
|
* update new additions with web panel and sleep operations ([#606](https://www.github.com/jef/streetmerchant/issues/606)) ([61a23fe](https://www.github.com/jef/streetmerchant/commit/61a23fe9782223dc067dbc8251c3b09adbca0a43))
|
||||||
|
* update pushbullet import to match package ([#637](https://www.github.com/jef/streetmerchant/issues/637)) ([d7360f7](https://www.github.com/jef/streetmerchant/commit/d7360f71ef1a076713246ad2832ca58e7163e492))
|
||||||
|
* **env:** default `LOG_LEVEL` ([9636572](https://www.github.com/jef/streetmerchant/commit/9636572c7de36f7ac6800ba31ac60fcd7bd2fd03))
|
||||||
|
* **notification:** discord false triggers ([#346](https://www.github.com/jef/streetmerchant/issues/346)) ([3b90bbb](https://www.github.com/jef/streetmerchant/commit/3b90bbbe5d751003a39823e9113eaee8cbfcf1a2))
|
||||||
|
* **notification:** sms subject output ([#298](https://www.github.com/jef/streetmerchant/issues/298)) ([03755d5](https://www.github.com/jef/streetmerchant/commit/03755d5eb117ac14797e0180c74f50b401e50cb5))
|
||||||
|
* **notifications:** twilio client creation ([#349](https://www.github.com/jef/streetmerchant/issues/349)) ([5414b24](https://www.github.com/jef/streetmerchant/commit/5414b249a6f938615cfad02ca22c171a5f86e127))
|
||||||
|
* **store:** gamestop `label.inStock` ([9e7976d](https://www.github.com/jef/streetmerchant/commit/9e7976df5778a953c4fb6ca7553773655c1f4127))
|
||||||
|
* **store:** pccomponents model normalization ([#563](https://www.github.com/jef/streetmerchant/issues/563)) ([699e77d](https://www.github.com/jef/streetmerchant/commit/699e77d960b17dcb50378975a1913b0badeabfcc))
|
||||||
|
* updating amazon test model card to an in stock product ([#492](https://www.github.com/jef/streetmerchant/issues/492)) ([81daa7c](https://www.github.com/jef/streetmerchant/commit/81daa7c5596ab23bd9e6aac29fa63ee09e136827))
|
||||||
|
* **config:** `MAX_PRICE` quotations ([#426](https://www.github.com/jef/streetmerchant/issues/426)) ([b7e5941](https://www.github.com/jef/streetmerchant/commit/b7e5941a9598a09afabbb79c5636b768345009a3))
|
||||||
|
* **store:** container names on `nvidia` ([#333](https://www.github.com/jef/streetmerchant/issues/333)) ([772de90](https://www.github.com/jef/streetmerchant/commit/772de900a1386e9635d139e152fe86366404ded4))
|
||||||
|
* **store:** update `inStock` and `maxPrice` for newegg, newegg-ca ([#433](https://www.github.com/jef/streetmerchant/issues/433)) ([628cab1](https://www.github.com/jef/streetmerchant/commit/628cab1b605e4363c8dd5ad43476292ecb12db74)), closes [#400](https://www.github.com/jef/streetmerchant/issues/400)
|
||||||
|
|
||||||
|
|
||||||
|
### Reverts
|
||||||
|
|
||||||
|
* reduce false-positive during ci/cd ([79b9bfe](https://www.github.com/jef/streetmerchant/commit/79b9bfe9a83858117f7a58b4b8b1a1569d80c442))
|
||||||
|
|
||||||
|
## [1.5.0](https://www.github.com/jef/streetmerchant/compare/v1.4.0...v1.5.0) (2020-09-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* filter models ([#261](https://www.github.com/jef/streetmerchant/issues/261)) ([e1b34a9](https://www.github.com/jef/streetmerchant/commit/e1b34a9ccfa45fa1a11da9af9074059b6084904b))
|
||||||
|
* **log:** colors for console logs ([#207](https://www.github.com/jef/streetmerchant/issues/207)) ([0ad67fe](https://www.github.com/jef/streetmerchant/commit/0ad67fe20453898ce0a6b5faff00062735411119))
|
||||||
|
* **notification:** add desktop notifications ([#140](https://www.github.com/jef/streetmerchant/issues/140)) ([722eaf3](https://www.github.com/jef/streetmerchant/commit/722eaf3cd680c4600b79f842c6c5acdb9e51ad71))
|
||||||
|
* **notification:** add pushbullet, add url with notifications ([#226](https://www.github.com/jef/streetmerchant/issues/226)) ([74490ea](https://www.github.com/jef/streetmerchant/commit/74490eae3ab30de7d7a708d5dd970e070f27f2ea))
|
||||||
|
* **notification:** twitter integration ([#224](https://www.github.com/jef/streetmerchant/issues/224)) ([908ed35](https://www.github.com/jef/streetmerchant/commit/908ed358826f9de530f5892ded1a54964a304d15))
|
||||||
|
* **store:** add `bannedSeller` label for stores ([#173](https://www.github.com/jef/streetmerchant/issues/173)) ([71c6774](https://www.github.com/jef/streetmerchant/commit/71c6774511f7ba13d34d2e40b69abf52d06e6225))
|
||||||
|
* **store:** add amazon-de ([#167](https://www.github.com/jef/streetmerchant/issues/167)) ([8a70f14](https://www.github.com/jef/streetmerchant/commit/8a70f147438584cc334710bc66220d05eb32fcbd))
|
||||||
|
* **store:** add bestbuy.ca ([#229](https://www.github.com/jef/streetmerchant/issues/229)) ([22fd22f](https://www.github.com/jef/streetmerchant/commit/22fd22fe743d3e286eae3430aecd6e7a0a5de8c0))
|
||||||
|
* **store:** add evga eu ([#172](https://www.github.com/jef/streetmerchant/issues/172)) ([605bdd7](https://www.github.com/jef/streetmerchant/commit/605bdd7ca73c585734f6c5df1a86f4fbfbff9163))
|
||||||
|
* **store:** add evga model ([#220](https://www.github.com/jef/streetmerchant/issues/220)) ([190388c](https://www.github.com/jef/streetmerchant/commit/190388cfe4a5e3f19abccd0ff786f654b9a04d2f))
|
||||||
|
* **store:** add microcenter store location config ([#215](https://www.github.com/jef/streetmerchant/issues/215)) ([d6a27c9](https://www.github.com/jef/streetmerchant/commit/d6a27c988c7b1011c7a10084d8283a60ed8aea5c))
|
||||||
|
* **stores:** add 3090 for bestbuy, newegg ([#249](https://www.github.com/jef/streetmerchant/issues/249)) ([dd45dba](https://www.github.com/jef/streetmerchant/commit/dd45dba82cb86f7e7664298dd202b93bbbd46d9f))
|
||||||
|
* **stores:** add 3090s for amazon-ca, bestbuy-ca, newegg-ca ([#258](https://www.github.com/jef/streetmerchant/issues/258)) ([482fb58](https://www.github.com/jef/streetmerchant/commit/482fb58cbfde6f95fb6f77de790d76e6aa2a5926))
|
||||||
|
* add chromium sandbox skipping ([#209](https://www.github.com/jef/streetmerchant/issues/209)) ([2065680](https://www.github.com/jef/streetmerchant/commit/20656805c1259637bb3a4db465a8d16d4780296a))
|
||||||
|
* deprecate nvidia (api), add 3080 add 3090 ([9f470f0](https://www.github.com/jef/streetmerchant/commit/9f470f06e9e9fb605d340c0b0f9016d7288e8c0b))
|
||||||
|
* invert logic ([#141](https://www.github.com/jef/streetmerchant/issues/141)) ([6608a79](https://www.github.com/jef/streetmerchant/commit/6608a79769ff03543ab4ed2f2cead3410d7d7e99))
|
||||||
|
* multiple discord roles and webhooks, qol for envs ([#260](https://www.github.com/jef/streetmerchant/issues/260)) ([8913879](https://www.github.com/jef/streetmerchant/commit/8913879593252c9c83020b2e2c46bad7537b2a20))
|
||||||
|
* **store:** add newegg.ca ([#160](https://www.github.com/jef/streetmerchant/issues/160)) ([76f5849](https://www.github.com/jef/streetmerchant/commit/76f584988979a40269fd3641e996800a63b4b163)), closes [#159](https://www.github.com/jef/streetmerchant/issues/159)
|
||||||
|
* **store:** add office depot ([#157](https://www.github.com/jef/streetmerchant/issues/157)) ([0df2dcf](https://www.github.com/jef/streetmerchant/commit/0df2dcfbd48235fba7126d96cd912634c5b4fdd9))
|
||||||
|
* **store:** add zotac store ([#214](https://www.github.com/jef/streetmerchant/issues/214)) ([7875855](https://www.github.com/jef/streetmerchant/commit/78758552b22e608dbdf3e76397f5b5efb893fef5))
|
||||||
|
* add delay on captcha to try and evade faster ([#119](https://www.github.com/jef/streetmerchant/issues/119)) ([4f83b3b](https://www.github.com/jef/streetmerchant/commit/4f83b3b233657841a4068a8ff9dd6c8dbff631c0))
|
||||||
|
* bestbuy bypass international splash, newegg add to cart ([#153](https://www.github.com/jef/streetmerchant/issues/153)) ([133a54f](https://www.github.com/jef/streetmerchant/commit/133a54fa170bb16dd26b0d72b1a02c56b3851b7f))
|
||||||
|
* card series filter, fix: newegg `oosLabels` ([#120](https://www.github.com/jef/streetmerchant/issues/120)) ([252459d](https://www.github.com/jef/streetmerchant/commit/252459d5d3de2b8cb25deee9ae318108e3dda2be))
|
||||||
|
* custom user agent ([#121](https://www.github.com/jef/streetmerchant/issues/121)) ([d9be3fe](https://www.github.com/jef/streetmerchant/commit/d9be3fe6183eaa9694b186c7a75e1f28bb31dace))
|
||||||
|
* include screenshot for emails + sms notifications ([#144](https://www.github.com/jef/streetmerchant/issues/144)) ([7191e03](https://www.github.com/jef/streetmerchant/commit/7191e03a80e577b59b2861289aa658cfa0ffc0fa))
|
||||||
|
* load puppeteer faster, run stores in parallel ([#83](https://www.github.com/jef/streetmerchant/issues/83)) ([d1a5aa1](https://www.github.com/jef/streetmerchant/commit/d1a5aa1f02ff0a8f293b93e3c078b5943908a95b))
|
||||||
|
* set country in config, login to nvidia when starting ([#162](https://www.github.com/jef/streetmerchant/issues/162)) ([ebd6091](https://www.github.com/jef/streetmerchant/commit/ebd6091a09fb5e52a66742767ae4b58323cd7447))
|
||||||
|
* temporarily pause requests if store has stock ([#147](https://www.github.com/jef/streetmerchant/issues/147)) ([6413144](https://www.github.com/jef/streetmerchant/commit/6413144c1cae89f33f852cc93870b407a784f2bb))
|
||||||
|
* update for complex add to cart, fix nvidia ([#108](https://www.github.com/jef/streetmerchant/issues/108)) ([3ea146d](https://www.github.com/jef/streetmerchant/commit/3ea146da14ea40d145ccfc05436beeb0a9fed8d9))
|
||||||
|
* **notification:** discord integration ([#82](https://www.github.com/jef/streetmerchant/issues/82)) ([a3fc07d](https://www.github.com/jef/streetmerchant/commit/a3fc07daf0a3f33f18e03d4cfc13d3477a9c4fa0))
|
||||||
|
* **scraping:** change lookup impl, add randomize sleep ([#110](https://www.github.com/jef/streetmerchant/issues/110)) ([dc0f710](https://www.github.com/jef/streetmerchant/commit/dc0f7106749b0afa0ff1c91cabb90b65be30e909))
|
||||||
|
* **store:** add adorama ([#104](https://www.github.com/jef/streetmerchant/issues/104)) ([5b91065](https://www.github.com/jef/streetmerchant/commit/5b910650430ad4806b22722efa9a013e72ea47e7))
|
||||||
|
* **store:** add asus ([#102](https://www.github.com/jef/streetmerchant/issues/102)) ([a501cf7](https://www.github.com/jef/streetmerchant/commit/a501cf703bb05f47af6240a4b16a3dc4dcf3baf5))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **store:** adorama captcha config ([#234](https://www.github.com/jef/streetmerchant/issues/234)) ([9a53917](https://www.github.com/jef/streetmerchant/commit/9a539175860f98de3b023009f751e59d94f0aaef))
|
||||||
|
* color logs and notification ([76b28a6](https://www.github.com/jef/streetmerchant/commit/76b28a6dbdf5480c12a8c82b031c3f2880d17b11))
|
||||||
|
* **notification:** change discord ping visibility ([#168](https://www.github.com/jef/streetmerchant/issues/168)) ([9675c5b](https://www.github.com/jef/streetmerchant/commit/9675c5b8d61226db4652964e7f1e7399bb82d04e))
|
||||||
|
* **store:** bandh removed cards ([#201](https://www.github.com/jef/streetmerchant/issues/201)) ([6409646](https://www.github.com/jef/streetmerchant/commit/6409646d57bf2b2bb5a4bcf8239740abed8edafb))
|
||||||
|
* `rateLimitTimeout` not being defaulted ([#106](https://www.github.com/jef/streetmerchant/issues/106)) ([28947be](https://www.github.com/jef/streetmerchant/commit/28947be9bc8981d7a45a5d0e69c18d039fcd9ed3))
|
||||||
|
* check response for rate limiting ([#58](https://www.github.com/jef/streetmerchant/issues/58)) ([#98](https://www.github.com/jef/streetmerchant/issues/98)) ([b7d9462](https://www.github.com/jef/streetmerchant/commit/b7d9462e794ef3961fb57c79ef8f66e77d25d20a))
|
||||||
|
* keep single `Store` from draining ([e819e46](https://www.github.com/jef/streetmerchant/commit/e819e46116d4e0b067a59791094b5cfbd2d7cd45))
|
||||||
|
* memory leak due to adblocker ([#139](https://www.github.com/jef/streetmerchant/issues/139)) ([0f6e570](https://www.github.com/jef/streetmerchant/commit/0f6e570cc817dfc10bcddc5743a0faf3b1489270))
|
||||||
|
* **nvidia:** false positives ([#132](https://www.github.com/jef/streetmerchant/issues/132)) ([a75d214](https://www.github.com/jef/streetmerchant/commit/a75d214dd555d5e0388cb54b15be324cc25b6a15))
|
||||||
|
* newegg out-of-stock ([#124](https://www.github.com/jef/streetmerchant/issues/124)) ([770a13a](https://www.github.com/jef/streetmerchant/commit/770a13ac3559401b430547908d1df014582c1e37))
|
||||||
|
* newegg out-of-stock labels ([#134](https://www.github.com/jef/streetmerchant/issues/134)) ([19c8f18](https://www.github.com/jef/streetmerchant/commit/19c8f188c796258c469c2b4c6461fc5da3907a47))
|
||||||
|
* **notification:** wrong condition for sounds playing ([#91](https://www.github.com/jef/streetmerchant/issues/91)) ([103d96d](https://www.github.com/jef/streetmerchant/commit/103d96dc81d6fd097fcdbed5bdd7487d7d73bf6e))
|
||||||
|
* **store:** false positives for nvidia. ([#85](https://www.github.com/jef/streetmerchant/issues/85)) ([c65fa04](https://www.github.com/jef/streetmerchant/commit/c65fa04666775060532e28076a0b4af50f8dd30b))
|
||||||
|
|
||||||
|
## [1.4.0](https://www.github.com/jef/streetmerchant/compare/v1.3.0...v1.4.0) (2020-09-19)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **notification:** add mint mobile carrier ([#70](https://www.github.com/jef/streetmerchant/issues/70)) ([8aba7ec](https://www.github.com/jef/streetmerchant/commit/8aba7ecbdb0bfce06257b7b9066e8fccbd82e47e))
|
||||||
|
* **notification:** add pushover ([#55](https://www.github.com/jef/streetmerchant/issues/55)) ([c85658b](https://www.github.com/jef/streetmerchant/commit/c85658bf82fdf360e5e9d8345eaa846f0572e67c))
|
||||||
|
* **notification:** add telegram ([#71](https://www.github.com/jef/streetmerchant/issues/71)) ([393d5f6](https://www.github.com/jef/streetmerchant/commit/393d5f689887bf1d6f30a37eea163b2e6bbd4efa))
|
||||||
|
* **notification:** add telus sms ([6be74a1](https://www.github.com/jef/streetmerchant/commit/6be74a19f3d3f999145d17ac8e91c59db2502071))
|
||||||
|
* **store:** add amazon.ca, fix timeout ([#75](https://www.github.com/jef/streetmerchant/issues/75)) ([d4de1a4](https://www.github.com/jef/streetmerchant/commit/d4de1a4638e903eb9518354ab6fb2f8c4befc347))
|
||||||
|
* webpage toggle, sound notification, fix evga links ([#52](https://www.github.com/jef/streetmerchant/issues/52)) ([a217409](https://www.github.com/jef/streetmerchant/commit/a21740942bbbbe967948062fa06cfc82c31eb755))
|
||||||
|
|
||||||
|
|
||||||
### Performance Improvements
|
### Performance Improvements
|
||||||
|
|
||||||
* browser abstraction ([#68](https://www.github.com/jef/nvidia-snatcher/issues/68)) ([#81](https://www.github.com/jef/nvidia-snatcher/issues/81)) ([ebbdfe3](https://www.github.com/jef/nvidia-snatcher/commit/ebbdfe3f6378516112f4b6e004bbd6ccf13af685))
|
* browser abstraction ([#68](https://www.github.com/jef/streetmerchant/issues/68)) ([#81](https://www.github.com/jef/streetmerchant/issues/81)) ([ebbdfe3](https://www.github.com/jef/streetmerchant/commit/ebbdfe3f6378516112f4b6e004bbd6ccf13af685))
|
||||||
|
|
||||||
## [1.3.0](https://www.github.com/jef/nvidia-snatcher/compare/v1.2.0...v1.3.0) (2020-09-19)
|
## [1.3.0](https://www.github.com/jef/streetmerchant/compare/v1.2.0...v1.3.0) (2020-09-19)
|
||||||
|
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
* **logging:** add timestamp ([#48](https://www.github.com/jef/nvidia-snatcher/issues/48)) ([6c3cd01](https://www.github.com/jef/nvidia-snatcher/commit/6c3cd016850d03a6c6a894cab24ba2d3781a9af1))
|
* **logging:** add timestamp ([#48](https://www.github.com/jef/streetmerchant/issues/48)) ([6c3cd01](https://www.github.com/jef/streetmerchant/commit/6c3cd016850d03a6c6a894cab24ba2d3781a9af1))
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* **store:** amazon captcha false-positives ([#54](https://www.github.com/jef/nvidia-snatcher/issues/54)) ([5c9e0b6](https://www.github.com/jef/nvidia-snatcher/commit/5c9e0b6d06bd7e1223a7587fec067c8e79c9cfd6))
|
* **store:** amazon captcha false-positives ([#54](https://www.github.com/jef/streetmerchant/issues/54)) ([5c9e0b6](https://www.github.com/jef/streetmerchant/commit/5c9e0b6d06bd7e1223a7587fec067c8e79c9cfd6))
|
||||||
* evga xc3 ultra link ([#56](https://www.github.com/jef/nvidia-snatcher/issues/56)) ([d907092](https://www.github.com/jef/nvidia-snatcher/commit/d907092b443b056605e09cb2ca3e94e6ca811d9e))
|
* evga xc3 ultra link ([#56](https://www.github.com/jef/streetmerchant/issues/56)) ([d907092](https://www.github.com/jef/streetmerchant/commit/d907092b443b056605e09cb2ca3e94e6ca811d9e))
|
||||||
* screenshot size, add screenshot config setting ([#53](https://www.github.com/jef/nvidia-snatcher/issues/53)) ([7cfc7c7](https://www.github.com/jef/nvidia-snatcher/commit/7cfc7c74429c808fa14468cdd497eb9f9aeb922c))
|
* screenshot size, add screenshot config setting ([#53](https://www.github.com/jef/streetmerchant/issues/53)) ([7cfc7c7](https://www.github.com/jef/streetmerchant/commit/7cfc7c74429c808fa14468cdd497eb9f9aeb922c))
|
||||||
* sms carrier config, add google carrier ([#44](https://www.github.com/jef/nvidia-snatcher/issues/44)) ([971fec2](https://www.github.com/jef/nvidia-snatcher/commit/971fec20e441e2b12a38d5c8d17d2d4cb5e64d6b))
|
* sms carrier config, add google carrier ([#44](https://www.github.com/jef/streetmerchant/issues/44)) ([971fec2](https://www.github.com/jef/streetmerchant/commit/971fec20e441e2b12a38d5c8d17d2d4cb5e64d6b))
|
||||||
|
|
||||||
## [1.2.0](https://www.github.com/jef/nvidia-snatcher/compare/v1.1.0...v1.2.0) (2020-09-19)
|
## [1.2.0](https://www.github.com/jef/streetmerchant/compare/v1.1.0...v1.2.0) (2020-09-19)
|
||||||
|
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
* **ci:** add `npm run build` ([faad3e6](https://www.github.com/jef/nvidia-snatcher/commit/faad3e68efafaab135b77080b02af83429b6eca6))
|
* **ci:** add `npm run build` ([faad3e6](https://www.github.com/jef/streetmerchant/commit/faad3e68efafaab135b77080b02af83429b6eca6))
|
||||||
* **store:** microcenter ([#39](https://www.github.com/jef/nvidia-snatcher/issues/39)) ([edf17e9](https://www.github.com/jef/nvidia-snatcher/commit/edf17e926f3d186e7630da2834d78de3e540a956))
|
* **store:** microcenter ([#39](https://www.github.com/jef/streetmerchant/issues/39)) ([edf17e9](https://www.github.com/jef/streetmerchant/commit/edf17e926f3d186e7630da2834d78de3e540a956))
|
||||||
* add Amazon links ([#26](https://www.github.com/jef/nvidia-snatcher/issues/26)) ([f0560ce](https://www.github.com/jef/nvidia-snatcher/commit/f0560ce72bfbfdd6360b85e23edaa875d58f228f))
|
* add Amazon links ([#26](https://www.github.com/jef/streetmerchant/issues/26)) ([f0560ce](https://www.github.com/jef/streetmerchant/commit/f0560ce72bfbfdd6360b85e23edaa875d58f228f))
|
||||||
* add email test, fix memory leak ([#24](https://www.github.com/jef/nvidia-snatcher/issues/24)) ([a2fb973](https://www.github.com/jef/nvidia-snatcher/commit/a2fb97333c6eb81250b24ccb6859e9356acded21))
|
* add email test, fix memory leak ([#24](https://www.github.com/jef/streetmerchant/issues/24)) ([a2fb973](https://www.github.com/jef/streetmerchant/commit/a2fb97333c6eb81250b24ccb6859e9356acded21))
|
||||||
* more Best Buy AIBs ([#41](https://www.github.com/jef/nvidia-snatcher/issues/41)) ([7d7bd18](https://www.github.com/jef/nvidia-snatcher/commit/7d7bd18b4dd656ec01ef2fb2d8519e2a7f34ef70))
|
* more Best Buy AIBs ([#41](https://www.github.com/jef/streetmerchant/issues/41)) ([7d7bd18](https://www.github.com/jef/streetmerchant/commit/7d7bd18b4dd656ec01ef2fb2d8519e2a7f34ef70))
|
||||||
* page timeout ([#22](https://www.github.com/jef/nvidia-snatcher/issues/22)) ([643045c](https://www.github.com/jef/nvidia-snatcher/commit/643045c7e0158fb6526bd09427b96cce7958bcea))
|
* page timeout ([#22](https://www.github.com/jef/streetmerchant/issues/22)) ([643045c](https://www.github.com/jef/streetmerchant/commit/643045c7e0158fb6526bd09427b96cce7958bcea))
|
||||||
* slack integration ([#34](https://www.github.com/jef/nvidia-snatcher/issues/34)) ([c0a881a](https://www.github.com/jef/nvidia-snatcher/commit/c0a881a16ebb573bf35b7f29cb27e5b3c2e1fe78))
|
* slack integration ([#34](https://www.github.com/jef/streetmerchant/issues/34)) ([c0a881a](https://www.github.com/jef/streetmerchant/commit/c0a881a16ebb573bf35b7f29cb27e5b3c2e1fe78))
|
||||||
* sms notification for usa carriers ([#40](https://www.github.com/jef/nvidia-snatcher/issues/40)) ([5a3636b](https://www.github.com/jef/nvidia-snatcher/commit/5a3636bcb639bb33bc586af96264f5df2f3a8307))
|
* sms notification for usa carriers ([#40](https://www.github.com/jef/streetmerchant/issues/40)) ([5a3636b](https://www.github.com/jef/streetmerchant/commit/5a3636bcb639bb33bc586af96264f5df2f3a8307))
|
||||||
* update to check if FE in-stock via Digital River ([#29](https://www.github.com/jef/nvidia-snatcher/issues/29)) ([00ede13](https://www.github.com/jef/nvidia-snatcher/commit/00ede13501082f530ea672a349816be1d31621a8))
|
* update to check if FE in-stock via Digital River ([#29](https://www.github.com/jef/streetmerchant/issues/29)) ([00ede13](https://www.github.com/jef/streetmerchant/commit/00ede13501082f530ea672a349816be1d31621a8))
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* small error in `isOutOfStock` logic ([#33](https://www.github.com/jef/nvidia-snatcher/issues/33)) ([c2a210c](https://www.github.com/jef/nvidia-snatcher/commit/c2a210cc815c3aa06f6f14d33954f65577d95954))
|
* small error in `isOutOfStock` logic ([#33](https://www.github.com/jef/streetmerchant/issues/33)) ([c2a210c](https://www.github.com/jef/streetmerchant/commit/c2a210cc815c3aa06f6f14d33954f65577d95954))
|
||||||
|
|
||||||
## [1.1.0](https://www.github.com/jef/nvidia-snatcher/compare/v1.0.0...v1.1.0) (2020-09-18)
|
## [1.1.0](https://www.github.com/jef/streetmerchant/compare/v1.0.0...v1.1.0) (2020-09-18)
|
||||||
|
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
* add conventional commits ([#14](https://www.github.com/jef/nvidia-snatcher/issues/14)) ([eb4f5e0](https://www.github.com/jef/nvidia-snatcher/commit/eb4f5e034176a286eabe381c98ced77cd197d7fb))
|
* add conventional commits ([#14](https://www.github.com/jef/streetmerchant/issues/14)) ([eb4f5e0](https://www.github.com/jef/streetmerchant/commit/eb4f5e034176a286eabe381c98ced77cd197d7fb))
|
||||||
* add evga ([#17](https://www.github.com/jef/nvidia-snatcher/issues/17)) ([#18](https://www.github.com/jef/nvidia-snatcher/issues/18)) ([6c65032](https://www.github.com/jef/nvidia-snatcher/commit/6c6503219f7c188783c24a44f7052b276a4b39a3))
|
* add evga ([#17](https://www.github.com/jef/streetmerchant/issues/17)) ([#18](https://www.github.com/jef/streetmerchant/issues/18)) ([6c65032](https://www.github.com/jef/streetmerchant/commit/6c6503219f7c188783c24a44f7052b276a4b39a3))
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* exception handling `TimeoutError` ([#20](https://www.github.com/jef/nvidia-snatcher/issues/20)) ([#21](https://www.github.com/jef/nvidia-snatcher/issues/21)) ([00a0687](https://www.github.com/jef/nvidia-snatcher/commit/00a0687d3eba6a8fca871161b447529be00c8896))
|
* exception handling `TimeoutError` ([#20](https://www.github.com/jef/streetmerchant/issues/20)) ([#21](https://www.github.com/jef/streetmerchant/issues/21)) ([00a0687](https://www.github.com/jef/streetmerchant/commit/00a0687d3eba6a8fca871161b447529be00c8896))
|
||||||
|
|
||||||
## 1.0.0 (2020-09-18)
|
## 1.0.0 (2020-09-18)
|
||||||
|
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
* use ts, update cd, update `README` ([#12](https://www.github.com/jef/nvidia-snatcher/issues/12)) ([e9fc0bf](https://www.github.com/jef/nvidia-snatcher/commit/e9fc0bf5f770481d5e508d8b520e1020624e05d2))
|
* use ts, update cd, update `README` ([#12](https://www.github.com/jef/streetmerchant/issues/12)) ([e9fc0bf](https://www.github.com/jef/streetmerchant/commit/e9fc0bf5f770481d5e508d8b520e1020624e05d2))
|
||||||
|
|||||||
@@ -0,0 +1,76 @@
|
|||||||
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
In the interest of fostering an open and welcoming environment, we as
|
||||||
|
contributors and maintainers pledge to making participation in our project and
|
||||||
|
our community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
||||||
|
level of experience, education, socio-economic status, nationality, personal
|
||||||
|
appearance, race, religion, or sexual identity and orientation.
|
||||||
|
|
||||||
|
## Our Standards
|
||||||
|
|
||||||
|
Examples of behavior that contributes to creating a positive environment
|
||||||
|
include:
|
||||||
|
|
||||||
|
* Using welcoming and inclusive language
|
||||||
|
* Being respectful of differing viewpoints and experiences
|
||||||
|
* Gracefully accepting constructive criticism
|
||||||
|
* Focusing on what is best for the community
|
||||||
|
* Showing empathy towards other community members
|
||||||
|
|
||||||
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
|
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||||
|
advances
|
||||||
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing others' private information, such as a physical or electronic
|
||||||
|
address, without explicit permission
|
||||||
|
* Other conduct which could reasonably be considered inappropriate in a
|
||||||
|
professional setting
|
||||||
|
|
||||||
|
## Our Responsibilities
|
||||||
|
|
||||||
|
Project maintainers are responsible for clarifying the standards of acceptable
|
||||||
|
behavior and are expected to take appropriate and fair corrective action in
|
||||||
|
response to any instances of unacceptable behavior.
|
||||||
|
|
||||||
|
Project maintainers have the right and responsibility to remove, edit, or
|
||||||
|
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||||
|
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||||
|
permanently any contributor for other behaviors that they deem inappropriate,
|
||||||
|
threatening, offensive, or harmful.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct applies both within project spaces and in public spaces
|
||||||
|
when an individual is representing the project or its community. Examples of
|
||||||
|
representing a project or community include using an official project e-mail
|
||||||
|
address, posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event. Representation of a project may be
|
||||||
|
further defined and clarified by project maintainers.
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported by contacting the project team at jeffreylec@gmail.com. All
|
||||||
|
complaints will be reviewed and investigated and will result in a response that
|
||||||
|
is deemed necessary and appropriate to the circumstances. The project team is
|
||||||
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||||
|
Further details of specific enforcement policies may be posted separately.
|
||||||
|
|
||||||
|
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||||
|
faith may face temporary or permanent repercussions as determined by other
|
||||||
|
members of the project's leadership.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||||
|
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see
|
||||||
|
https://www.contributor-covenant.org/faq
|
||||||
+41
@@ -0,0 +1,41 @@
|
|||||||
|
FROM node:14.15.0-alpine3.12 AS builder
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.source=https://github.com/jef/streetmerchant
|
||||||
|
|
||||||
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
COPY package.json package.json
|
||||||
|
COPY package-lock.json package-lock.json
|
||||||
|
COPY tsconfig.json tsconfig.json
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
COPY src/ src/
|
||||||
|
RUN npm run build
|
||||||
|
RUN npm prune --production
|
||||||
|
|
||||||
|
FROM node:14.15.0-alpine3.12
|
||||||
|
|
||||||
|
RUN apk add --no-cache chromium
|
||||||
|
|
||||||
|
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser \
|
||||||
|
DOCKER=true
|
||||||
|
|
||||||
|
RUN addgroup -S appuser && adduser -S -g appuser appuser \
|
||||||
|
&& mkdir -p /home/appuser/Downloads /app \
|
||||||
|
&& chown -R appuser:appuser /home/appuser \
|
||||||
|
&& chown -R appuser:appuser /app
|
||||||
|
|
||||||
|
USER appuser
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --from=builder /build/node_modules/ node_modules/
|
||||||
|
COPY --from=builder /build/build/ build/
|
||||||
|
COPY web/ web/
|
||||||
|
COPY package.json package.json
|
||||||
|
COPY version.txt version.txt
|
||||||
|
|
||||||
|
ENTRYPOINT ["npm", "run"]
|
||||||
|
CMD ["start:production"]
|
||||||
@@ -1,137 +1,514 @@
|
|||||||
# nvidia-snatcher [](https://github.com/jef/nvidia-snatcher/actions?query=workflow%3Aci) [](https://discord.gg/Cyc7nrz)
|
<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">The world's easiest, most powerful stock checker
|
||||||
|
<br/><br/>
|
||||||
|
<a href="https://github.com/jef/streetmerchant/actions?query=workflow%3Aci"><img src="https://github.com/jef/streetmerchant/workflows/ci/badge.svg" /></a>
|
||||||
|
<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>
|
||||||
|
<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>
|
||||||
|
<br/><br/>
|
||||||
|
<a href="https://github.com/jef/streetmerchant#faq">FAQ</a> |
|
||||||
|
<a href="https://github.com/jef/streetmerchant/issues">Issues</a> |
|
||||||
|
<a href="https://github.com/jef/streetmerchant/wiki">Wiki</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
[FAQ](#FAQ) | [Issues](https://github.com/jef/nvidia-snatcher/issues) | [Wiki](https://github.com/jef/nvidia-snatcher/wiki)
|
## Features
|
||||||
|
|
||||||
The purpose of this bot is to get an Nvidia card. It tries multiple things to do that.
|
- Scrapes multiple websites for patterns of being stocked via API and Chromium
|
||||||
|
|
||||||
- Currently, `nvidia-snatcher` is not capable of purchasing a card for you
|
|
||||||
- Scrapes multiple websites for patterns of being stocked
|
|
||||||
- API requests are a work in progress (very soon)
|
|
||||||
- Opens browser when stock is available
|
- Opens browser when stock is available
|
||||||
- Sends an email to you when stock is avaiable (must have Gmail)
|
- Ability to send notifications when stock is available
|
||||||
|
|
||||||
<details>
|
> :point_right: The bot _will not_ automatically buy for you
|
||||||
<summary>What you may see if you're lucky</summary>
|
|
||||||
|
|
||||||
```sh
|
## Installation overview
|
||||||
2020-09-18T07:06:28.535Z info :: ✖ [nvidia] nvidia founders edition is still out of stock
|
|
||||||
2020-09-18T07:06:31.241Z info :: ✖ [nvidia] nvidia founders edition is still out of stock
|
|
||||||
2020-09-18T07:06:34.212Z info :: ✖ [bestbuy] nvidia founder edition is still out of stock
|
|
||||||
2020-09-18T07:06:39.878Z info :: ✖ [bandh] gigabyte black is still out of stock
|
|
||||||
2020-09-18T07:06:43.236Z info :: ✖ [bestbuy] gigabyte black is still out of stock
|
|
||||||
2020-09-18T07:06:43.318Z info :: ↗ trying stores again
|
|
||||||
2020-09-18T07:06:43.318Z info :: 🚀🚀🚀 [nvidia] nvidia founders edition IN STOCK 🚀🚀🚀
|
|
||||||
2020-09-18T07:06:43.318Z info :: https://store.nvidia.com/store/nvidia/en_US/buy/productID.5438481700/clearCart.yes/nextPage.QuickBuyCartPage
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
> :point_right: You may get false positives from time to time, so I apologize for that. The library currently waits for all calls to be completed before parsing, but sometimes this can have unknown behavior. Patience is a virtue :)
|
|
||||||
|
|
||||||
| | **Amazon** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** |
|
|
||||||
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
|
|
||||||
| **3070**| | | | | | | |
|
|
||||||
| **3080** | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` |
|
|
||||||
| **3090** | | | | | | | |
|
|
||||||
|
|
||||||
## Installation and prerequisites
|
|
||||||
|
|
||||||
Linux, macOS, and Windows are all capable operating systems.
|
Linux, macOS, and Windows are all capable operating systems.
|
||||||
|
|
||||||
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 `nvidia-snatcher` running!
|
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!
|
||||||
|
|
||||||
### Quick overview
|
### 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/)
|
- [Node.js 14](https://nodejs.org/en/)
|
||||||
- [git](https://git-scm.com/)
|
- [git](https://git-scm.com/)
|
||||||
- Clone this project `git clone https://github.com/jef/nvidia-snatcher.git`
|
- Clone this project `git clone https://github.com/jef/streetmerchant.git`
|
||||||
|
- To checkout a particular ref, use `git checkout <ref name>` after cloning
|
||||||
- Run `npm install`
|
- 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/)
|
- Copy `.env-example` to a new file `.env` and edit the `.env` file to your liking using
|
||||||
- More on this in [customization](#Customization)
|
your [favorite text editor](https://code.visualstudio.com/)
|
||||||
|
- More on this in [customization](#Customization)
|
||||||
- Run `npm run start` to start
|
- Run `npm run start` to start
|
||||||
|
|
||||||
At any point you want the program to stop, use <kbd>Ctrl</kbd> + <kbd>C</kbd>.
|
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/nvidia-snatcher/wiki) if you need more help with installation.
|
> :point_right: Please visit the [wiki](https://github.com/jef/streetmerchant/wiki) if you need more help with installation.
|
||||||
|
|
||||||
### Customization
|
### Installation: Docker
|
||||||
|
|
||||||
To customize `nvidia-snatcher`, make a copy of `.env-example` as `.env` and make any changes to your liking.
|
Available via GitHub Container Registry.
|
||||||
|
|
||||||
Here is a list of variables that you can use to customize your newly copied `.env` file:
|
| Tag | Note |
|
||||||
|
|
||||||
| **Environment variable** | **Description** |
|
|
||||||
|:---:|---|
|
|:---:|---|
|
||||||
| `EMAIL_USERNAME` | Gmail address (e.g., `jensen.robbed.us@gmail.com`); optional |
|
| `latest` | Latest release; stable |
|
||||||
| `EMAIL_PASSWORD` | Gmail password; see below if you have MFA; optional |
|
| `nightly` | Latest HEAD each day at midnight UTC; could be unstable |
|
||||||
| `NOTIFICATION_TEST` | Test all the notifications configured; optional, default: `false` |
|
|
||||||
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds (`0` for infinite); optional, default: `30000` |
|
```sh
|
||||||
| `PHONE_NUMBER` | 10 digit phone number (e.g., `1234567890`); optional, email configuration required |
|
# to run
|
||||||
| `PHONE_CARRIER` | [Supported carriers](#supported-carriers) for SMS; optional, email configuration required |
|
docker run --cap-add=SYS_ADMIN \
|
||||||
| `RATE_LIMIT_TIMEOUT` | Rate limit timeout for each full store cycle; optional, default: `5000` |
|
-it --rm --env-file ./.env \
|
||||||
| `SHOW_ONLY_BRANDS` | If set, will only show specified brands, seperated by `,` |
|
ghcr.io/jef/streetmerchant:nightly
|
||||||
| `SLACK_CHANNEL` | Slack channel for posting (e.g., `update`); optional |
|
|
||||||
| `SLACK_TOKEN` | Slack API token; optional |
|
# to test notifications
|
||||||
| `STORES` | [Supported stores](#supported-stores) you want to be scraped; optional, default: `nvidia` |
|
docker run --cap-add=SYS_ADMIN \
|
||||||
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found, default: `true` |
|
-it --rm --env-file ./.env \
|
||||||
| `PLAY_SOUND` | Play this sound notification if a card is found.; optional |
|
ghcr.io/jef/streetmerchant:nightly test:notification:production
|
||||||
| `SCREENSHOT` | Capture screenshot of page on successful hit; optional, default `true` |
|
```
|
||||||
| `TELEGRAM_ACCESS_TOKEN` | Telegram access token; optional |
|
|
||||||
| `TELEGRAM_CHAT_ID` | Telegram chat ID; optional |
|
### Developer notes
|
||||||
|
|
||||||
|
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_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 | Currently only used by Nvidia, default: `usa` |
|
||||||
|
| `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_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. |
|
||||||
|
| `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 (ES) | `amazon-es`|
|
||||||
|
| Amazon (FR) | `amazon-fr`|
|
||||||
|
| Amazon (NL) | `amazon-nl`|
|
||||||
|
| Amazon (UK) | `amazon-uk`|
|
||||||
|
| AMD | `amd`|
|
||||||
|
| AMD (DE) | `amd-de`|
|
||||||
|
| 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`|
|
||||||
|
| Computeruniverse (DE) | `computeruniverse` |
|
||||||
|
| Coolblue (NL) | `coolblue`|
|
||||||
|
| Coolmod (ES) | `coolmod`|
|
||||||
|
| Currys (UK) | `currys`|
|
||||||
|
| Cyberport (DE) | `cyberport` |
|
||||||
|
| eBuyer (UK) | `ebuyer`|
|
||||||
|
| EVGA | `evga`|
|
||||||
|
| EVGA (EU) | `evga-eu`|
|
||||||
|
| Galaxus (DE) | `galaxus`|
|
||||||
|
| Game (UK) | `game`|
|
||||||
|
| Gamestop | `gamestop`|
|
||||||
|
| Kabum (BR) | `kabum`|
|
||||||
|
| Mediamarkt (DE) | `mediamarkt`|
|
||||||
|
| 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`|
|
||||||
|
| Overclockers (UK) | `overclockers`|
|
||||||
|
| PCComponentes (ES) | `pccomponentes`|
|
||||||
|
| PlayStation | `playstation`|
|
||||||
|
| PNY | `pny`|
|
||||||
|
| Proshop (DE) | `proshop-de`|
|
||||||
|
| Proshop (DK) | `proshop-dk`|
|
||||||
|
| Saturn (DE) | `saturn`|
|
||||||
|
| Scan (UK) | `scan`|
|
||||||
|
| Target | `target`|
|
||||||
|
| Very (UK) | `very`|
|
||||||
|
| Walmart | `walmart`|
|
||||||
|
| 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` |
|
||||||
|
| `asus` | `dual`, `dual oc`, `strix`, `strix oc`, `tuf`, `tuf oc` |
|
||||||
|
| `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` | `xboxsx`, `xboxss` |
|
||||||
|
| `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` |
|
||||||
|
| `zotac` | `amp holo`, `amp extreme holo`, `trinity`, `trinity oc`, `twin edge`, `twin edge oc` |
|
||||||
|
|
||||||
|
</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.
|
> :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.
|
||||||
|
|
||||||
> :point_right: Free sounds available [here](https://freesound.org/home/). Place sounds into `resources/sounds/`
|
|
||||||
|
|
||||||
#### Supported stores
|
|
||||||
|
|
||||||
| **Stores** | **Environment variable** |
|
|
||||||
|:---:|:---:|
|
|
||||||
| Best Buy | `bestbuy`|
|
|
||||||
| Amazon.ca | `amazon-ca`|
|
|
||||||
| Amazon | `amazon`|
|
|
||||||
| B&H | `bandh`|
|
|
||||||
| EVGA | `evga`|
|
|
||||||
| Micro Center | `microcenter`|
|
|
||||||
| Newegg | `newegg`|
|
|
||||||
| Nvidia | `nvidia`|
|
|
||||||
|
|
||||||
#### Supported carriers
|
#### Supported carriers
|
||||||
|
|
||||||
| **Carrier** | **Environment variable** | **Notes** |
|
| Carrier | Environment variable | Notes |
|
||||||
|:---:|:---:|:---:|
|
|:---:|:---:|:---:|
|
||||||
| AT&T | `att`| |
|
| AT&T | `att` | |
|
||||||
|
| AT&T Prepaid | `attgo` | |
|
||||||
|
| Bell | `bell` | |
|
||||||
|
| Fido | `fido` | |
|
||||||
| Google | `google`| |
|
| Google | `google`| |
|
||||||
|
| Koodo | `koodo` | |
|
||||||
| Mint | `mint`| |
|
| Mint | `mint`| |
|
||||||
|
| Rogers | `rogers` | |
|
||||||
| Sprint | `sprint`| |
|
| Sprint | `sprint`| |
|
||||||
| Telus | `telus`| |
|
| Telus | `telus`| |
|
||||||
| T-Mobile | `tmobile`| |
|
| T-Mobile | `tmobile`| |
|
||||||
| Verizon | `verizon`| Works with Visible |
|
| 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
|
## 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: 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: Will this harm my computer?** No.
|
||||||
|
|
||||||
**Q: Have you gotten a card yet?** No. :cry:
|
**Q: Have you gotten a card yet?** YES! :tada: :rocket:
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Screenshot</summary>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
**Q: Will I get banned from of the stores?** Perhaps, but getting a card is a nice outcome.
|
**Q: Will I get banned from of the stores?** Perhaps, but getting a card is a nice outcome.
|
||||||
|
|
||||||
**Q: I got a problem and need help!** File an [issue](https://github.com/jef/nvidia-snatcher/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: 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: I'd love to contribute, how do I do that?** Make a [pull request](https://github.com/jef/nvidia-snatcher/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc)! All contributions are welcome.
|
**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 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/nvidia-snatcher/issues/11).
|
**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)
|
||||||
|
.
|
||||||
|
|
||||||
### Acknowledgements
|
**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.
|
||||||
|
|
||||||
Thanks to the great contributors that make this project possible
|
**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).
|
||||||
|
|
||||||
Special shout to initial developers:
|
**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).
|
||||||
|
|
||||||
- [@andirew](https://github.com/andirew)
|
**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.
|
||||||
- [@davidlbowman](https://github.com/davidlbowman)
|
|
||||||
- [@fuckingrobot](https://github.com/fuckingrobot)
|
<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>
|
||||||
- [@ioncaza](https://github.com/IonCaza)
|
|
||||||
- [@malbert69](https://github.com/malbert69)
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 358 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 865 KiB |
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"exec": "ts-node --files ./src/index",
|
||||||
|
"ext": "ts",
|
||||||
|
"watch": [
|
||||||
|
"src/",
|
||||||
|
".env"
|
||||||
|
]
|
||||||
|
}
|
||||||
Generated
+6001
-1101
File diff suppressed because it is too large
Load Diff
+61
-18
@@ -1,42 +1,85 @@
|
|||||||
{
|
{
|
||||||
"name": "nvidia-snatcher",
|
"name": "streetmerchant",
|
||||||
"version": "1.4.0",
|
|
||||||
"description": "🔮 For all your Nvidia needs",
|
"description": "🔮 For all your Nvidia needs",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf ./build && tsc",
|
"all": "npm run build && npm run lint",
|
||||||
|
"build": "tsc",
|
||||||
"lint": "xo",
|
"lint": "xo",
|
||||||
"lint:fix": "xo --fix",
|
"lint:fix": "xo --fix",
|
||||||
"start": "npm run build && node build/index.js"
|
"start": "npm run build && node build/index.js",
|
||||||
|
"start:dev": "nodemon --config nodemon.json",
|
||||||
|
"start:production": "node build/index.js",
|
||||||
|
"test:notification": "npm run build && node build/__test__/notification-test.js",
|
||||||
|
"test:notification:production": "node build/__test__/notification-test.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/jef/nvidia-snatcher.git"
|
"url": "git+https://github.com/jef/streetmerchant.git"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "jef",
|
"author": "jef",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/jef/nvidia-snatcher/issues"
|
"url": "https://github.com/jef/streetmerchant/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/jef/nvidia-snatcher#readme",
|
"homepage": "https://github.com/jef/streetmerchant#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@jef/pushbullet": "^2.4.3",
|
||||||
|
"@slack/web-api": "^5.13.0",
|
||||||
|
"chalk": "^4.1.0",
|
||||||
|
"cheerio": "^1.0.0-rc.3",
|
||||||
|
"discord-webhook-node": "^1.1.8",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"messaging-api-telegram": "^1.0.0",
|
"messaging-api-telegram": "^1.0.1",
|
||||||
"nodemailer": "^6.4.11",
|
"mqtt": "^4.2.5",
|
||||||
"open": "^7.2.1",
|
"node-fetch": "^2.6.1",
|
||||||
"puppeteer": "^5.3.0",
|
"node-hue-api": "^4.0.9",
|
||||||
|
"node-notifier": "^8.0.0",
|
||||||
|
"node-pagerduty": "^1.3.6",
|
||||||
|
"nodemailer": "^6.4.16",
|
||||||
|
"open": "^7.3.0",
|
||||||
|
"play-sound": "^1.1.3",
|
||||||
|
"puppeteer": "^5.5.0",
|
||||||
|
"puppeteer-extra": "^3.1.15",
|
||||||
|
"puppeteer-extra-plugin-adblocker": "^2.11.9",
|
||||||
|
"puppeteer-extra-plugin-block-resources": "^2.2.7",
|
||||||
|
"puppeteer-extra-plugin-stealth": "^2.6.5",
|
||||||
"pushover-notifications": "^1.2.2",
|
"pushover-notifications": "^1.2.2",
|
||||||
|
"twilio": "^3.52.0",
|
||||||
|
"twitch": "^4.3.0",
|
||||||
|
"twitch-auth": "^4.3.0",
|
||||||
|
"twitch-chat-client": "^4.3.0",
|
||||||
|
"twitter": "^1.7.1",
|
||||||
"winston": "^3.3.3"
|
"winston": "^3.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@slack/web-api": "^5.12.0",
|
"@types/async": "^3.2.4",
|
||||||
"@types/node": "^14.11.1",
|
"@types/cheerio": "^0.22.22",
|
||||||
|
"@types/node": "^14.14.9",
|
||||||
|
"@types/node-fetch": "^2.5.7",
|
||||||
|
"@types/node-notifier": "^8.0.0",
|
||||||
"@types/nodemailer": "^6.4.0",
|
"@types/nodemailer": "^6.4.0",
|
||||||
"@types/puppeteer": "^3.0.2",
|
"@types/puppeteer": "^5.4.0",
|
||||||
"play-sound": "^1.1.3",
|
"@types/twitter": "^1.7.0",
|
||||||
"rimraf": "^3.0.2",
|
"husky": "^4.3.0",
|
||||||
"typescript": "^4.0.2",
|
"nodemon": "^2.0.6",
|
||||||
"xo": "^0.33.1"
|
"ts-node": "^9.0.0",
|
||||||
|
"typescript": "^4.1.2",
|
||||||
|
"webpack": "^5.6.0",
|
||||||
|
"xo": "^0.35.0"
|
||||||
|
},
|
||||||
|
"xo": {
|
||||||
|
"prettier": true,
|
||||||
|
"rules": {
|
||||||
|
"sort-imports": "error",
|
||||||
|
"sort-keys": "error",
|
||||||
|
"sort-vars": "error"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "npm run all"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
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',
|
||||||
|
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);
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import {Page} from 'puppeteer';
|
||||||
|
import {PuppeteerExtraPluginAdblocker} from 'puppeteer-extra-plugin-adblocker';
|
||||||
|
|
||||||
|
export const adBlocker = new PuppeteerExtraPluginAdblocker({
|
||||||
|
blockTrackers: true
|
||||||
|
});
|
||||||
|
|
||||||
|
export async function disableBlockerInPage(page: Page) {
|
||||||
|
const blockerObject = await adBlocker.getBlocker();
|
||||||
|
if (blockerObject.isBlockingEnabled(page)) {
|
||||||
|
await blockerObject.disableBlockingInPage(page);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
import chalk from 'chalk';
|
||||||
|
import {readFileSync} from 'fs';
|
||||||
|
|
||||||
|
const version = readFileSync('version.txt', 'utf8');
|
||||||
|
|
||||||
|
export const banner = {
|
||||||
|
asciiVersion: `
|
||||||
|
██████ ▄▄▄█████▓ ██▀███ ▓█████ ▓█████▄▄▄█████▓ ███▄ ▄███▓▓█████ ██▀███ ▄████▄ ██░ ██ ▄▄▄ ███▄ █ ▄▄▄█████▓
|
||||||
|
▒██ ▒ ▓ ██▒ ▓▒▓██ ▒ ██▒▓█ ▀ ▓█ ▀▓ ██▒ ▓▒▓██▒▀█▀ ██▒▓█ ▀ ▓██ ▒ ██▒▒██▀ ▀█ ▓██░ ██▒▒████▄ ██ ▀█ █ ▓ ██▒ ▓▒
|
||||||
|
░ ▓██▄ ▒ ▓██░ ▒░▓██ ░▄█ ▒▒███ ▒███ ▒ ▓██░ ▒░▓██ ▓██░▒███ ▓██ ░▄█ ▒▒▓█ ▄ ▒██▀▀██░▒██ ▀█▄ ▓██ ▀█ ██▒▒ ▓██░ ▒░
|
||||||
|
▒ ██▒░ ▓██▓ ░ ▒██▀▀█▄ ▒▓█ ▄ ▒▓█ ▄░ ▓██▓ ░ ▒██ ▒██ ▒▓█ ▄ ▒██▀▀█▄ ▒▓▓▄ ▄██▒░▓█ ░██ ░██▄▄▄▄██ ▓██▒ ▐▌██▒░ ▓██▓ ░
|
||||||
|
▒██████▒▒ ▒██▒ ░ ░██▓ ▒██▒░▒████▒░▒████▒ ▒██▒ ░ ▒██▒ ░██▒░▒████▒░██▓ ▒██▒▒ ▓███▀ ░░▓█▒░██▓ ▓█ ▓██▒▒██░ ▓██░ ▒██▒ ░
|
||||||
|
▒ ▒▓▒ ▒ ░ ▒ ░░ ░ ▒▓ ░▒▓░░░ ▒░ ░░░ ▒░ ░ ▒ ░░ ░ ▒░ ░ ░░░ ▒░ ░░ ▒▓ ░▒▓░░ ░▒ ▒ ░ ▒ ░░▒░▒ ▒▒ ▓▒█░░ ▒░ ▒ ▒ ▒ ░░
|
||||||
|
░ ░▒ ░ ░ ░ ░▒ ░ ▒░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░
|
||||||
|
░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░
|
||||||
|
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
|
||||||
|
${version}`,
|
||||||
|
render(ascii: boolean, hexColor: string) {
|
||||||
|
return chalk
|
||||||
|
.hex(hexColor)
|
||||||
|
.bold(ascii ? this.asciiVersion : this.stringVersion);
|
||||||
|
},
|
||||||
|
stringVersion: `STREETMERCHANT
|
||||||
|
${version}`
|
||||||
|
};
|
||||||
+360
-29
@@ -1,60 +1,391 @@
|
|||||||
import {resolve} from 'path';
|
import {banner} from './banner';
|
||||||
import {config} from 'dotenv';
|
|
||||||
|
|
||||||
config({path: resolve(__dirname, '../.env')});
|
import {config as config_} from 'dotenv';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
|
config_({path: path.resolve(__dirname, '../.env')});
|
||||||
|
|
||||||
|
console.info(
|
||||||
|
banner.render(
|
||||||
|
envOrBoolean(process.env.ASCII_BANNER, false),
|
||||||
|
envOrString(process.env.BANNER_COLOR, '#808080')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns environment variable, given array, or default array.
|
||||||
|
*
|
||||||
|
* @param environment Interested environment variable.
|
||||||
|
* @param array Default array. If not set, is `[]`.
|
||||||
|
*/
|
||||||
|
function envOrArray(
|
||||||
|
environment: string | undefined,
|
||||||
|
array?: string[]
|
||||||
|
): string[] {
|
||||||
|
return (environment
|
||||||
|
? environment.includes('\n')
|
||||||
|
? environment.split('\n')
|
||||||
|
: environment.split(',')
|
||||||
|
: array ?? []
|
||||||
|
).map((s) => s.trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns environment variable, given boolean, or default boolean.
|
||||||
|
*
|
||||||
|
* @param environment Interested environment variable.
|
||||||
|
* @param boolean Default boolean. If not set, is `true`.
|
||||||
|
*/
|
||||||
|
function envOrBoolean(
|
||||||
|
environment: string | undefined,
|
||||||
|
boolean?: boolean
|
||||||
|
): boolean {
|
||||||
|
return environment ? environment === 'true' : boolean ?? true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns environment variable, given string, or default string.
|
||||||
|
*
|
||||||
|
* @param environment Interested environment variable.
|
||||||
|
* @param string Default string. If not set, is `''`.
|
||||||
|
*/
|
||||||
|
function envOrString(environment: string | undefined, string?: string): string {
|
||||||
|
return environment ? environment : string ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns environment variable, given number, or default number.
|
||||||
|
*
|
||||||
|
* @param environment Interested environment variable.
|
||||||
|
* @param number Default number. If not set, is `0`.
|
||||||
|
*/
|
||||||
|
function envOrNumber(environment: string | undefined, number?: number): number {
|
||||||
|
return environment ? Number(environment) : number ?? 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns environment variable, given number, or default number,
|
||||||
|
* while handling .env input errors for a Min/Max pair.
|
||||||
|
* .env errors handled:
|
||||||
|
* - Min/Max swapped (Min larger than Max, Max smaller than Min)
|
||||||
|
* - Min larger than default Max when no Max defined
|
||||||
|
* - Max smaller than default Min when no Min defined
|
||||||
|
*
|
||||||
|
* @param environmentMin Min environment variable of Min/Max pair.
|
||||||
|
* @param environmentMax Max environment variable of Min/Max pair.
|
||||||
|
* @param number Default number. If not set, is `0`.
|
||||||
|
*/
|
||||||
|
function envOrNumberMin(
|
||||||
|
environmentMin: string | undefined,
|
||||||
|
environmentMax: string | undefined,
|
||||||
|
number?: number
|
||||||
|
) {
|
||||||
|
if (environmentMin || environmentMax) {
|
||||||
|
if (environmentMin && environmentMax) {
|
||||||
|
return Number(
|
||||||
|
Number(environmentMin) < Number(environmentMax)
|
||||||
|
? environmentMin
|
||||||
|
: environmentMax
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (environmentMax) {
|
||||||
|
return Number(environmentMax) < (number ?? 0)
|
||||||
|
? Number(environmentMax)
|
||||||
|
: number ?? 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (environmentMin) {
|
||||||
|
return Number(environmentMin);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return number ?? 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns environment variable, given number, or default number,
|
||||||
|
* while handling .env input errors for a Min/Max pair.
|
||||||
|
* .env errors handled:
|
||||||
|
* - Min/Max swapped (Min larger than Max, Max smaller than Min)
|
||||||
|
* - Min larger than default Max when no Max defined
|
||||||
|
* - Max smaller than default Min when no Min defined
|
||||||
|
*
|
||||||
|
* @param environmentMin Min environment variable of Min/Max pair.
|
||||||
|
* @param environmentMax Max environment variable of Min/Max pair.
|
||||||
|
* @param number Default number. If not set, is `0`.
|
||||||
|
*/
|
||||||
|
function envOrNumberMax(
|
||||||
|
environmentMin: string | undefined,
|
||||||
|
environmentMax: string | undefined,
|
||||||
|
number?: number
|
||||||
|
) {
|
||||||
|
if (environmentMin || environmentMax) {
|
||||||
|
if (environmentMin && environmentMax) {
|
||||||
|
return Number(
|
||||||
|
Number(environmentMin) < Number(environmentMax)
|
||||||
|
? environmentMax
|
||||||
|
: environmentMax
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (environmentMin) {
|
||||||
|
return Number(environmentMin) > (number ?? 0)
|
||||||
|
? Number(environmentMin)
|
||||||
|
: number ?? 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (environmentMax) {
|
||||||
|
return Number(environmentMax);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return number ?? 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
const browser = {
|
||||||
|
isHeadless: envOrBoolean(process.env.HEADLESS),
|
||||||
|
isIncognito: envOrBoolean(process.env.INCOGNITO, false),
|
||||||
|
isTrusted: envOrBoolean(process.env.BROWSER_TRUSTED, false),
|
||||||
|
lowBandwidth: envOrBoolean(process.env.LOW_BANDWIDTH, false),
|
||||||
|
maxBackoff: envOrNumberMax(
|
||||||
|
process.env.PAGE_BACKOFF_MIN,
|
||||||
|
process.env.PAGE_BACKOFF_MAX,
|
||||||
|
3600000
|
||||||
|
),
|
||||||
|
maxSleep: envOrNumberMax(
|
||||||
|
process.env.PAGE_SLEEP_MIN,
|
||||||
|
process.env.PAGE_SLEEP_MAX,
|
||||||
|
10000
|
||||||
|
),
|
||||||
|
minBackoff: envOrNumberMin(
|
||||||
|
process.env.PAGE_BACKOFF_MIN,
|
||||||
|
process.env.PAGE_BACKOFF_MAX,
|
||||||
|
10000
|
||||||
|
),
|
||||||
|
minSleep: envOrNumberMin(
|
||||||
|
process.env.PAGE_SLEEP_MIN,
|
||||||
|
process.env.PAGE_SLEEP_MAX,
|
||||||
|
5000
|
||||||
|
),
|
||||||
|
open: envOrBoolean(process.env.OPEN_BROWSER)
|
||||||
|
};
|
||||||
|
|
||||||
|
const docker = envOrBoolean(process.env.DOCKER);
|
||||||
|
|
||||||
|
const logLevel = envOrString(process.env.LOG_LEVEL, 'info');
|
||||||
|
|
||||||
const notifications = {
|
const notifications = {
|
||||||
|
desktop: process.env.DESKTOP_NOTIFICATIONS === 'true',
|
||||||
|
discord: {
|
||||||
|
notifyGroup: envOrArray(process.env.DISCORD_NOTIFY_GROUP),
|
||||||
|
webHookUrl: envOrArray(process.env.DISCORD_WEB_HOOK)
|
||||||
|
},
|
||||||
email: {
|
email: {
|
||||||
username: process.env.EMAIL_USERNAME ?? '',
|
password: envOrString(process.env.EMAIL_PASSWORD),
|
||||||
password: process.env.EMAIL_PASSWORD ?? ''
|
smtpAddress: envOrString(process.env.SMTP_ADDRESS),
|
||||||
|
smtpPort: envOrNumber(process.env.SMTP_PORT, 25),
|
||||||
|
to: envOrString(
|
||||||
|
process.env.EMAIL_TO,
|
||||||
|
envOrString(process.env.EMAIL_USERNAME)
|
||||||
|
),
|
||||||
|
username: envOrString(process.env.EMAIL_USERNAME)
|
||||||
|
},
|
||||||
|
mqtt: {
|
||||||
|
broker: envOrString(process.env.MQTT_BROKER_ADDRESS),
|
||||||
|
clientId: envOrString(process.env.MQTT_CLIENT_ID),
|
||||||
|
password: envOrString(process.env.MQTT_PASSWORD),
|
||||||
|
port: envOrNumber(process.env.MQTT_BROKER_PORT, 1883),
|
||||||
|
qos: envOrNumber(process.env.MQTT_QOS, 0),
|
||||||
|
topic: envOrString(process.env.MQTT_TOPIC, 'streetmerchant/alert'),
|
||||||
|
username: envOrString(process.env.MQTT_USERNAME)
|
||||||
|
},
|
||||||
|
pagerduty: {
|
||||||
|
integrationKey: envOrString(process.env.PAGERDUTY_INTEGRATION_KEY),
|
||||||
|
severity: envOrString(process.env.PAGERDUTY_SEVERITY, 'info')
|
||||||
|
},
|
||||||
|
philips_hue: {
|
||||||
|
accessToken: envOrString(process.env.PHILIPS_HUE_CLOUD_ACCESS_TOKEN),
|
||||||
|
apiKey: envOrString(process.env.PHILIPS_HUE_API_KEY),
|
||||||
|
bridgeIp: envOrString(process.env.PHILIPS_HUE_LAN_BRIDGE_IP),
|
||||||
|
clientId: envOrString(process.env.PHILIPS_HUE_CLOUD_CLIENT_ID),
|
||||||
|
clientSecret: envOrString(process.env.PHILIPS_HUE_CLOUD_CLIENT_SECRET),
|
||||||
|
lightColor: envOrString(process.env.PHILIPS_HUE_LIGHT_COLOR),
|
||||||
|
lightIds: envOrString(process.env.PHILIPS_HUE_LIGHT_IDS),
|
||||||
|
lightPattern: envOrString(process.env.PHILIPS_HUE_LIGHT_PATTERN),
|
||||||
|
refreshToken: envOrString(process.env.PHILIPS_HUE_CLOUD_REFRESH_TOKEN),
|
||||||
|
remoteApiUsername: envOrString(process.env.PHILIPS_HUE_API_KEY)
|
||||||
},
|
},
|
||||||
phone: {
|
phone: {
|
||||||
availableCarriers: new Map([
|
availableCarriers: new Map([
|
||||||
['att', 'txt.att.net'],
|
['att', 'txt.att.net'],
|
||||||
|
['attgo', 'mms.att.net'],
|
||||||
|
['bell', 'txt.bell.ca'],
|
||||||
|
['fido', 'fido.ca'],
|
||||||
['google', 'msg.fi.google.com'],
|
['google', 'msg.fi.google.com'],
|
||||||
|
['koodo', 'msg.koodomobile.com'],
|
||||||
['mint', 'mailmymobile.net'],
|
['mint', 'mailmymobile.net'],
|
||||||
|
['rogers', 'pcs.rogers.com'],
|
||||||
['sprint', 'messaging.sprintpcs.com'],
|
['sprint', 'messaging.sprintpcs.com'],
|
||||||
['telus', 'msg.telus.com'],
|
['telus', 'msg.telus.com'],
|
||||||
['tmobile', 'tmomail.net'],
|
['tmobile', 'tmomail.net'],
|
||||||
['verizon', 'vtext.com']
|
['verizon', 'vtext.com'],
|
||||||
|
['virgin', 'vmobl.com'],
|
||||||
|
['virgin-ca', 'vmobile.ca']
|
||||||
]),
|
]),
|
||||||
carrier: process.env.PHONE_CARRIER ?? '',
|
carrier: envOrArray(process.env.PHONE_CARRIER),
|
||||||
number: process.env.PHONE_NUMBER ?? ''
|
number: envOrArray(process.env.PHONE_NUMBER)
|
||||||
},
|
},
|
||||||
playSound: process.env.PLAY_SOUND ?? 'false',
|
playSound: envOrString(process.env.PLAY_SOUND),
|
||||||
|
pushbullet: envOrString(process.env.PUSHBULLET),
|
||||||
pushover: {
|
pushover: {
|
||||||
token: process.env.PUSHOVER_TOKEN,
|
priority: envOrNumber(process.env.PUSHOVER_PRIORITY),
|
||||||
user: process.env.PUSHOVER_USER
|
token: envOrString(process.env.PUSHOVER_TOKEN),
|
||||||
|
username: envOrString(process.env.PUSHOVER_USER)
|
||||||
},
|
},
|
||||||
slack: {
|
slack: {
|
||||||
channel: process.env.SLACK_CHANNEL ?? '',
|
channel: envOrString(process.env.SLACK_CHANNEL),
|
||||||
token: process.env.SLACK_TOKEN ?? ''
|
token: envOrString(process.env.SLACK_TOKEN)
|
||||||
},
|
},
|
||||||
telegram: {
|
telegram: {
|
||||||
accessToken: process.env.TELEGRAM_ACCESS_TOKEN ?? '',
|
accessToken: envOrString(process.env.TELEGRAM_ACCESS_TOKEN),
|
||||||
chatId: process.env.TELEGRAM_CHAT_ID ?? ''
|
chatId: envOrArray(process.env.TELEGRAM_CHAT_ID)
|
||||||
},
|
},
|
||||||
test: process.env.NOTIFICATION_TEST ?? 'false'
|
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)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const nvidia = {
|
||||||
|
addToCardAttempts: envOrNumber(process.env.NVIDIA_ADD_TO_CART_ATTEMPTS, 10),
|
||||||
|
sessionTtl: envOrNumber(process.env.NVIDIA_SESSION_TTL, 60000)
|
||||||
};
|
};
|
||||||
|
|
||||||
const page = {
|
const page = {
|
||||||
capture: process.env.SCREENSHOT ?? 'true',
|
|
||||||
width: 1920,
|
|
||||||
height: 1080,
|
height: 1080,
|
||||||
navigationTimeout: Number(process.env.PAGE_TIMEOUT) ?? 30000,
|
inStockWaitTime: envOrNumber(process.env.IN_STOCK_WAIT_TIME),
|
||||||
userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'
|
screenshot: envOrBoolean(process.env.SCREENSHOT),
|
||||||
|
timeout: envOrNumber(process.env.PAGE_TIMEOUT, 30000),
|
||||||
|
userAgents: envOrArray(process.env.USER_AGENT, [
|
||||||
|
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'
|
||||||
|
]),
|
||||||
|
width: 1920
|
||||||
};
|
};
|
||||||
|
|
||||||
const openBrowser = process.env.OPEN_BROWSER ?? 'true';
|
const proxy = {
|
||||||
const rateLimitTimeout = Number(process.env.RATE_LIMIT_TIMEOUT) ?? 5000;
|
address: envOrString(process.env.PROXY_ADDRESS),
|
||||||
const stores = process.env.STORES ? process.env.STORES.split(',') : ['nvidia'];
|
port: envOrNumber(process.env.PROXY_PORT, 80)
|
||||||
const showOnlyBrands = process.env.SHOW_ONLY_BRANDS ? process.env.SHOW_ONLY_BRANDS.split(',') : [];
|
};
|
||||||
|
|
||||||
export const Config = {
|
// Check for deprecated configuration values
|
||||||
|
if (process.env.MAX_PRICE) {
|
||||||
|
console.warn(
|
||||||
|
'ℹ MAX_PRICE is deprecated, please use MAX_PRICE_SERIES_{{series}}'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const store = {
|
||||||
|
autoAddToCart: envOrBoolean(process.env.AUTO_ADD_TO_CART, true),
|
||||||
|
country: envOrString(process.env.COUNTRY, 'usa'),
|
||||||
|
maxPrice: {
|
||||||
|
series: {
|
||||||
|
3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070),
|
||||||
|
3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080),
|
||||||
|
3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090),
|
||||||
|
rx6800: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800),
|
||||||
|
rx6800xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800XT),
|
||||||
|
rx6900xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6900XT),
|
||||||
|
ryzen5600: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5600),
|
||||||
|
ryzen5800: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5800),
|
||||||
|
ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5900),
|
||||||
|
ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950),
|
||||||
|
sf: envOrNumber(process.env.MAX_PRICE_SERIES_CORSAIR_SF),
|
||||||
|
sonyps5c: -1,
|
||||||
|
sonyps5de: -1,
|
||||||
|
'test:series': -1,
|
||||||
|
xboxss: -1,
|
||||||
|
xboxsx: -1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
microCenterLocation: envOrArray(process.env.MICROCENTER_LOCATION, ['web']),
|
||||||
|
showOnlyBrands: envOrArray(process.env.SHOW_ONLY_BRANDS),
|
||||||
|
showOnlyModels: envOrArray(process.env.SHOW_ONLY_MODELS).map((entry) => {
|
||||||
|
const [name, series] = entry.match(/[^:]+/g) ?? [];
|
||||||
|
return {
|
||||||
|
name: envOrString(name),
|
||||||
|
series: envOrString(series)
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
showOnlySeries: envOrArray(process.env.SHOW_ONLY_SERIES, [
|
||||||
|
'3070',
|
||||||
|
'3080',
|
||||||
|
'3090',
|
||||||
|
'rx6800',
|
||||||
|
'rx6800xt',
|
||||||
|
'rx6900xt',
|
||||||
|
'ryzen5600',
|
||||||
|
'ryzen5800',
|
||||||
|
'ryzen5900',
|
||||||
|
'ryzen5950',
|
||||||
|
'sonyps5c',
|
||||||
|
'sonyps5de',
|
||||||
|
'xboxss',
|
||||||
|
'xboxsx'
|
||||||
|
]),
|
||||||
|
stores: envOrArray(process.env.STORES, ['nvidia']).map((entry) => {
|
||||||
|
const [name, minPageSleep, maxPageSleep] = entry.match(/[^:]+/g) ?? [];
|
||||||
|
return {
|
||||||
|
maxPageSleep: envOrNumberMax(
|
||||||
|
minPageSleep,
|
||||||
|
maxPageSleep,
|
||||||
|
browser.maxSleep
|
||||||
|
),
|
||||||
|
minPageSleep: envOrNumberMin(
|
||||||
|
minPageSleep,
|
||||||
|
maxPageSleep,
|
||||||
|
browser.minSleep
|
||||||
|
),
|
||||||
|
name: envOrString(name)
|
||||||
|
};
|
||||||
|
})
|
||||||
|
};
|
||||||
|
|
||||||
|
export const defaultStoreData = {
|
||||||
|
maxPageSleep: browser.maxSleep,
|
||||||
|
minPageSleep: browser.minSleep
|
||||||
|
};
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
browser,
|
||||||
|
docker,
|
||||||
|
logLevel,
|
||||||
notifications,
|
notifications,
|
||||||
rateLimitTimeout,
|
nvidia,
|
||||||
page,
|
page,
|
||||||
stores,
|
proxy,
|
||||||
openBrowser,
|
store
|
||||||
showOnlyBrands
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export function setConfig(newConfig: any) {
|
||||||
|
const writeConfig = config as any;
|
||||||
|
for (const key of Object.keys(newConfig)) {
|
||||||
|
writeConfig[key] = newConfig[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
+93
-26
@@ -1,43 +1,110 @@
|
|||||||
import {Config} from './config';
|
import {startAPIServer, stopAPIServer} from './web';
|
||||||
import {Stores} from './store/model';
|
import {Browser} from 'puppeteer';
|
||||||
import {Logger} from './logger';
|
import {adBlocker} from './adblocker';
|
||||||
import {sendNotification} from './notification';
|
import {config} from './config';
|
||||||
import {lookup} from './store';
|
import {getSleepTime} from './util';
|
||||||
import puppeteer from 'puppeteer';
|
import {logger} from './logger';
|
||||||
|
import puppeteer from 'puppeteer-extra';
|
||||||
|
import resourceBlock from 'puppeteer-extra-plugin-block-resources';
|
||||||
|
import stealthPlugin from 'puppeteer-extra-plugin-stealth';
|
||||||
|
import {storeList} from './store/model';
|
||||||
|
import {tryLookupAndLoop} from './store';
|
||||||
|
|
||||||
|
puppeteer.use(stealthPlugin());
|
||||||
|
if (config.browser.lowBandwidth) {
|
||||||
|
puppeteer.use(
|
||||||
|
resourceBlock({
|
||||||
|
blockedTypes: new Set(['image', 'font'] as const)
|
||||||
|
})
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
puppeteer.use(adBlocker);
|
||||||
|
}
|
||||||
|
|
||||||
|
let browser: Browser | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the bot.
|
* Starts the bot.
|
||||||
*/
|
*/
|
||||||
async function main() {
|
async function main() {
|
||||||
const results = [];
|
const args: string[] = [];
|
||||||
const browser = await puppeteer.launch();
|
|
||||||
|
|
||||||
for (const store of Stores) {
|
// Skip Chromium Linux Sandbox
|
||||||
Logger.debug(store.links);
|
// https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#setting-up-chrome-linux-sandbox
|
||||||
results.push(lookup(browser, store));
|
if (config.browser.isTrusted) {
|
||||||
|
args.push('--no-sandbox');
|
||||||
|
args.push('--disable-setuid-sandbox');
|
||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all(results);
|
// https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#tips
|
||||||
await browser.close();
|
if (config.docker) {
|
||||||
|
args.push('--disable-dev-shm-usage');
|
||||||
|
}
|
||||||
|
|
||||||
Logger.info('↗ trying stores again');
|
// Add the address of the proxy server if defined
|
||||||
setTimeout(main, Config.rateLimitTimeout);
|
if (config.proxy.address) {
|
||||||
|
args.push(
|
||||||
|
`--proxy-server=http://${config.proxy.address}:${config.proxy.port}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
await stop();
|
||||||
|
|
||||||
|
browser = await puppeteer.launch({
|
||||||
|
args,
|
||||||
|
defaultViewport: {
|
||||||
|
height: config.page.height,
|
||||||
|
width: config.page.width
|
||||||
|
},
|
||||||
|
headless: config.browser.isHeadless
|
||||||
|
});
|
||||||
|
|
||||||
|
for (const store of storeList.values()) {
|
||||||
|
logger.debug('store links', {meta: {links: store.links}});
|
||||||
|
if (store.setupAction !== undefined) {
|
||||||
|
store.setupAction(browser);
|
||||||
|
}
|
||||||
|
|
||||||
|
setTimeout(tryLookupAndLoop, getSleepTime(store), browser, store);
|
||||||
|
}
|
||||||
|
|
||||||
|
await startAPIServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
async function stop() {
|
||||||
* Send test email.
|
await stopAPIServer();
|
||||||
*/
|
|
||||||
if (Config.notifications.test === 'true') {
|
if (browser) {
|
||||||
sendNotification('test');
|
// Use temporary swap variable to avoid any race condition
|
||||||
|
const browserTemporary = browser;
|
||||||
|
browser = undefined;
|
||||||
|
await browserTemporary.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function stopAndExit() {
|
||||||
|
await stop();
|
||||||
|
// eslint-disable-next-line unicorn/no-process-exit
|
||||||
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Will continually run until user interferes.
|
* Will continually run until user interferes.
|
||||||
*/
|
*/
|
||||||
try {
|
async function loopMain() {
|
||||||
void main();
|
try {
|
||||||
} catch (error) {
|
await main();
|
||||||
// Ignoring errors; more than likely due to rate limits
|
} catch (error: unknown) {
|
||||||
Logger.error(error);
|
logger.error(
|
||||||
void main();
|
'✖ something bad happened, resetting streetmerchant in 5 seconds',
|
||||||
|
error
|
||||||
|
);
|
||||||
|
setTimeout(loopMain, 5000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void loopMain();
|
||||||
|
|
||||||
|
process.on('SIGINT', stopAndExit);
|
||||||
|
process.on('SIGQUIT', stopAndExit);
|
||||||
|
process.on('SIGTERM', stopAndExit);
|
||||||
|
|||||||
+214
-15
@@ -1,25 +1,224 @@
|
|||||||
import winston, {format} from 'winston';
|
import {Link, Store} from './store/model';
|
||||||
|
import chalk from 'chalk';
|
||||||
|
import {config} from './config';
|
||||||
|
import winston from 'winston';
|
||||||
|
|
||||||
const prettyJson = format.printf(info => {
|
const prettyJson = winston.format.printf((info) => {
|
||||||
const timestamp = new Date().toLocaleTimeString();
|
const timestamp = new Date().toLocaleTimeString();
|
||||||
|
|
||||||
if (typeof info.message === 'object') {
|
let out = `${chalk.grey(`[${timestamp}]`)} ${info.level} ${chalk.grey(
|
||||||
info.message = JSON.stringify(info.message, null, 4);
|
'::'
|
||||||
|
)} ${info.message}`;
|
||||||
|
|
||||||
|
if (Object.keys(info.metadata).length > 0) {
|
||||||
|
out = `${out} ${chalk.magenta(JSON.stringify(info.metadata, null, 2))}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `[${timestamp}] ${info.level} :: ${info.message}`;
|
return out;
|
||||||
});
|
});
|
||||||
|
|
||||||
export const Logger = winston.createLogger({
|
export const logger = winston.createLogger({
|
||||||
level: process.env.LOG_LEVEL ?? 'info',
|
format: winston.format.combine(
|
||||||
format: format.combine(
|
winston.format.colorize(),
|
||||||
format.colorize(),
|
winston.format.metadata({fillExcept: ['level', 'message', 'timestamp']}),
|
||||||
format.prettyPrint(),
|
|
||||||
format.splat(),
|
|
||||||
format.simple(),
|
|
||||||
prettyJson
|
prettyJson
|
||||||
),
|
),
|
||||||
transports: [
|
level: config.logLevel,
|
||||||
new winston.transports.Console({})
|
transports: [new winston.transports.Console({})]
|
||||||
]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const Print = {
|
||||||
|
backoff(
|
||||||
|
link: Link,
|
||||||
|
store: Store,
|
||||||
|
parameters: {delay: number; statusCode: number},
|
||||||
|
color?: boolean
|
||||||
|
): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
'✖ ' +
|
||||||
|
buildProductString(link, store, true) +
|
||||||
|
' :: ' +
|
||||||
|
chalk.yellow(
|
||||||
|
`BACKOFF DELAY status=${parameters.statusCode} delay=${parameters.delay}`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `✖ ${buildProductString(link, store)} :: BACKOFF DELAY status=${
|
||||||
|
parameters.statusCode
|
||||||
|
} delay=${parameters.delay}`;
|
||||||
|
},
|
||||||
|
badStatusCode(
|
||||||
|
link: Link,
|
||||||
|
store: Store,
|
||||||
|
statusCode: number,
|
||||||
|
color?: boolean
|
||||||
|
): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
'✖ ' +
|
||||||
|
buildProductString(link, store, true) +
|
||||||
|
' :: ' +
|
||||||
|
chalk.yellow(`STATUS CODE ERROR ${statusCode}`)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `✖ ${buildProductString(
|
||||||
|
link,
|
||||||
|
store
|
||||||
|
)} :: STATUS CODE ERROR ${statusCode}`;
|
||||||
|
},
|
||||||
|
bannedSeller(link: Link, store: Store, color?: boolean): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
'✖ ' +
|
||||||
|
buildProductString(link, store, true) +
|
||||||
|
' :: ' +
|
||||||
|
chalk.yellow('BANNED SELLER')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `✖ ${buildProductString(link, store)} :: BANNED SELLER`;
|
||||||
|
},
|
||||||
|
captcha(link: Link, store: Store, color?: boolean): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
'✖ ' +
|
||||||
|
buildProductString(link, store, true) +
|
||||||
|
' :: ' +
|
||||||
|
chalk.yellow('CAPTCHA')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `✖ ${buildProductString(link, store)} :: CAPTCHA`;
|
||||||
|
},
|
||||||
|
inStock(link: Link, store: Store, color?: boolean, sms?: boolean): string {
|
||||||
|
const productString = `${buildProductString(link, store)} :: IN STOCK`;
|
||||||
|
|
||||||
|
if (color) {
|
||||||
|
return chalk.bgGreen.white.bold(`🚀🚨 ${productString} 🚨🚀`);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sms) {
|
||||||
|
return productString;
|
||||||
|
}
|
||||||
|
|
||||||
|
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`;
|
||||||
|
},
|
||||||
|
maxPrice(
|
||||||
|
link: Link,
|
||||||
|
store: Store,
|
||||||
|
price: number,
|
||||||
|
maxPrice: number,
|
||||||
|
color?: boolean
|
||||||
|
): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
'✖ ' +
|
||||||
|
buildProductString(link, store, true) +
|
||||||
|
' :: ' +
|
||||||
|
chalk.yellow(`PRICE ${price} EXCEEDS LIMIT ${maxPrice}`)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `✖ ${buildProductString(
|
||||||
|
link,
|
||||||
|
store
|
||||||
|
)} :: PRICE ${price} EXCEEDS LIMIT ${maxPrice}`;
|
||||||
|
},
|
||||||
|
message(
|
||||||
|
message: string,
|
||||||
|
topic: string,
|
||||||
|
store: Store,
|
||||||
|
color?: boolean
|
||||||
|
): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
'✖ ' +
|
||||||
|
buildSetupString(topic, store, true) +
|
||||||
|
' :: ' +
|
||||||
|
chalk.yellow(message)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `✖ ${buildSetupString(topic, store)} :: ${message}`;
|
||||||
|
},
|
||||||
|
noResponse(link: Link, store: Store, color?: boolean): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
'✖ ' +
|
||||||
|
buildProductString(link, store, true) +
|
||||||
|
' :: ' +
|
||||||
|
chalk.yellow('NO RESPONSE')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `✖ ${buildProductString(link, store)} :: NO RESPONSE`;
|
||||||
|
},
|
||||||
|
outOfStock(link: Link, store: Store, color?: boolean): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
'✖ ' +
|
||||||
|
buildProductString(link, store, true) +
|
||||||
|
' :: ' +
|
||||||
|
chalk.red('OUT OF STOCK')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `✖ ${buildProductString(link, store)} :: OUT OF STOCK`;
|
||||||
|
},
|
||||||
|
productInStock(link: Link): string {
|
||||||
|
let productString = `Product Page: ${link.url}`;
|
||||||
|
if (link.cartUrl) productString += `\nAdd To Cart Link: ${link.cartUrl}`;
|
||||||
|
|
||||||
|
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`;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function buildSetupString(
|
||||||
|
topic: string,
|
||||||
|
store: Store,
|
||||||
|
color?: boolean
|
||||||
|
): string {
|
||||||
|
if (color) {
|
||||||
|
return chalk.cyan(`[${store.name}]`) + chalk.grey(` [setup (${topic})]`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `[${store.name}] [setup (${topic})]`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function buildProductString(link: Link, store: Store, color?: boolean): string {
|
||||||
|
if (color) {
|
||||||
|
return (
|
||||||
|
chalk.cyan(`[${store.name}]`) +
|
||||||
|
chalk.grey(` [${link.brand} (${link.series})] ${link.model}`)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return `[${store.name}] [${link.brand} (${link.series})] ${link.model}`;
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
|
import {config} from '../config';
|
||||||
|
import notifier from 'node-notifier';
|
||||||
|
|
||||||
|
const desktop = config.notifications.desktop;
|
||||||
|
|
||||||
|
export function sendDesktopNotification(link: Link, store: Store) {
|
||||||
|
if (desktop) {
|
||||||
|
logger.debug('↗ sending desktop notification');
|
||||||
|
(async () => {
|
||||||
|
notifier.notify({
|
||||||
|
message: link.cartUrl ? link.cartUrl : link.url,
|
||||||
|
title: Print.inStock(link, store)
|
||||||
|
});
|
||||||
|
|
||||||
|
logger.info('✔ desktop notification sent');
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
import {MessageBuilder, Webhook} from 'discord-webhook-node';
|
||||||
|
import {config} from '../config';
|
||||||
|
import {logger} from '../logger';
|
||||||
|
|
||||||
|
const discord = config.notifications.discord;
|
||||||
|
const hooks = discord.webHookUrl;
|
||||||
|
const notifyGroup = discord.notifyGroup;
|
||||||
|
|
||||||
|
export function sendDiscordMessage(link: Link, store: Store) {
|
||||||
|
if (discord.webHookUrl.length > 0) {
|
||||||
|
logger.debug('↗ sending discord message');
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
try {
|
||||||
|
const embed = new MessageBuilder();
|
||||||
|
embed.setTitle('Stock Notification');
|
||||||
|
if (link.cartUrl)
|
||||||
|
embed.addField('Add To Cart Link', link.cartUrl, true);
|
||||||
|
embed.addField('Product Page', link.url, true);
|
||||||
|
embed.addField('Store', store.name, true);
|
||||||
|
embed.addField('Brand', link.brand, true);
|
||||||
|
embed.addField('Series', link.series, true);
|
||||||
|
embed.addField('Model', link.model, true);
|
||||||
|
|
||||||
|
if (notifyGroup) {
|
||||||
|
embed.setText(notifyGroup.join(' '));
|
||||||
|
}
|
||||||
|
|
||||||
|
embed.setColor(0x76b900);
|
||||||
|
embed.setTimestamp();
|
||||||
|
|
||||||
|
const promises = [];
|
||||||
|
for (const hook of hooks) {
|
||||||
|
promises.push(new Webhook(hook).send(embed));
|
||||||
|
}
|
||||||
|
|
||||||
|
await Promise.all(promises);
|
||||||
|
|
||||||
|
logger.info('✔ discord message sent');
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error("✖ couldn't send discord message", error);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
+47
-26
@@ -1,34 +1,55 @@
|
|||||||
import nodemailer from 'nodemailer';
|
import {Link, Store} from '../store/model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
import Mail from 'nodemailer/lib/mailer';
|
import Mail from 'nodemailer/lib/mailer';
|
||||||
import {Config} from '../config';
|
import {config} from '../config';
|
||||||
import {Logger} from '../logger';
|
import nodemailer from 'nodemailer';
|
||||||
|
|
||||||
const email = Config.notifications.email;
|
const email = config.notifications.email;
|
||||||
const subject = 'NVIDIA - BUY NOW';
|
|
||||||
|
|
||||||
const transporter = nodemailer.createTransport({
|
const transportOptions: any = {};
|
||||||
service: 'gmail',
|
|
||||||
auth: {
|
if (email.username && (email.password || email.smtpAddress)) {
|
||||||
user: email.username,
|
transportOptions.auth = {};
|
||||||
pass: email.password
|
transportOptions.auth.user = email.username;
|
||||||
}
|
transportOptions.auth.pass = email.password;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (email.smtpAddress) {
|
||||||
|
transportOptions.host = email.smtpAddress;
|
||||||
|
transportOptions.port = email.smtpPort;
|
||||||
|
} else {
|
||||||
|
transportOptions.service = 'gmail';
|
||||||
|
}
|
||||||
|
|
||||||
|
export const transporter = nodemailer.createTransport({
|
||||||
|
...transportOptions
|
||||||
});
|
});
|
||||||
|
|
||||||
const mailOptions: Mail.Options = {
|
export function sendEmail(link: Link, store: Store) {
|
||||||
from: email.username,
|
if (email.username && (email.password || email.smtpAddress)) {
|
||||||
to: email.username,
|
logger.debug('↗ sending email');
|
||||||
subject
|
|
||||||
};
|
|
||||||
|
|
||||||
export function sendEmail(text: string) {
|
const mailOptions: Mail.Options = {
|
||||||
mailOptions.text = text;
|
attachments: link.screenshot
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
filename: link.screenshot,
|
||||||
|
path: `./${link.screenshot}`
|
||||||
|
}
|
||||||
|
]
|
||||||
|
: undefined,
|
||||||
|
from: email.username,
|
||||||
|
subject: Print.inStock(link, store),
|
||||||
|
text: Print.productInStock(link),
|
||||||
|
to: email.to
|
||||||
|
};
|
||||||
|
|
||||||
transporter.sendMail(mailOptions, (error, info) => {
|
transporter.sendMail(mailOptions, (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
Logger.error(error);
|
logger.error("✖ couldn't send email", error);
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
logger.info('✔ email sent');
|
||||||
Logger.info(`✔ email sent: ${info.response}`);
|
}
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,114 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
import MqttClient, {IClientOptions, IClientPublishOptions} from 'mqtt';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
|
const mqtt = config.notifications.mqtt;
|
||||||
|
let client: MqttClient.Client;
|
||||||
|
|
||||||
|
if (mqtt.broker) {
|
||||||
|
if (checkInsecureUsage(mqtt.password, mqtt.broker)) {
|
||||||
|
logger.warn(
|
||||||
|
'✖ Insecure transport of password - Only use credentials with MQTT brokers on private networks.'
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
const clientOptions: IClientOptions = {
|
||||||
|
clean: mqtt.clientId === '',
|
||||||
|
clientId: mqtt.clientId === '' ? undefined : mqtt.clientId,
|
||||||
|
password: mqtt.password === '' ? undefined : mqtt.password,
|
||||||
|
username: mqtt.username === '' ? undefined : mqtt.username
|
||||||
|
};
|
||||||
|
client = MqttClient.connect(
|
||||||
|
`mqtt://${mqtt.broker}:${mqtt.port}`,
|
||||||
|
clientOptions
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function sendMqttMessage(link: Link, store: Store) {
|
||||||
|
if (client) {
|
||||||
|
logger.debug('↗ sending mqtt message');
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
const givenUrl = link.cartUrl ? link.cartUrl : link.url;
|
||||||
|
const message = `{"msg":"${Print.inStock(
|
||||||
|
link,
|
||||||
|
store
|
||||||
|
)}", "url":"${givenUrl}"}`;
|
||||||
|
const topic = generateTopic(link, store, mqtt.topic);
|
||||||
|
const pubOptions: IClientPublishOptions = {
|
||||||
|
qos: mqtt.qos as 0 | 1 | 2,
|
||||||
|
retain: false
|
||||||
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
|
client.publish(topic, message, pubOptions);
|
||||||
|
logger.info('✔ mqtt message sent');
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error("✖ couldn't send mqtt message", error);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function generateTopic(link: Link, store: Store, topic: string): string {
|
||||||
|
topic.trim();
|
||||||
|
topic = topic.replace(/^\//, '');
|
||||||
|
topic = topic
|
||||||
|
.replace(/%series%/g, link.series)
|
||||||
|
.replace(/%brand%/g, link.brand)
|
||||||
|
.replace(/%model%/g, link.model)
|
||||||
|
.replace(/%store%/g, store.name);
|
||||||
|
|
||||||
|
return topic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
||||||
|
* - 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.
|
||||||
|
* - 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 {
|
||||||
|
if (pass !== '') {
|
||||||
|
if (
|
||||||
|
isClassANet(address) ||
|
||||||
|
isClassBNet(address) ||
|
||||||
|
isClassCNet(address) ||
|
||||||
|
isLinkLocal(address)
|
||||||
|
) {
|
||||||
|
logger.debug(`MQTT using private network broker: ${address}`);
|
||||||
|
} else {
|
||||||
|
logger.debug(`MQTT using public network broker: ${address}`);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
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}))$/;
|
||||||
|
|
||||||
|
return Boolean(classRegex.exec(address));
|
||||||
|
}
|
||||||
|
|
||||||
|
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}))$/;
|
||||||
|
|
||||||
|
return Boolean(classRegex.exec(address));
|
||||||
|
}
|
||||||
|
|
||||||
|
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}))$/;
|
||||||
|
|
||||||
|
return Boolean(classRegex.exec(address));
|
||||||
|
}
|
||||||
|
|
||||||
|
function isLinkLocal(address: string): boolean {
|
||||||
|
const linkLocal = /.+\.local$/;
|
||||||
|
|
||||||
|
return Boolean(linkLocal.exec(address));
|
||||||
|
}
|
||||||
@@ -1,38 +1,36 @@
|
|||||||
import {Config} from '../config';
|
import {Link, Store} from '../store/model';
|
||||||
import {sendEmail} from './email';
|
import {adjustPhilipsHueLights} from './philips-hue';
|
||||||
import {sendSMS} from './sms';
|
|
||||||
import {playSound} from './sound';
|
import {playSound} from './sound';
|
||||||
import {sendSlackMessage} from './slack';
|
import {sendDesktopNotification} from './desktop';
|
||||||
|
import {sendDiscordMessage} from './discord';
|
||||||
|
import {sendEmail} from './email';
|
||||||
|
import {sendMqttMessage} from './mqtt';
|
||||||
|
import {sendPagerDutyNotification} from './pagerduty';
|
||||||
|
import {sendPushbulletNotification} from './pushbullet';
|
||||||
import {sendPushoverNotification} from './pushover';
|
import {sendPushoverNotification} from './pushover';
|
||||||
|
import {sendSlackMessage} from './slack';
|
||||||
|
import {sendSms} from './sms';
|
||||||
import {sendTelegramMessage} from './telegram';
|
import {sendTelegramMessage} from './telegram';
|
||||||
|
import {sendTweet} from './twitter';
|
||||||
|
import {sendTwilioMessage} from './twilio';
|
||||||
|
import {sendTwitchMessage} from './twitch';
|
||||||
|
|
||||||
const notifications = Config.notifications;
|
export function sendNotification(link: Link, store: Store) {
|
||||||
|
// Priority
|
||||||
export function sendNotification(cartUrl: string) {
|
playSound();
|
||||||
if (notifications.email.username && notifications.email.password) {
|
sendEmail(link, store);
|
||||||
sendEmail(cartUrl);
|
sendSms(link, store);
|
||||||
}
|
sendDesktopNotification(link, store);
|
||||||
|
// Non-priority
|
||||||
if (notifications.slack.channel && notifications.slack.token) {
|
adjustPhilipsHueLights();
|
||||||
sendSlackMessage(cartUrl);
|
sendDiscordMessage(link, store);
|
||||||
}
|
sendMqttMessage(link, store);
|
||||||
|
sendPagerDutyNotification(link, store);
|
||||||
if (notifications.telegram.accessToken && notifications.telegram.chatId) {
|
sendPushbulletNotification(link, store);
|
||||||
sendTelegramMessage(cartUrl);
|
sendPushoverNotification(link, store);
|
||||||
}
|
sendSlackMessage(link, store);
|
||||||
|
sendTelegramMessage(link, store);
|
||||||
if (notifications.phone.number) {
|
sendTweet(link, store);
|
||||||
const carrier = notifications.phone.carrier.toLowerCase();
|
sendTwilioMessage(link, store);
|
||||||
if (carrier && notifications.phone.availableCarriers.has(carrier)) {
|
sendTwitchMessage(link, store);
|
||||||
sendSMS(cartUrl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (notifications.pushover.token && notifications.pushover.user) {
|
|
||||||
sendPushoverNotification(cartUrl);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (notifications.playSound === 'true') {
|
|
||||||
playSound();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
|
import PDClient from 'node-pagerduty';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
|
const pd = new PDClient('');
|
||||||
|
|
||||||
|
export function sendPagerDutyNotification(link: Link, store: Store) {
|
||||||
|
if (config.notifications.pagerduty.integrationKey) {
|
||||||
|
logger.debug('↗ sending pagerduty message');
|
||||||
|
const links = [{href: link.url, text: 'Visit Store'}];
|
||||||
|
if (link.cartUrl) {
|
||||||
|
links.push({
|
||||||
|
href: link.cartUrl,
|
||||||
|
text: 'Add to Cart'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
pd.events.sendEvent({
|
||||||
|
dedup_key: link.url,
|
||||||
|
event_action: 'trigger',
|
||||||
|
payload: {
|
||||||
|
links,
|
||||||
|
severity: config.notifications.pagerduty.severity,
|
||||||
|
source: store.name,
|
||||||
|
summary: Print.inStock(link, store)
|
||||||
|
},
|
||||||
|
routing_key: config.notifications.pagerduty.integrationKey
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
import type Api from 'node-hue-api/lib/api/Api';
|
||||||
|
import {config} from '../config';
|
||||||
|
import {v3 as hueAPI} from 'node-hue-api';
|
||||||
|
import {logger} from '../logger';
|
||||||
|
|
||||||
|
const hue = config.notifications.philips_hue;
|
||||||
|
const apiKey = hue.apiKey;
|
||||||
|
const bridgeIp = hue.bridgeIp;
|
||||||
|
const lightIds = hue.lightIds;
|
||||||
|
const lightColor = hue.lightColor;
|
||||||
|
const lightPattern = hue.lightPattern;
|
||||||
|
const LightState = hueAPI.lightStates.LightState;
|
||||||
|
const clientId = hue.clientId;
|
||||||
|
const clientSecret = hue.clientSecret;
|
||||||
|
const accessToken = hue.accessToken;
|
||||||
|
const refreshToken = hue.refreshToken;
|
||||||
|
const remoteApiUsername = hue.remoteApiUsername;
|
||||||
|
|
||||||
|
// Default Light State
|
||||||
|
const lightState = new LightState()
|
||||||
|
.on(true)
|
||||||
|
.brightness(100)
|
||||||
|
.rgb(46.27, 72.55, 0);
|
||||||
|
|
||||||
|
const adjustLightsWithAPI = (hueBridge: Api) => {
|
||||||
|
logger.debug('Connected to Philips Hue bridge.');
|
||||||
|
// Set the custom light state (COLOR and METHOD here)
|
||||||
|
if (lightColor) {
|
||||||
|
const rgbArray = lightColor.split(',');
|
||||||
|
// If there's not three values, must not be RGB
|
||||||
|
if (rgbArray.length === 3) {
|
||||||
|
lightState.rgb(rgbArray[0], rgbArray[1], rgbArray[2]);
|
||||||
|
} else {
|
||||||
|
logger.debug('✖ Error assigning RGB Values');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// If blink is specified, then blink the lights
|
||||||
|
if (lightPattern === 'blink') {
|
||||||
|
lightState.alertLong();
|
||||||
|
}
|
||||||
|
|
||||||
|
// If we've been given light IDs, then only adjust those IDs
|
||||||
|
if (lightIds) {
|
||||||
|
const arrayOfIDs = lightIds.split(',');
|
||||||
|
arrayOfIDs.forEach((light) => {
|
||||||
|
logger.debug('adjusting all hue lights');
|
||||||
|
(hueBridge.lights.setLightState(light, lightState) as Promise<any>).catch(
|
||||||
|
(error: Error) => {
|
||||||
|
logger.error('Failed to adjust all lights.');
|
||||||
|
logger.error(error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// Adjust all light IDs
|
||||||
|
hueBridge.lights
|
||||||
|
.getAll()
|
||||||
|
.then((allLights: any[]) => {
|
||||||
|
allLights.forEach((light: any) => {
|
||||||
|
logger.debug('adjusting specified lights');
|
||||||
|
(hueBridge.lights.setLightState(
|
||||||
|
light,
|
||||||
|
lightState
|
||||||
|
) as Promise<any>).catch((error: Error) => {
|
||||||
|
logger.error('Failed to adjust specified lights.');
|
||||||
|
logger.error(error);
|
||||||
|
throw error;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch((error: Error) => {
|
||||||
|
logger.error('Failed to get all lights.');
|
||||||
|
logger.error(error);
|
||||||
|
throw error;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export function adjustPhilipsHueLights() {
|
||||||
|
// Check if the required variables have been set
|
||||||
|
if (hue.apiKey && hue.bridgeIp) {
|
||||||
|
logger.info('↗ adjusting Philips Hue lights over LAN');
|
||||||
|
(async () => {
|
||||||
|
logger.debug(
|
||||||
|
'Attempting to connect to Philips Hue bridge at ' + bridgeIp
|
||||||
|
);
|
||||||
|
hueAPI.api
|
||||||
|
.createLocal(bridgeIp)
|
||||||
|
.connect(apiKey)
|
||||||
|
.then(
|
||||||
|
(hueBridge) => {
|
||||||
|
adjustLightsWithAPI(hueBridge);
|
||||||
|
logger.info('✔ adjusted Philips Hue lights over LAN');
|
||||||
|
},
|
||||||
|
(error: Error) => {
|
||||||
|
logger.error("✖ couldn't adjust hue lights.", error);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
})();
|
||||||
|
} else if (hue.apiKey && hue.clientId && hue.clientSecret) {
|
||||||
|
logger.info('↗ adjusting Philips Hue lights over cloud');
|
||||||
|
(async () => {
|
||||||
|
logger.debug('Attempting to connect to Philips Hue bridge over cloud');
|
||||||
|
const remoteBootstrap = hueAPI.api.createRemote(clientId, clientSecret);
|
||||||
|
if (hue.accessToken && hue.refreshToken) {
|
||||||
|
remoteBootstrap
|
||||||
|
.connectWithTokens(accessToken, refreshToken, remoteApiUsername)
|
||||||
|
.then(
|
||||||
|
(hueBridge) => {
|
||||||
|
adjustLightsWithAPI(hueBridge);
|
||||||
|
logger.info('✔ adjusted Philips Hue lights over cloud');
|
||||||
|
},
|
||||||
|
(error: Error) => {
|
||||||
|
logger.error(
|
||||||
|
'Failed to get a remote Philips Hue connection using supplied tokens.'
|
||||||
|
);
|
||||||
|
logger.error(error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
|
import PushBullet from '@jef/pushbullet';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
|
const pushbullet = config.notifications.pushbullet;
|
||||||
|
|
||||||
|
export function sendPushbulletNotification(link: Link, store: Store) {
|
||||||
|
if (pushbullet) {
|
||||||
|
logger.debug('↗ sending pushbullet message');
|
||||||
|
|
||||||
|
const pusher = new PushBullet(pushbullet);
|
||||||
|
|
||||||
|
pusher.note(
|
||||||
|
{},
|
||||||
|
Print.inStock(link, store),
|
||||||
|
link.cartUrl ? link.cartUrl : link.url,
|
||||||
|
(error: Error) => {
|
||||||
|
if (error) {
|
||||||
|
logger.error("✖ couldn't send pushbullet message", error);
|
||||||
|
} else {
|
||||||
|
logger.info('✔ pushbullet message sent');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,23 +1,30 @@
|
|||||||
import Push from 'pushover-notifications';
|
import {Link, Store} from '../store/model';
|
||||||
import {Config} from '../config';
|
import {Print, logger} from '../logger';
|
||||||
import {Logger} from '../logger';
|
import Push, {PushoverMessage} from 'pushover-notifications';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
const pushover = Config.notifications.pushover;
|
const pushover = config.notifications.pushover;
|
||||||
const push = new Push({
|
const push = new Push({
|
||||||
user: pushover.user,
|
token: pushover.token,
|
||||||
token: pushover.token
|
user: pushover.username
|
||||||
});
|
});
|
||||||
|
|
||||||
export function sendPushoverNotification(text: string) {
|
export function sendPushoverNotification(link: Link, store: Store) {
|
||||||
const message = {
|
if (pushover.token && pushover.username) {
|
||||||
message: text
|
logger.debug('↗ sending pushover message');
|
||||||
};
|
|
||||||
|
|
||||||
push.send(message, (err: Error, result: string) => {
|
const message: PushoverMessage = {
|
||||||
if (err) {
|
message: link.cartUrl ? link.cartUrl : link.url,
|
||||||
Logger.error(err);
|
priority: pushover.priority,
|
||||||
} else {
|
title: Print.inStock(link, store)
|
||||||
Logger.info(`✔ Pushover notification sent: ${result}`);
|
};
|
||||||
}
|
|
||||||
});
|
push.send(message, (error: Error) => {
|
||||||
|
if (error) {
|
||||||
|
logger.error("✖ couldn't send pushover message", error);
|
||||||
|
} else {
|
||||||
|
logger.info('✔ pushover message sent');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+29
-17
@@ -1,23 +1,35 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
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';
|
||||||
import {Logger} from '../logger';
|
|
||||||
|
|
||||||
const channel = Config.notifications.slack.channel;
|
const slack = config.notifications.slack;
|
||||||
const token = Config.notifications.slack.token;
|
const channel = slack.channel;
|
||||||
|
const token = slack.token;
|
||||||
const web = new WebClient(token);
|
const web = new WebClient(token);
|
||||||
|
|
||||||
export function sendSlackMessage(text: string) {
|
export function sendSlackMessage(link: Link, store: Store) {
|
||||||
(async () => {
|
if (slack.channel && slack.token) {
|
||||||
try {
|
logger.debug('↗ sending slack message');
|
||||||
const result = await web.chat.postMessage({text, channel});
|
|
||||||
if (!result.ok) {
|
|
||||||
Logger.error(result.error);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Logger.info(`✔ slack message sent to '${channel}': ${text}`);
|
(async () => {
|
||||||
} catch (error) {
|
const givenUrl = link.cartUrl ? link.cartUrl : link.url;
|
||||||
Logger.error(error);
|
|
||||||
}
|
try {
|
||||||
})();
|
const result = await web.chat.postMessage({
|
||||||
|
channel,
|
||||||
|
text: `${Print.inStock(link, store)}\n${givenUrl}`
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!result.ok) {
|
||||||
|
logger.error("✖ couldn't send slack message", result);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.info('✔ slack message sent');
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error("✖ couldn't send slack message", error);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+68
-31
@@ -1,41 +1,78 @@
|
|||||||
import nodemailer from 'nodemailer';
|
import {Link, Store} from '../store/model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
import Mail from 'nodemailer/lib/mailer';
|
import Mail from 'nodemailer/lib/mailer';
|
||||||
import {Config} from '../config';
|
import {config} from '../config';
|
||||||
import {Logger} from '../logger';
|
import {transporter} from './email';
|
||||||
|
|
||||||
const subject = 'NVIDIA - BUY NOW';
|
const [email, phone] = [config.notifications.email, config.notifications.phone];
|
||||||
const [email, phone] = [Config.notifications.email, Config.notifications.phone];
|
|
||||||
|
|
||||||
const transporter = nodemailer.createTransport({
|
if (phone.number.length > 0 && (!email.username || !email.password)) {
|
||||||
service: 'gmail',
|
logger.warn(
|
||||||
auth: {
|
'✖ in order to receive sms alerts, email notifications must also be configured'
|
||||||
user: email.username,
|
);
|
||||||
pass: email.password
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const mailOptions: Mail.Options = {
|
if (phone.carrier.length !== phone.number.length) {
|
||||||
from: Config.notifications.email.username,
|
logger.warn(
|
||||||
to: generateAddress(),
|
'✖ the number of carriers must match the number of phone numbers',
|
||||||
subject
|
{carrier: phone.carrier, number: phone.number}
|
||||||
};
|
);
|
||||||
|
}
|
||||||
|
|
||||||
export function sendSMS(text: string) {
|
export function sendSms(link: Link, store: Store) {
|
||||||
mailOptions.text = text;
|
for (
|
||||||
|
let i = 0;
|
||||||
|
i < Math.max(phone.number.length, phone.carrier.length);
|
||||||
|
i++
|
||||||
|
) {
|
||||||
|
const currentNumber = phone.number[i];
|
||||||
|
const currentCarrier = phone.carrier[i];
|
||||||
|
|
||||||
transporter.sendMail(mailOptions, (error, info) => {
|
if (!currentNumber) {
|
||||||
if (error) {
|
logger.error(`✖ ${currentCarrier} is not associated with a number`);
|
||||||
Logger.error(error);
|
continue;
|
||||||
} else {
|
} else if (!currentCarrier) {
|
||||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
logger.error(`✖ ${currentNumber} is not associated with a carrier`);
|
||||||
Logger.info(`✔ sms sent: ${info.response}`);
|
continue;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function generateAddress() {
|
if (!phone.availableCarriers.has(currentCarrier)) {
|
||||||
const carrier = phone.carrier.toLowerCase();
|
logger.error(`✖ unknown carrier ${currentCarrier}`);
|
||||||
if (carrier && phone.availableCarriers.has(carrier)) {
|
continue;
|
||||||
return [phone.number, phone.availableCarriers.get(carrier)].join('@');
|
}
|
||||||
|
|
||||||
|
logger.debug('↗ sending sms');
|
||||||
|
|
||||||
|
const mailOptions: Mail.Options = {
|
||||||
|
attachments: link.screenshot
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
filename: link.screenshot,
|
||||||
|
path: `./${link.screenshot}`
|
||||||
|
}
|
||||||
|
]
|
||||||
|
: undefined,
|
||||||
|
from: email.username,
|
||||||
|
subject: Print.inStock(link, store, false, true),
|
||||||
|
text: link.cartUrl ? link.cartUrl : link.url,
|
||||||
|
to: generateAddress(currentNumber, currentCarrier)
|
||||||
|
};
|
||||||
|
|
||||||
|
transporter.sendMail(mailOptions, (error) => {
|
||||||
|
if (error) {
|
||||||
|
logger.error(
|
||||||
|
`✖ couldn't send sms to ${currentNumber} for carrier ${currentCarrier}`,
|
||||||
|
error
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
logger.info('✔ sms sent');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function generateAddress(number: string, carrier: string) {
|
||||||
|
if (carrier && phone.availableCarriers.has(carrier)) {
|
||||||
|
return [number, phone.availableCarriers.get(carrier)].join('@');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+31
-18
@@ -1,25 +1,38 @@
|
|||||||
import playerLib = require('play-sound');
|
import playerLib, {PlaySound} from 'play-sound';
|
||||||
import {Config} from '../config';
|
import {config} from '../config';
|
||||||
import {Logger} from '../logger';
|
import fs from 'fs';
|
||||||
import * as fs from 'fs';
|
import {logger} from '../logger';
|
||||||
|
|
||||||
const notificationSound = './resources/sounds/' + Config.notifications.playSound;
|
let player: PlaySound;
|
||||||
const player = playerLib();
|
|
||||||
|
if (config.notifications.playSound) {
|
||||||
|
player = playerLib();
|
||||||
|
|
||||||
|
if (player.player === null) {
|
||||||
|
logger.warn("✖ couldn't find sound player");
|
||||||
|
} else {
|
||||||
|
const playerName = player.player;
|
||||||
|
logger.info(`✔ sound player found: ${playerName}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export function playSound() {
|
export function playSound() {
|
||||||
// Check if file exists
|
if (config.notifications.playSound && player.player !== null) {
|
||||||
fs.access(notificationSound, fs.constants.F_OK, err => {
|
logger.debug('↗ playing sound');
|
||||||
if (err) {
|
|
||||||
Logger.error(`error opening sound file: ${err.message}`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
player.play(notificationSound, (err: string) => {
|
fs.access(config.notifications.playSound, fs.constants.F_OK, (error) => {
|
||||||
Logger.info('✔ playing sound');
|
if (error) {
|
||||||
|
logger.error(`✖ error opening sound file: ${error.message}`);
|
||||||
if (err) {
|
return;
|
||||||
Logger.error(`error playing sound: ${err}`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.play(config.notifications.playSound, (error: Error) => {
|
||||||
|
if (error) {
|
||||||
|
logger.error("✖ couldn't play sound", error);
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.info('✔ played sound');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,37 @@
|
|||||||
import {Config} from '../config';
|
import {Link, Store} from '../store/model';
|
||||||
import {Logger} from '../logger';
|
import {Print, logger} from '../logger';
|
||||||
import {TelegramClient} from 'messaging-api-telegram';
|
import {TelegramClient} from 'messaging-api-telegram';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
const telegram = Config.notifications.telegram;
|
const telegram = config.notifications.telegram;
|
||||||
|
|
||||||
const client = new TelegramClient({
|
const client = new TelegramClient({
|
||||||
accessToken: telegram.accessToken
|
accessToken: telegram.accessToken
|
||||||
});
|
});
|
||||||
|
|
||||||
export function sendTelegramMessage(text: string) {
|
export function sendTelegramMessage(link: Link, store: Store) {
|
||||||
(async () => {
|
if (telegram.accessToken && telegram.chatId) {
|
||||||
try {
|
logger.debug('↗ sending telegram message');
|
||||||
await client.sendMessage(telegram.chatId, text);
|
|
||||||
Logger.info(`✔ telegram message sent to '${telegram.chatId}': ${text}`);
|
(async () => {
|
||||||
} catch (error) {
|
const message = Print.productInStock(link);
|
||||||
Logger.error(error);
|
const results = [];
|
||||||
}
|
|
||||||
})();
|
for (const chatId of telegram.chatId) {
|
||||||
|
try {
|
||||||
|
results.push(
|
||||||
|
client.sendMessage(
|
||||||
|
chatId,
|
||||||
|
`${Print.inStock(link, store)}\n${message}`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
logger.info('✔ telegram message sent');
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error("✖ couldn't send telegram message", error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
await Promise.all(results);
|
||||||
|
})();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
|
import {Twilio} from 'twilio';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
|
const twilio = config.notifications.twilio;
|
||||||
|
let client: Twilio;
|
||||||
|
|
||||||
|
if (twilio.accountSid && twilio.authToken) {
|
||||||
|
client = new Twilio(twilio.accountSid, twilio.authToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function sendTwilioMessage(link: Link, store: Store) {
|
||||||
|
if (client) {
|
||||||
|
logger.debug('↗ sending twilio message');
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
const givenUrl = link.cartUrl ? link.cartUrl : link.url;
|
||||||
|
const message = `${Print.inStock(link, store)}\n${givenUrl}`;
|
||||||
|
|
||||||
|
try {
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
|
import {RefreshableAuthProvider, StaticAuthProvider} from 'twitch-auth';
|
||||||
|
import {existsSync, promises, readFileSync} from 'fs';
|
||||||
|
import {ChatClient} from 'twitch-chat-client';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
|
const twitch = config.notifications.twitch;
|
||||||
|
|
||||||
|
const messages: string[] = [];
|
||||||
|
let alreadySaying = false;
|
||||||
|
|
||||||
|
let tokenData = {
|
||||||
|
accessToken: twitch.accessToken,
|
||||||
|
expiryTimestamp: 0,
|
||||||
|
refreshToken: twitch.refreshToken
|
||||||
|
};
|
||||||
|
|
||||||
|
if (existsSync('./twitch.json')) {
|
||||||
|
tokenData = {
|
||||||
|
...JSON.parse(readFileSync('./twitch.json', 'utf-8')),
|
||||||
|
...tokenData
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const chatClient: ChatClient = new ChatClient(
|
||||||
|
new RefreshableAuthProvider(
|
||||||
|
new StaticAuthProvider(twitch.clientId, tokenData.accessToken),
|
||||||
|
{
|
||||||
|
clientSecret: twitch.clientSecret,
|
||||||
|
expiry:
|
||||||
|
tokenData.expiryTimestamp === null
|
||||||
|
? null
|
||||||
|
: new Date(tokenData.expiryTimestamp),
|
||||||
|
onRefresh: async ({accessToken, refreshToken, expiryDate}) => {
|
||||||
|
return promises.writeFile(
|
||||||
|
'./twitch.json',
|
||||||
|
JSON.stringify(
|
||||||
|
{
|
||||||
|
accessToken,
|
||||||
|
expiryTimestamp:
|
||||||
|
expiryDate === null ? null : expiryDate.getTime(),
|
||||||
|
refreshToken
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
4
|
||||||
|
),
|
||||||
|
'utf-8'
|
||||||
|
);
|
||||||
|
},
|
||||||
|
refreshToken: tokenData.refreshToken
|
||||||
|
}
|
||||||
|
),
|
||||||
|
{
|
||||||
|
channels: [twitch.channel]
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
chatClient.onJoin((channel: string, user: string) => {
|
||||||
|
if (channel === `#${twitch.channel}` && user === chatClient.currentNick) {
|
||||||
|
while (messages.length) {
|
||||||
|
const message: string | undefined = messages.shift();
|
||||||
|
|
||||||
|
if (message !== undefined) {
|
||||||
|
try {
|
||||||
|
chatClient.say(channel, message);
|
||||||
|
logger.info('✔ twitch message sent');
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error("✖ couldn't send twitch message", error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void chatClient.quit();
|
||||||
|
});
|
||||||
|
|
||||||
|
chatClient.onDisconnect(() => {
|
||||||
|
alreadySaying = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
export function sendTwitchMessage(link: Link, store: Store) {
|
||||||
|
if (
|
||||||
|
tokenData.accessToken &&
|
||||||
|
twitch.channel &&
|
||||||
|
twitch.clientId &&
|
||||||
|
twitch.clientSecret &&
|
||||||
|
tokenData.refreshToken
|
||||||
|
) {
|
||||||
|
logger.debug('↗ sending twitch message');
|
||||||
|
|
||||||
|
messages.push(
|
||||||
|
`${Print.inStock(link, store)}\n${link.cartUrl ? link.cartUrl : link.url}`
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!alreadySaying) {
|
||||||
|
alreadySaying = true;
|
||||||
|
void chatClient.connect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
import {Link, Store} from '../store/model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
|
import Twitter from 'twitter';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
|
const twitter = config.notifications.twitter;
|
||||||
|
|
||||||
|
const client = new Twitter({
|
||||||
|
access_token_key: twitter.accessTokenKey,
|
||||||
|
access_token_secret: twitter.accessTokenSecret,
|
||||||
|
consumer_key: twitter.consumerKey,
|
||||||
|
consumer_secret: twitter.consumerSecret
|
||||||
|
});
|
||||||
|
|
||||||
|
export function sendTweet(link: Link, store: Store) {
|
||||||
|
if (
|
||||||
|
twitter.accessTokenKey &&
|
||||||
|
twitter.accessTokenSecret &&
|
||||||
|
twitter.consumerKey &&
|
||||||
|
twitter.consumerSecret
|
||||||
|
) {
|
||||||
|
logger.debug('↗ sending twitter message');
|
||||||
|
|
||||||
|
let status = `${Print.inStock(link, store)}\n${
|
||||||
|
link.cartUrl ? link.cartUrl : link.url
|
||||||
|
}`;
|
||||||
|
|
||||||
|
if (twitter.tweetTags) {
|
||||||
|
status += `\n\n${twitter.tweetTags}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
client.post('statuses/update', {status}, (error) => {
|
||||||
|
if (error) {
|
||||||
|
logger.error("✖ couldn't send twitter notification", error);
|
||||||
|
} else {
|
||||||
|
logger.info('✔ twitter notification sent');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
import {Link, Series, Store} from './model';
|
||||||
|
import {Print, logger} from '../logger';
|
||||||
|
import {Browser} from 'puppeteer';
|
||||||
|
import cheerio from 'cheerio';
|
||||||
|
import {filterSeries} from './filter';
|
||||||
|
import {usingResponse} from '../util';
|
||||||
|
|
||||||
|
function addNewLinks(store: Store, links: Link[], series: Series) {
|
||||||
|
if (links.length === 0) {
|
||||||
|
logger.debug(Print.message('NO STORE LINKS FOUND', series, store, true));
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const existingUrls = new Set(store.links.map((link) => link.url));
|
||||||
|
const newLinks = links.filter((link) => !existingUrls.has(link.url));
|
||||||
|
|
||||||
|
if (newLinks.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.debug(
|
||||||
|
Print.message(`FOUND ${newLinks.length} STORE LINKS`, series, store, true)
|
||||||
|
);
|
||||||
|
logger.debug(JSON.stringify(newLinks, null, 2));
|
||||||
|
|
||||||
|
store.links = store.links.concat(newLinks);
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function fetchLinks(store: Store, browser: Browser) {
|
||||||
|
if (!store.linksBuilder) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const promises: Array<Promise<void>> = [];
|
||||||
|
|
||||||
|
for (let {series, url} of store.linksBuilder.urls) {
|
||||||
|
if (!filterSeries(series)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.debug(Print.message('DETECTING STORE LINKS', series, store, true));
|
||||||
|
|
||||||
|
if (!Array.isArray(url)) {
|
||||||
|
url = [url];
|
||||||
|
}
|
||||||
|
|
||||||
|
url.map((x) =>
|
||||||
|
promises.push(
|
||||||
|
usingResponse(browser, x, async (response) => {
|
||||||
|
const text = await response?.text();
|
||||||
|
|
||||||
|
if (!text) {
|
||||||
|
logger.error(Print.message('NO RESPONSE', series, store, true));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const docElement = cheerio.load(text).root();
|
||||||
|
const links = store.linksBuilder!.builder(docElement, series);
|
||||||
|
|
||||||
|
addNewLinks(store, links, series);
|
||||||
|
})
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
await Promise.all(promises);
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
import {Link} from './model';
|
||||||
|
import {config} from '../config';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the brand should be checked for stock
|
||||||
|
*
|
||||||
|
* @param brand The brand of the GPU
|
||||||
|
*/
|
||||||
|
function filterBrand(brand: Link['brand']): boolean {
|
||||||
|
if (config.store.showOnlyBrands.length === 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return config.store.showOnlyBrands.includes(brand);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the model should be checked for stock
|
||||||
|
*
|
||||||
|
* @param model The model of the GPU
|
||||||
|
* @param series The series of the GPU
|
||||||
|
*/
|
||||||
|
function filterModel(model: Link['model'], series: Link['series']): boolean {
|
||||||
|
if (config.store.showOnlyModels.length === 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
const sanitizedModel = model.replace(/\s/g, '');
|
||||||
|
const sanitizedSeries = series.replace(/\s/g, '');
|
||||||
|
for (const configModelEntry of config.store.showOnlyModels) {
|
||||||
|
const sanitizedConfigModel = configModelEntry.name.replace(/\s/g, '');
|
||||||
|
const sanitizedConfigSeries = configModelEntry.series.replace(/\s/g, '');
|
||||||
|
if (sanitizedConfigSeries) {
|
||||||
|
if (
|
||||||
|
sanitizedSeries === sanitizedConfigSeries &&
|
||||||
|
sanitizedModel === sanitizedConfigModel
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
} else if (sanitizedModel === sanitizedConfigModel) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the series should be checked for stock
|
||||||
|
*
|
||||||
|
* @param series The series of the GPU
|
||||||
|
*/
|
||||||
|
export function filterSeries(series: Link['series']): boolean {
|
||||||
|
if (config.store.showOnlySeries.length === 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return config.store.showOnlySeries.includes(series);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the link should be checked for stock
|
||||||
|
*
|
||||||
|
* @param link The store link of the GPU
|
||||||
|
*/
|
||||||
|
export function filterStoreLink(link: Link): boolean {
|
||||||
|
return (
|
||||||
|
filterBrand(link.brand) &&
|
||||||
|
filterModel(link.model, link.series) &&
|
||||||
|
filterSeries(link.series)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,10 +1,143 @@
|
|||||||
|
import {Element, LabelQuery, Pricing} from './model';
|
||||||
|
import {Page} from 'puppeteer';
|
||||||
|
import {logger} from '../logger';
|
||||||
|
|
||||||
|
export type Selector = {
|
||||||
|
requireVisible: boolean;
|
||||||
|
selector: string;
|
||||||
|
type: 'innerHTML' | 'outerHTML' | 'textContent';
|
||||||
|
};
|
||||||
|
|
||||||
|
function isElementArray(query: LabelQuery): query is Element[] {
|
||||||
|
return (
|
||||||
|
Array.isArray(query) && query.length > 0 && typeof query[0] === 'object'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getQueryAsElementArray(
|
||||||
|
query: LabelQuery,
|
||||||
|
defaultContainer: string
|
||||||
|
): Array<Required<Element>> {
|
||||||
|
if (isElementArray(query)) {
|
||||||
|
return query.map((x) => ({
|
||||||
|
container: x.container ?? defaultContainer,
|
||||||
|
text: x.text
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(query)) {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
container: defaultContainer,
|
||||||
|
text: query
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
container: query.container ?? defaultContainer,
|
||||||
|
text: query.text
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function pageIncludesLabels(
|
||||||
|
page: Page,
|
||||||
|
query: LabelQuery,
|
||||||
|
options: Selector
|
||||||
|
) {
|
||||||
|
const elementQueries = getQueryAsElementArray(query, options.selector);
|
||||||
|
|
||||||
|
const resolved = await Promise.all(
|
||||||
|
elementQueries.map(async (query) => {
|
||||||
|
const selector = {...options, selector: query.container};
|
||||||
|
const contents = (await extractPageContents(page, selector)) ?? '';
|
||||||
|
|
||||||
|
if (!contents) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.debug(contents);
|
||||||
|
|
||||||
|
return includesLabels(contents, query.text);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
|
return resolved.includes(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function extractPageContents(
|
||||||
|
page: Page,
|
||||||
|
selector: Selector
|
||||||
|
): Promise<string | null> {
|
||||||
|
return page.evaluate((options: Selector) => {
|
||||||
|
const element: globalThis.HTMLElement | null = document.querySelector(
|
||||||
|
options.selector
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!element) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
options.requireVisible &&
|
||||||
|
!(element.offsetWidth > 0 && element.offsetHeight > 0)
|
||||||
|
) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (options.type) {
|
||||||
|
case 'innerHTML':
|
||||||
|
return element.innerHTML;
|
||||||
|
case 'outerHTML':
|
||||||
|
return element.outerHTML;
|
||||||
|
case 'textContent':
|
||||||
|
return element.textContent;
|
||||||
|
default:
|
||||||
|
return 'Error: selector.type is unknown';
|
||||||
|
}
|
||||||
|
}, selector);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if DOM has any out-of-stock related text.
|
* Checks if DOM has any related text.
|
||||||
*
|
*
|
||||||
* @param domText Complete DOM of website.
|
* @param domText Complete DOM of website.
|
||||||
* @param oosLabels Out-of-stock labels.
|
* @param searchLabels Search labels for a match.
|
||||||
*/
|
*/
|
||||||
export function includesLabels(domText: string, oosLabels: string[]): boolean {
|
export function includesLabels(
|
||||||
|
domText: string,
|
||||||
|
searchLabels: string[]
|
||||||
|
): boolean {
|
||||||
const domTextLowerCase = domText.toLowerCase();
|
const domTextLowerCase = domText.toLowerCase();
|
||||||
return oosLabels.some(label => domTextLowerCase.includes(label));
|
return searchLabels.some((label) =>
|
||||||
|
domTextLowerCase.includes(label.toLowerCase())
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function cardPrice(
|
||||||
|
page: Page,
|
||||||
|
query: Pricing,
|
||||||
|
max: number,
|
||||||
|
options: Selector
|
||||||
|
): Promise<number | null> {
|
||||||
|
if (!max || max === -1) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const selector = {...options, selector: query.container};
|
||||||
|
const cardPrice = await extractPageContents(page, selector);
|
||||||
|
|
||||||
|
if (cardPrice) {
|
||||||
|
const priceSeperator = query.euroFormat ? /\./g : /,/g;
|
||||||
|
const cardpriceNumber = Number.parseFloat(
|
||||||
|
cardPrice.replace(priceSeperator, '').match(/\d+/g)!.join('.')
|
||||||
|
);
|
||||||
|
|
||||||
|
logger.debug(`Raw card price: ${cardPrice} | Limit: ${max}`);
|
||||||
|
return cardpriceNumber > max ? cardpriceNumber : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
export * from './lookup';
|
export * from './lookup';
|
||||||
export * from './includes-labels';
|
|
||||||
|
|||||||
+225
-61
@@ -1,85 +1,249 @@
|
|||||||
import puppeteer from 'puppeteer';
|
import {Browser, Page, Response} from 'puppeteer';
|
||||||
import {Config} from '../config';
|
import {Link, Store, getStores} from './model';
|
||||||
import {Logger} from '../logger';
|
import {Print, logger} from '../logger';
|
||||||
|
import {Selector, cardPrice, pageIncludesLabels} from './includes-labels';
|
||||||
|
import {
|
||||||
|
closePage,
|
||||||
|
delay,
|
||||||
|
getRandomUserAgent,
|
||||||
|
getSleepTime,
|
||||||
|
isStatusCodeInRange
|
||||||
|
} from '../util';
|
||||||
|
import {config} from '../config';
|
||||||
|
import {disableBlockerInPage} from '../adblocker';
|
||||||
|
import {fetchLinks} from './fetch-links';
|
||||||
|
import {filterStoreLink} from './filter';
|
||||||
import open from 'open';
|
import open from 'open';
|
||||||
import {Store} from './model';
|
import {processBackoffDelay} from './model/helpers/backoff';
|
||||||
import {sendNotification} from '../notification';
|
import {sendNotification} from '../notification';
|
||||||
import {includesLabels} from './includes-labels';
|
|
||||||
|
|
||||||
/**
|
const inStock: Record<string, boolean> = {};
|
||||||
* Returns true if the brand should be checked for stock
|
|
||||||
*
|
|
||||||
* @param brand The brand of the GPU
|
|
||||||
*/
|
|
||||||
function filterBrand(brand: string) {
|
|
||||||
if (Config.showOnlyBrands.length === 0) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Config.showOnlyBrands.includes(brand);
|
const linkBuilderLastRunTimes: Record<string, number> = {};
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Responsible for looking up information about a each product within
|
* Responsible for looking up information about a each product within
|
||||||
* a `Store`. It's important that we ignore `no-await-in-loop` here
|
* a `Store`. It's important that we ignore `no-await-in-loop` here
|
||||||
* because we don't want to get rate limited within the same store.
|
* because we don't want to get rate limited within the same store.
|
||||||
*
|
*
|
||||||
* @param browser Current browser in use.
|
* @param browser Puppeteer browser.
|
||||||
* @param store Vendor of graphics cards.
|
* @param store Vendor of graphics cards.
|
||||||
*/
|
*/
|
||||||
export async function lookup(browser: puppeteer.Browser, store: Store) {
|
async function lookup(browser: Browser, store: Store) {
|
||||||
/* eslint-disable no-await-in-loop */
|
if (!getStores().has(store.name)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* eslint-disable no-await-in-loop */
|
||||||
for (const link of store.links) {
|
for (const link of store.links) {
|
||||||
if (!filterBrand(link.brand)) {
|
if (!filterStoreLink(link)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const page = await browser.newPage();
|
if (config.page.inStockWaitTime && inStock[link.url]) {
|
||||||
page.setDefaultNavigationTimeout(Config.page.navigationTimeout);
|
logger.info(Print.inStockWaiting(link, store, true));
|
||||||
await page.setUserAgent(Config.page.userAgent);
|
continue;
|
||||||
await page.setViewport({
|
}
|
||||||
height: Config.page.height,
|
|
||||||
width: Config.page.width
|
|
||||||
});
|
|
||||||
|
|
||||||
const graphicsCard = `${link.brand} ${link.model}`;
|
const context = config.browser.isIncognito
|
||||||
|
? await browser.createIncognitoBrowserContext()
|
||||||
|
: browser.defaultBrowserContext();
|
||||||
|
const page = config.browser.isIncognito
|
||||||
|
? await context.newPage()
|
||||||
|
: await browser.newPage();
|
||||||
|
page.setDefaultNavigationTimeout(config.page.timeout);
|
||||||
|
await page.setUserAgent(getRandomUserAgent());
|
||||||
|
|
||||||
|
if (store.disableAdBlocker) {
|
||||||
|
try {
|
||||||
|
await disableBlockerInPage(page);
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let statusCode = 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await page.goto(link.url, {waitUntil: 'networkidle0'});
|
statusCode = await lookupCard(browser, store, page, link);
|
||||||
} catch {
|
} catch (error: unknown) {
|
||||||
Logger.error(`✖ [${store.name}] ${graphicsCard} skipping; timed out`);
|
logger.error(
|
||||||
await page.close();
|
`✖ [${store.name}] ${link.brand} ${link.series} ${link.model} - ${
|
||||||
continue;
|
(error as Error).message
|
||||||
|
}`
|
||||||
|
);
|
||||||
|
const client = await page.target().createCDPSession();
|
||||||
|
await client.send('Network.clearBrowserCookies');
|
||||||
|
await client.send('Network.clearBrowserCache');
|
||||||
}
|
}
|
||||||
|
|
||||||
const bodyHandle = await page.$('body');
|
// Must apply backoff before closing the page, e.g. if CloudFlare is
|
||||||
const textContent = await page.evaluate(body => body.textContent, bodyHandle);
|
// used to detect bot traffic, it introduces a 5 second page delay
|
||||||
|
// before redirecting to the next page
|
||||||
Logger.debug(textContent);
|
await processBackoffDelay(store, link, statusCode);
|
||||||
|
await closePage(page);
|
||||||
if (includesLabels(textContent, link.oosLabels)) {
|
if (config.browser.isIncognito) {
|
||||||
Logger.info(`✖ [${store.name}] still out of stock: ${graphicsCard}`);
|
await context.close();
|
||||||
} else if (link.captchaLabels && includesLabels(textContent, link.captchaLabels)) {
|
|
||||||
Logger.warn(`✖ [${store.name}] CAPTCHA from: ${graphicsCard}`);
|
|
||||||
} else {
|
|
||||||
Logger.info(`🚀🚀🚀 [${store.name}] ${graphicsCard} IN STOCK 🚀🚀🚀`);
|
|
||||||
Logger.info(link.url);
|
|
||||||
|
|
||||||
if (Config.page.capture === 'true') {
|
|
||||||
Logger.debug('ℹ saving screenshot');
|
|
||||||
await page.screenshot({path: `success-${Date.now()}.png`});
|
|
||||||
}
|
|
||||||
|
|
||||||
const givenUrl = store.cartUrl ? store.cartUrl : link.url;
|
|
||||||
|
|
||||||
if (Config.openBrowser === 'true') {
|
|
||||||
await open(givenUrl);
|
|
||||||
}
|
|
||||||
|
|
||||||
sendNotification(givenUrl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.close();
|
|
||||||
}
|
}
|
||||||
/* eslint-enable no-await-in-loop */
|
/* eslint-enable no-await-in-loop */
|
||||||
|
}
|
||||||
|
|
||||||
|
async function lookupCard(
|
||||||
|
browser: Browser,
|
||||||
|
store: Store,
|
||||||
|
page: Page,
|
||||||
|
link: Link
|
||||||
|
): Promise<number> {
|
||||||
|
const givenWaitFor = store.waitUntil ? store.waitUntil : 'networkidle0';
|
||||||
|
const response: Response | null = await page.goto(link.url, {
|
||||||
|
waitUntil: givenWaitFor
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response) {
|
||||||
|
logger.debug(Print.noResponse(link, store, true));
|
||||||
|
}
|
||||||
|
|
||||||
|
const successStatusCodes = store.successStatusCodes ?? [[0, 399]];
|
||||||
|
const statusCode = response?.status() ?? 0;
|
||||||
|
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 (config.browser.open) {
|
||||||
|
await (link.openCartAction === undefined
|
||||||
|
? open(givenUrl)
|
||||||
|
: link.openCartAction(browser));
|
||||||
|
}
|
||||||
|
|
||||||
|
sendNotification(link, store);
|
||||||
|
|
||||||
|
if (config.page.inStockWaitTime) {
|
||||||
|
inStock[link.url] = true;
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
inStock[link.url] = false;
|
||||||
|
}, 1000 * config.page.inStockWaitTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.page.screenshot) {
|
||||||
|
logger.debug('ℹ saving screenshot');
|
||||||
|
|
||||||
|
link.screenshot = `success-${Date.now()}.png`;
|
||||||
|
await page.screenshot({path: link.screenshot});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return statusCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function lookupCardInStock(store: Store, page: Page, link: Link) {
|
||||||
|
const baseOptions: Selector = {
|
||||||
|
requireVisible: false,
|
||||||
|
selector: store.labels.container ?? 'body',
|
||||||
|
type: 'textContent'
|
||||||
|
};
|
||||||
|
|
||||||
|
if (store.labels.inStock) {
|
||||||
|
const options = {
|
||||||
|
...baseOptions,
|
||||||
|
requireVisible: true,
|
||||||
|
type: 'outerHTML' as const
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!(await pageIncludesLabels(page, store.labels.inStock, options))) {
|
||||||
|
logger.info(Print.outOfStock(link, store, true));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (store.labels.outOfStock) {
|
||||||
|
if (await pageIncludesLabels(page, store.labels.outOfStock, baseOptions)) {
|
||||||
|
logger.info(Print.outOfStock(link, store, true));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (store.labels.bannedSeller) {
|
||||||
|
if (
|
||||||
|
await pageIncludesLabels(page, store.labels.bannedSeller, baseOptions)
|
||||||
|
) {
|
||||||
|
logger.warn(Print.bannedSeller(link, store, true));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (store.labels.maxPrice) {
|
||||||
|
const price = await cardPrice(
|
||||||
|
page,
|
||||||
|
store.labels.maxPrice,
|
||||||
|
config.store.maxPrice.series[link.series],
|
||||||
|
baseOptions
|
||||||
|
);
|
||||||
|
const maxPrice = config.store.maxPrice.series[link.series];
|
||||||
|
if (price) {
|
||||||
|
logger.info(Print.maxPrice(link, store, price, maxPrice, true));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (store.labels.captcha) {
|
||||||
|
if (await pageIncludesLabels(page, store.labels.captcha, baseOptions)) {
|
||||||
|
logger.warn(Print.captcha(link, store, true));
|
||||||
|
await delay(getSleepTime(store));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do API inventory validation in realtime (no cache) if available
|
||||||
|
if (
|
||||||
|
store.realTimeInventoryLookup !== undefined &&
|
||||||
|
link.itemNumber !== undefined
|
||||||
|
) {
|
||||||
|
return store.realTimeInventoryLookup(link.itemNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function tryLookupAndLoop(browser: Browser, store: Store) {
|
||||||
|
if (!browser.isConnected()) {
|
||||||
|
logger.debug(`[${store.name}] Ending this loop as browser is disposed...`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (getStores().has(store.name) && store.linksBuilder) {
|
||||||
|
const lastRunTime = linkBuilderLastRunTimes[store.name] ?? -1;
|
||||||
|
const ttl = store.linksBuilder.ttl ?? Number.MAX_SAFE_INTEGER;
|
||||||
|
if (lastRunTime === -1 || Date.now() - lastRunTime > ttl) {
|
||||||
|
try {
|
||||||
|
await fetchLinks(store, browser);
|
||||||
|
linkBuilderLastRunTimes[store.name] = Date.now();
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error((error as Error).message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.debug(`[${store.name}] Starting lookup...`);
|
||||||
|
try {
|
||||||
|
await lookup(browser, store);
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error(error);
|
||||||
|
}
|
||||||
|
|
||||||
|
const sleepTime = getSleepTime(store);
|
||||||
|
logger.debug(`[${store.name}] Lookup done, next one in ${sleepTime} ms`);
|
||||||
|
setTimeout(tryLookupAndLoop, sleepTime, browser, store);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,129 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Adorama: Store = {
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['please verify you are a human']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: '.buy-section.purchase',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.your-price',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.adorama.com/ev08gp43067k.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/pnv301tfxmpb.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/msig380gxt1.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/ev10g53897kr.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/ev10g53885kr.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/ev10g53895kr.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/ev10g53883kr.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/ev10g53881kr.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/msig38v3x10c.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/png30801tfxb.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/asrx3080o10g.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/astr3080o10g.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.adorama.com/astrx308010g.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.adorama.com/msig390gxt24.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.adorama.com/msig39v3x24c.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.adorama.com/asrtx309024g.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.adorama.com/ast3090o24g.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.adorama.com/asrx3090o24g.html'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'adorama'
|
||||||
|
};
|
||||||
@@ -0,0 +1,171 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const AlternateNL: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.stockStatus',
|
||||||
|
text: ['Direct leverbaar']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'div.price > span',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.stockStatus',
|
||||||
|
text: ['Levertermijn onbekend', 'pre-order']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.alternate.nl/product/1516616'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672756'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672345'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672251'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672753'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672343'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672634'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672867'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673512'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672612'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1674164'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1672868'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673431'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1677989'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1681134'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673520'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix gs',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673442'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673136'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673524'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1680168'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673517'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'amp holo',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1677985'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'amp extreme holo',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1677982'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'twin x2 oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673137'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.nl/product/1673134'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'alternate-nl'
|
||||||
|
};
|
||||||
@@ -0,0 +1,362 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Alternate: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.stockStatus',
|
||||||
|
text: [
|
||||||
|
'auf lager',
|
||||||
|
'ware neu eingetroffen',
|
||||||
|
'in kürze versandfertig',
|
||||||
|
'ware im zulauf'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'div.price > span',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.stockStatus',
|
||||||
|
text: ['liefertermin unbekannt']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.alternate.de/product/1516616'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672868'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672867'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672251'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672634'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673517'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673524'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673512'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673520'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1674164'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phantom gs',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1688597'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix gs',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673442'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1680168'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus xtreme',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1680168'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672756'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672753'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1681134'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673136'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673134'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'twin x2 oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673137'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672343'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672345'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gamerock oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1688594'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1673431'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'amp extreme holo',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1677982'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'amp holo',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1677985'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1677989'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.alternate.de/product/1672612'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672870'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672872'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672259'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672629'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673530'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673531'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673521'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673525'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673529'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix gs',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673440'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus xtreme',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1680670'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1687793'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672744'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672749'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'turbo',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1687703'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'gaming x3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673131'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673135'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673129'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672341'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672346'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1673434'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.alternate.de/product/1672611'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.alternate.de/product/1685588'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.alternate.de/product/1685585'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.alternate.de/product/1685590'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.alternate.de/product/1685584'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url: 'https://www.alternate.de/product/1651220'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url: 'https://www.alternate.de/product/1651221'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'alternate'
|
||||||
|
};
|
||||||
+180
-43
@@ -1,83 +1,220 @@
|
|||||||
import {Store} from './store';
|
import {Store} from './store';
|
||||||
|
|
||||||
export const AmazonCa: Store = {
|
export const AmazonCa: Store = {
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['enter the characters you see below']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: '#desktop_buybox',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'span[class*="PriceString"]',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
links: [
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B07PBLD2MX&Quantity.1=1',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.amazon.ca/dp/B07PBLD2MX'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
brand: 'msi',
|
brand: 'msi',
|
||||||
model: 'gaming trio',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/MSI-GeForce-RTX-3080-10G/dp/B08HR7SV3M?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR7SV3M&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'gaming x trio',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HR7SV3M'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR5SXPS&Quantity.1=1',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HR5SXPS'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'ftw3gaming',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/EVGA-GeForce-Technology-Backplate-10G-P5-3895-KR/dp/B08HR3DPGW?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR3DPGW&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'ftw3',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HR3DPGW'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'ftw3ultra',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/EVGA-GeForce-Technology-Backplate-10G-P5-3897-KR/dp/B08HR3Y5GQ?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR3Y5GQ&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'ftw3 ultra',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HR3Y5GQ'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'xc3ultra',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/EVGA-GeForce-Cooling-Backplate-10G-P5-3885-KR/dp/B08HR55YB5?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR55YB5&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'xc3 ultra',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HR55YB5'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'xc3gaming',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/EVGA-GeForce-Cooling-Backplate-10G-P5-3883-KR/dp/B08HR4RJ3Q?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR4RJ3Q&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'xc3',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HR4RJ3Q'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'xc3black',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/EVGA-GeForce-Gaming-Cooling-10G-P5-3881-KR/dp/B08HR6FMF3?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR6FMF3&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'xc3 black',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HR6FMF3'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'gigabyte',
|
brand: 'gigabyte',
|
||||||
model: 'windforce',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/GIGABYTE-GeForce-Graphics-WINDFORCE-GV-N3080GAMING/dp/B08HJTH61J?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJTH61J&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'gaming oc',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HJTH61J'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'gigabyte',
|
brand: 'gigabyte',
|
||||||
model: 'windforce eagle',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/GIGABYTE-GeForce-Graphics-WINDFORCE-GV-N3080EAGLE/dp/B08HJS2JLJ?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJS2JLJ&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'eagle oc',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HJS2JLJ'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'asus',
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HHDP9DW&Quantity.1=1',
|
||||||
model: 'tuf',
|
model: 'tuf',
|
||||||
url: 'https://www.amazon.ca/Asus-90YV0FB0-M0AM00-TUF-RTX3080-10G-GAMING/dp/B08HHDP9DW?ref_=ast_sto_dp',
|
series: '3080',
|
||||||
oosLabels: ['currently unavailable'],
|
url: 'https://www.amazon.ca/dp/B08HHDP9DW'
|
||||||
captchaLabels: ['enter the characters you see below']
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'asus',
|
brand: 'asus',
|
||||||
model: 'tufoc',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/Asus-90YV0FB1-M0AM00-TUF-RTX3080-O10G-GAMING/dp/B08HH5WF97?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HH5WF97&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'tuf oc',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HH5WF97'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJNKT3P&Quantity.1=1',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HJNKT3P'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJQ182D&Quantity.1=1',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HJQ182D'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'msi',
|
brand: 'msi',
|
||||||
model: 'ventus',
|
cartUrl:
|
||||||
url: 'https://www.amazon.ca/MSI-GeForce-RTX-3080-10G/dp/B08HR5SXPS?ref_=ast_sto_dp',
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HR9D2JS&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'ventus 3x oc',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HR9D2JS'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJRF2CN&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HJRF2CN'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJPDJTY&Quantity.1=1',
|
||||||
|
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=B08HJGNJ81&Quantity.1=1',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HJGNJ81'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08HJLLF7G&Quantity.1=1',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.ca/dp/B08HJLLF7G'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
|
||||||
|
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'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
name: 'amazon-ca'
|
name: 'amazon-ca'
|
||||||
|
|||||||
@@ -0,0 +1,521 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const AmazonDe: Store = {
|
||||||
|
backoffStatusCodes: [403, 429, 503],
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: [
|
||||||
|
'geben sie die unten angezeigten zeichen ein',
|
||||||
|
'geben sie die zeichen unten ein'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: '#desktop_buybox',
|
||||||
|
text: ['in den einkaufswagen']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'span[class*="PriceString"]',
|
||||||
|
euroFormat: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B083JX52VG&Quantity.1=1',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.amazon.de/dp/B083JX52VG'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HN7VVLJ&Quantity.1=1',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HN7VVLJ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HN6KYS3&Quantity.1=1',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HN6KYS3'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HN37VQK&Quantity.1=1',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HN37VQK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HN4DSTC&Quantity.1=1',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HN4DSTC'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HGBYWQ6&Quantity.1=1',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HGBYWQ6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HGYXP4C&Quantity.1=1',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HGYXP4C'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HGLN78Q&Quantity.1=1',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HGLN78Q'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HH1BMQQ&Quantity.1=1',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HH1BMQQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HJ9XFNM&Quantity.1=1',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HJ9XFNM'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KHLDS72&Quantity.1=1',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KHLDS72'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HHZVZ3N&Quantity.1=1',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HHZVZ3N'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HLZXHZY&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HLZXHZY'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KH7RL89&Quantity.1=1',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KH7RL89'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08JD6QPXD&Quantity.1=1',
|
||||||
|
model: 'twin x2 oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08JD6QPXD'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HM4V2DH&Quantity.1=1',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HM4V2DH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HM4M621&Quantity.1=1',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HM4M621'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08JCVWTQY&Quantity.1=1',
|
||||||
|
model: 'gaming pro',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08JCVWTQY'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08JCKYYL8&Quantity.1=1',
|
||||||
|
model: 'gaming pro oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08JCKYYL8'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HR1NPPQ&Quantity.1=1',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HR1NPPQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HN642LY&Quantity.1=1',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HN642LY'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HN51T8Q&Quantity.1=1',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HN51T8Q'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HN4FLFJ&Quantity.1=1',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HN4FLFJ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HN5B8FJ&Quantity.1=1',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HN5B8FJ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HGFNPJQ&Quantity.1=1',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HGFNPJQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08J5NMDP7&Quantity.1=1',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08J5NMDP7'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HGS1SXH&Quantity.1=1',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HGS1SXH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HGZ4XSZ&Quantity.1=1',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HGZ4XSZ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HGKQ527&Quantity.1=1',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HGKQ527'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HGTNDL4&Quantity.1=1',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HGTNDL4'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KH7R4FQ&Quantity.1=1',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KH7R4FQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HJPDJTY&Quantity.1=1',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HJPDJTY'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KHKDTSJ&Quantity.1=1',
|
||||||
|
model: 'turbo',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KHKDTSJ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HJRF2CN&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HJRF2CN'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HRBW6VB&Quantity.1=1',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HRBW6VB'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HM661YM&Quantity.1=1',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HM661YM'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08JQQ1VD1&Quantity.1=1',
|
||||||
|
model: 'gaming pro',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08JQQ1VD1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'nvidia',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HR6ZBYJ&Quantity.1=1',
|
||||||
|
model: 'founders edition',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HR6ZBYJ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HJQ182D&Quantity.1=1',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HJQ182D'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HSJ1622&Quantity.1=1',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HSJ1622'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KHFZN9P&Quantity.1=1',
|
||||||
|
model: 'dual oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KHFZN9P'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HT7PR9Y&Quantity.1=1',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HT7PR9Y'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08L8JNTXQ&Quantity.1=1',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08L8JNTXQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KWPDXJZ&Quantity.1=1',
|
||||||
|
model: 'ventus 2x oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KWPDXJZ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08L6PCZTR&Quantity.1=1',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08L6PCZTR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KWN2LZG&Quantity.1=1',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KWN2LZG'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08M13DXSZ&Quantity.1=1',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08M13DXSZ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KHL21CV&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KHL21CV'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08KHL2J5X&Quantity.1=1',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08KHL2J5X'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08L3QCZKZ&Quantity.1=1',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08L3QCZKZ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08L3QZP7W&Quantity.1=1',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08L3QZP7W'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08L3Q41SM&Quantity.1=1',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08L3Q41SM'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HRBR7K9&Quantity.1=1',
|
||||||
|
model: 'twin edge',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HRBR7K9'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08LBVNKT1&Quantity.1=1',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08LBVNKT1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HBF5L3K&Quantity.1=1',
|
||||||
|
model: 'dual fan',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HBF5L3K'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08HBJB7YD&Quantity.1=1',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.de/dp/B08HBJB7YD'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.amazon.de/dp/B08166SLDF'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.amazon.de/dp/B0815XFSGK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.amazon.de/dp/B08164VTWH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.amazon.de/dp/B0815Y8J9N'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08H93ZRK9&Quantity.1=1',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url: 'https://www.amazon.de/dp/B08H93ZRK9'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08H98GVK8&Quantity.1=1',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url: 'https://www.amazon.de/dp/B08H98GVK8'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'amazon-de'
|
||||||
|
};
|
||||||
@@ -0,0 +1,165 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const AmazonEs: Store = {
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['introduzca los caracteres que ve a continuación']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: '#desktop_buybox',
|
||||||
|
text: ['añadir a la cesta']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'span[class*="PriceString"]',
|
||||||
|
euroFormat: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B083JX52VG&Quantity.1=1',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.amazon.es/dp/B083JX52VG'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HM4V2DH&Quantity.1=1',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HM4V2DH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGYXP4C&Quantity.1=1',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HGYXP4C'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HJ9XFNM&Quantity.1=1',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HJ9XFNM'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGBYWQ6&Quantity.1=1',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HGBYWQ6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HGLN78Q&Quantity.1=1',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HGLN78Q'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HH1BMQQ&Quantity.1=1',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HH1BMQQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HLZXHZY&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HLZXHZY'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HHZVZ3N&Quantity.1=1',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HHZVZ3N'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN37VQK&Quantity.1=1',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HN37VQK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN4DSTC&Quantity.1=1',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HN4DSTC'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HN6KYS3&Quantity.1=1',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HN6KYS3'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HM4M621&Quantity.1=1',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HM4M621'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08HR1NPPQ&Quantity.1=1',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.es/dp/B08HR1NPPQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.amazon.es/dp/B08166SLDF'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.amazon.es/dp/B0815XFSGK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.amazon.es/dp/B08164VTWH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.es/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.amazon.es/dp/B0815Y8J9N'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'amazon-es'
|
||||||
|
};
|
||||||
@@ -0,0 +1,171 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const AmazonFr: Store = {
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['entrez les caractères que vous voyez ci-dessous']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: '#desktop_buybox',
|
||||||
|
text: ['ajouter au panier']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'span[class*="PriceString"]',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.amazon.fr/dp/B07PBLD2MX'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HR7SV3M'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HR5SXPS'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HR3DPGW'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HR3Y5GQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HR55YB5'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HR4RJ3Q'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HR6FMF3'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HJTH61J'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HJS2JLJ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HHDP9DW'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HH5WF97'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HJNKT3P'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HJQ182D'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HR9D2JS'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HJRF2CN'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HJPDJTY'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HJGNJ81'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08HJLLF7G'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08166SLDF'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.amazon.fr/dp/B0815XFSGK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08164VTWH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.amazon.fr/dp/B0815Y8J9N'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08GSC5D9G'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url: 'https://www.amazon.fr/dp/B08GS1N24H'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'amazon-fr'
|
||||||
|
};
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const AmazonNl: Store = {
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['voer de karakters in die u hieronder ziet']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: '#availability',
|
||||||
|
text: [
|
||||||
|
'op voorraad',
|
||||||
|
'verkrijgbaar vanaf',
|
||||||
|
'wordt gewoonlijk verzonden binnen',
|
||||||
|
'nog slechts'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'span[class*="PriceString"]',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: [
|
||||||
|
{
|
||||||
|
container: '#availability',
|
||||||
|
text: ['tijdelijk niet']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
container: '#outOfStock',
|
||||||
|
text: ['we weten niet of en wanneer dit item weer op voorraad is']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B083GGYNQ6&Quantity.1=1',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.amazon.nl/dp/B083GGYNQ6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.nl/gp/aws/cart/add.html?ASIN.1=B08HM4M621&Quantity.1=1',
|
||||||
|
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',
|
||||||
|
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',
|
||||||
|
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',
|
||||||
|
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',
|
||||||
|
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',
|
||||||
|
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'
|
||||||
|
};
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
import {Link, Store} from './store';
|
||||||
|
import {logger} from '../../logger';
|
||||||
|
import {parseCard} from './helpers/card';
|
||||||
|
|
||||||
|
export const AmazonUk: Store = {
|
||||||
|
backoffStatusCodes: [403, 429, 503],
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['enter the characters you see below']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: '#availability',
|
||||||
|
text: ['in stock']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'span[class*="PriceString"]'
|
||||||
|
},
|
||||||
|
outOfStock: [
|
||||||
|
{
|
||||||
|
container: '#availability',
|
||||||
|
text: ['out of stock', 'unavailable']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
container: '#backInStock',
|
||||||
|
text: ['unavailable']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=B081265T5Z&Quantity.1=1',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.amazon.co.uk/dp/B081265T5Z/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08FC5L3RG&Quantity.1=1',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url: 'https://www.amazon.com/dp/B08FC5L3RG'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08H97NYGP&Quantity.1=1',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url: 'https://www.amazon.co.uk/dp/B08H97NYGP/'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
linksBuilder: {
|
||||||
|
builder: (docElement, series) => {
|
||||||
|
const productElements = docElement.find(
|
||||||
|
'.s-result-list .s-result-item[data-asin]'
|
||||||
|
);
|
||||||
|
const links: Link[] = [];
|
||||||
|
for (let i = 0; i < productElements.length; i++) {
|
||||||
|
const productElement = productElements.eq(i);
|
||||||
|
const asin = productElement.attr()['data-asin'];
|
||||||
|
|
||||||
|
if (!asin) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const url = `https://www.amazon.co.uk/dp/${asin}/`;
|
||||||
|
const titleElement = productElement
|
||||||
|
.find('.sg-col-inner h2 a.a-text-normal[href] span')
|
||||||
|
.first();
|
||||||
|
const title = titleElement.text().trim();
|
||||||
|
|
||||||
|
if (!title || !new RegExp(`RTX.*${series}`, 'i').exec(title)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const card = parseCard(title);
|
||||||
|
|
||||||
|
if (card) {
|
||||||
|
links.push({
|
||||||
|
brand: card.brand as any,
|
||||||
|
cartUrl: `https://www.amazon.co.uk/gp/aws/cart/add.html?ASIN.1=${asin}&Quantity.1=1`,
|
||||||
|
model: card.model,
|
||||||
|
series,
|
||||||
|
url
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
logger.error(`Failed to parse card: ${title}`, {url});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return links;
|
||||||
|
},
|
||||||
|
ttl: 300000,
|
||||||
|
urls: [
|
||||||
|
{
|
||||||
|
series: '3080',
|
||||||
|
url: [
|
||||||
|
'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',
|
||||||
|
'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'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
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',
|
||||||
|
'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'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
name: 'amazon-uk'
|
||||||
|
};
|
||||||
+497
-47
@@ -1,62 +1,512 @@
|
|||||||
import {Store} from './store';
|
import {Store} from './store';
|
||||||
|
|
||||||
export const Amazon: Store = {
|
export const Amazon: Store = {
|
||||||
|
backoffStatusCodes: [403, 429, 503],
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['enter the characters you see below']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: '#desktop_buybox',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'span[class*="PriceString"]'
|
||||||
|
}
|
||||||
|
},
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
brand: 'pny',
|
brand: 'test:brand',
|
||||||
model: 'xlr8',
|
cartUrl:
|
||||||
url: 'https://www.amazon.com/PNY-GeForce-Gaming-Epic-X-Graphics/dp/B08HBR7QBM?ref_=ast_sto_dp',
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B07TDN1SC5&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'test:model',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: 'test:series',
|
||||||
},
|
url: 'https://www.amazon.com/dp/B07TDN1SC5'
|
||||||
{
|
|
||||||
brand: 'msi',
|
|
||||||
model: 'gaming trio',
|
|
||||||
url: 'https://www.amazon.com/MSI-GeForce-RTX-3080-10G/dp/B08HR7SV3M?ref_=ast_sto_dp',
|
|
||||||
oosLabels: ['currently unavailable'],
|
|
||||||
captchaLabels: ['enter the characters you see below']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'evga',
|
|
||||||
model: 'ftw3',
|
|
||||||
url: 'https://www.amazon.com/EVGA-10G-P5-3897-KR-GeForce-Technology-Backplate/dp/B08HR3Y5GQ?ref_=ast_sto_dp',
|
|
||||||
oosLabels: ['currently unavailable'],
|
|
||||||
captchaLabels: ['enter the characters you see below']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'evga',
|
|
||||||
model: 'xc3',
|
|
||||||
url: 'https://www.amazon.com/EVGA-10G-P5-3885-KR-GeForce-Cooling-Backplate/dp/B08HR55YB5?ref_=ast_sto_dp',
|
|
||||||
oosLabels: ['currently unavailable'],
|
|
||||||
captchaLabels: ['enter the characters you see below']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'gigabyte',
|
|
||||||
model: 'windforce',
|
|
||||||
url: 'https://www.amazon.com/GIGABYTE-GeForce-Graphics-WINDFORCE-GV-N3080GAMING/dp/B08HJTH61J?ref_=ast_sto_dp',
|
|
||||||
oosLabels: ['currently unavailable'],
|
|
||||||
captchaLabels: ['enter the characters you see below']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'gigabyte',
|
|
||||||
model: 'windforce eagle',
|
|
||||||
url: 'https://www.amazon.com/GIGABYTE-GeForce-Graphics-WINDFORCE-GV-N3080EAGLE/dp/B08HJS2JLJ?ref_=ast_sto_dp',
|
|
||||||
oosLabels: ['currently unavailable'],
|
|
||||||
captchaLabels: ['enter the characters you see below']
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'asus',
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08L8LG4M3&Quantity.1=1',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08L8LG4M3'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08L8HPKR6&Quantity.1=1',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08L8HPKR6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08LW46GH2&Quantity.1=1',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08LW46GH2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08L8JNTXQ&Quantity.1=1',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08L8JNTXQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08L8KC1J7&Quantity.1=1',
|
||||||
model: 'tuf',
|
model: 'tuf',
|
||||||
url: 'https://www.amazon.com/ASUS-Graphics-DisplayPort-Military-Grade-Certification/dp/B08HH5WF97?ref_=ast_sto_dp',
|
series: '3070',
|
||||||
oosLabels: ['currently unavailable'],
|
url: 'https://www.amazon.com/dp/B08L8KC1J7'
|
||||||
captchaLabels: ['enter the characters you see below']
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08KY266MG'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'msi',
|
brand: 'msi',
|
||||||
model: 'ventus',
|
cartUrl:
|
||||||
url: 'https://www.amazon.com/MSI-GeForce-RTX-3080-10G/dp/B08HR5SXPS?ref_=ast_sto_dp',
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08KWN2LZG&Quantity.1=1',
|
||||||
oosLabels: ['currently unavailable'],
|
model: 'gaming',
|
||||||
captchaLabels: ['enter the characters you see below']
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08KWN2LZG'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HBJB7YD&Quantity.1=1',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HBJB7YD'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HBF5L3K&Quantity.1=1',
|
||||||
|
model: 'xlr8 uprising',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HBF5L3K'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08KWPDXJZ&Quantity.1=1',
|
||||||
|
model: 'ventus 2x oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08KWPDXJZ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08KWLMZV4&Quantity.1=1',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08KWLMZV4'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08LF1CWT2&Quantity.1=1',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08LF1CWT2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08LF32LJ6&Quantity.1=1',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08LF32LJ6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08L8L71SM&Quantity.1=1',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08L8L71SM'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08L8L9TCZ&Quantity.1=1',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08L8L9TCZ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08LW46GH2&Quantity.1=1',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08LW46GH2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08KY266MG&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08KY266MG'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08M13DXSZ&Quantity.1=1',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08M13DXSZ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08M4YFNX2&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08M4YFNX2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08KXZV626&Quantity.1=1',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08KXZV626'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08KY322TH&Quantity.1=1',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.amazon.com/dp/B08KY322TH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HBR7QBM&Quantity.1=1',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HBR7QBM'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HBTJMLJ&Quantity.1=1',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HBTJMLJ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HR7SV3M&Quantity.1=1',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HR7SV3M'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HR3Y5GQ&Quantity.1=1',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HR3Y5GQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HR55YB5&Quantity.1=1',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HR55YB5'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HR3DPGW&Quantity.1=1',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HR3DPGW'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HR4RJ3Q&Quantity.1=1',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HR4RJ3Q'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HR6FMF3&Quantity.1=1',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HR6FMF3'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HJTH61J&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HJTH61J'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HJS2JLJ&Quantity.1=1',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HJS2JLJ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HH5WF97&Quantity.1=1',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HH5WF97'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HHDP9DW&Quantity.1=1',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HHDP9DW'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08J6F174Z&Quantity.1=1',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08J6F174Z'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08J6GMWCQ&Quantity.1=1',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08J6GMWCQ'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HR5SXPS&Quantity.1=1',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HR5SXPS'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HJNKT3P&Quantity.1=1',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HJNKT3P'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HJQ182D&Quantity.1=1',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HJQ182D'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HBQWBHH&Quantity.1=1',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HBQWBHH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HBVX53D&Quantity.1=1',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HBVX53D'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HRBW6VB&Quantity.1=1',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HRBW6VB'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HR9D2JS&Quantity.1=1',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HR9D2JS'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HJRF2CN&Quantity.1=1',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HJRF2CN'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HJPDJTY&Quantity.1=1',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HJPDJTY'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HJGNJ81&Quantity.1=1',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HJGNJ81'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08HJLLF7G&Quantity.1=1',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.amazon.com/dp/B08HJLLF7G'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08166SLDF&Quantity.1=1',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.amazon.com/dp/B08166SLDF'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0815XFSGK&Quantity.1=1',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.amazon.com/dp/product/B0815XFSGK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08164VTWH&Quantity.1=1',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.amazon.com/dp/B08164VTWH'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B0815Y8J9N&Quantity.1=1',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.amazon.com/dp/B0815Y8J9N'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08NS4W2ZY&Quantity.1=1',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url: 'https://www.amazon.com/dp/B08NS4W2ZY'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sapphire',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08MVC76SR&Quantity.1=1',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url: 'https://www.amazon.com/dp/B08MVC76SR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'xfx',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08N6ZLX9B&Quantity.1=1',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url: 'https://www.amazon.com/dp/B08N6ZLX9B'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'powercolor',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08MNZM5TK&Quantity.1=1',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url: 'https://www.amazon.com/dp/B08MNZM5TK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sapphire',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08MVCLBWK&Quantity.1=1',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url: 'https://www.amazon.com/dp/B08MVCLBWK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08FC5L3RG&Quantity.1=1',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url: 'https://www.amazon.com/dp/B08FC5L3RG'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08FC6MR62&Quantity.1=1',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url: 'https://www.amazon.com/dp/B08FC6MR62'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'microsoft',
|
||||||
|
model: 'xbox series x',
|
||||||
|
series: 'xboxsx',
|
||||||
|
url: 'https://www.amazon.com/dp/B08H75RTZ8'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'microsoft',
|
||||||
|
model: 'xbox series s',
|
||||||
|
series: 'xboxss',
|
||||||
|
url: 'https://www.amazon.com/dp/B08G9J44ZN'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'corsair',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B07M63H81H&Quantity.1=1',
|
||||||
|
model: '750 platinum',
|
||||||
|
series: 'sf',
|
||||||
|
url: 'https://www.amazon.com/dp/B07M63H81H'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'corsair',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B07F84FJ1G&Quantity.1=1',
|
||||||
|
model: '600 platinum',
|
||||||
|
series: 'sf',
|
||||||
|
url: 'https://www.amazon.com/dp/B07F84FJ1G'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
name: 'amazon'
|
name: 'amazon'
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const AmdDe: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.btn-shopping-cart',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.product-page-description h4',
|
||||||
|
euroFormat: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
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',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.amd.com/de/direct-buy/5450881400/de'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amd.com/de/direct-buy/5450881500/de?add-to-cart=true',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.amd.com/de/direct-buy/5450881500/de'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amd.com/de/direct-buy/5450881600/de?add-to-cart=true',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.amd.com/de/direct-buy/5450881600/de'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amd.com/de/direct-buy/5450881700/de?add-to-cart=true',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.amd.com/de/direct-buy/5450881700/de'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'amd-de'
|
||||||
|
};
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Amd: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.btn-shopping-cart',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.product-page-description h4',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.amd.com/en/direct-buy/5450881400/us'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amd.com/en/direct-buy/5450881400/us?add-to-cart=true',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.amd.com/en/direct-buy/5450881400/us'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amd.com/en/direct-buy/5450881500/us?add-to-cart=true',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.amd.com/en/direct-buy/5450881500/us'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amd.com/en/direct-buy/5450881600/us?add-to-cart=true',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.amd.com/en/direct-buy/5450881600/us'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amd.com/en/direct-buy/5450881700/us?add-to-cart=true',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.amd.com/en/direct-buy/5450881700/us'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://www.amd.com/en/direct-buy/5458372800/us?add-to-cart=true',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url: 'https://www.amd.com/en/direct-buy/5458372800/us'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'amd'
|
||||||
|
};
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
import {getProductLinksBuilder} from './helpers/card';
|
||||||
|
|
||||||
|
export const Aria: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '#addQuantity',
|
||||||
|
text: ['add to shopping basket']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.priceBig',
|
||||||
|
euroFormat: false // Note: Aria uses non-euroFromat as price seperator
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.fBox',
|
||||||
|
text: ['out of stock', 'there is currently no stock of this item']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.aria.co.uk/Products/Components/Graphics+Cards/NVIDIA+GeForce/GeForce+RTX+2060+Super/Gigabyte+NVIDIA+GeForce+RTX+2060+SUPER+8GB+WINDFORCE+OC+Turing+Graphics+Card+%2B+RTX+Bundle%21?productId=71541'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.aria.co.uk/Products/Components/Processors/AMD+CPUs/Ryzen+9+-+Socket+AM4/AMD+Ryzen+9+5950X+16+Core+AM4+CPU%2FProcessor?productId=72868'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
linksBuilder: {
|
||||||
|
builder: getProductLinksBuilder({
|
||||||
|
productsSelector: '#productListingInner .listTable .listTableTr',
|
||||||
|
sitePrefix: 'https://www.aria.co.uk',
|
||||||
|
titleSelector: 'strong > a[href]'
|
||||||
|
}),
|
||||||
|
urls: [
|
||||||
|
{
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.aria.co.uk/Products/Components/Graphics+Cards/NVIDIA+GeForce/GeForce+RTX+3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.aria.co.uk/Products/Components/Graphics+Cards/NVIDIA+GeForce/GeForce+RTX+3090'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
name: 'aria',
|
||||||
|
waitUntil: 'domcontentloaded'
|
||||||
|
};
|
||||||
@@ -0,0 +1,140 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Arlt: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.articleDesc .shippingtext',
|
||||||
|
text: ['auf Lager', 'Lieferzeit 2-3 Werktage', 'Ware im Zulauf']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.articleprice .price',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.articleDesc .shippingtext',
|
||||||
|
text: ['Neuer Artikel in Kürze verfügbar', 'Liefertermin unbekannt']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/ASUS-GeForce-GTX1650-Super-TUF-GTX1650S-O4G-GAMING.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Gaming/Gaming-Hardware/Grafikkarten/ASUS-Dual-GeForce-RTX-3070.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/ASUS-Dual-GeForce-RTX-3070-OC.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Gaming/Gaming-Hardware/Grafikkarten/ASUS-TUF-Gaming-GeForce-RTX-3070-OC.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3070/ASUS-ROG-Strix-GeForce-RTX-3070.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 2x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3070/MSI-GeForce-RTX-3070-Ventus-2X-OC.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/Gainward-GeForce-RTX-3070-Phoenix.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix gs',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Gaming/Gaming-Hardware/Gainward-GeForce-RTX-3070-Phoenix-GS.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/ASUS-TUF-Gaming-GeForce-RTX-3080-OC.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3080/MSI-GeForce-RTX-3080-Ventus-3X-OC.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3090/ASUS-TUF-Gaming-GeForce-RTX-3090-OC.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3090/ASUS-ROG-Strix-GeForce-RTX-3090-OC.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix gs',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Gaming/Gaming-Hardware/Gainward-GeForce-RTX-3090-Phoenix-GS.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Prozessoren-arlt/AMD-Ryzen-5-5600X-boxed.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Prozessoren-arlt/AMD-Ryzen-7-5800X-boxed.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Prozessoren-arlt/AMD-Ryzen-9-5900X-boxed.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.arlt.com/Hardware/PC-Komponenten/Prozessoren-arlt/AMD-Ryzen-9-5950X-boxed.html'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'arlt'
|
||||||
|
};
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const AsusDe: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.buybox--button',
|
||||||
|
text: ['in den warenkorb']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2766/asus-rog-strix-rtx2060s-o8g-evo-v2-gaming'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2828/asus-rog-strix-rtx3080-10g-gaming'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2829/asus-rog-strix-rtx3080-o10g-gaming'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2824/asus-tuf-rtx3080-10g-gaming'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2825/asus-tuf-rtx3080-o10g-gaming'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2826/asus-rog-strix-rtx3090-24g-gaming'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2827/asus-rog-strix-rtx3090-o24g-gaming'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2822/asus-tuf-rtx3090-24g-gaming'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://webshop.asus.com/de/komponenten/grafikkarten/nvidia-serie/2823/asus-tuf-rtx3090-o24g-gaming'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'asus-de'
|
||||||
|
};
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
import fetch from 'node-fetch';
|
||||||
|
|
||||||
|
export const Asus: Store = {
|
||||||
|
backoffStatusCodes: [403, 429, 503],
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '#item_add_cart',
|
||||||
|
text: ['add to cart']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
itemNumber: '202007AM020000005',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://store.asus.com/us/item/202007AM020000005'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '202009AM160000001',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://store.asus.com/us/item/202009AM160000001'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '202009AM150000004',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://store.asus.com/us/item/202009AM150000004'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '202009AM150000003',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://store.asus.com/us/item/202009AM150000003'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '202009AM150000001',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://store.asus.com/us/item/202009AM150000001'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '202009AM290000002',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://store.asus.com/us/item/202009AM290000002'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'asus',
|
||||||
|
realTimeInventoryLookup: async (itemNumber: string) => {
|
||||||
|
const request_url = 'https://store.asus.com/us/category/get_real_time_data';
|
||||||
|
const response = await fetch(request_url, {
|
||||||
|
body: 'sm_seq_list%5B%5D=' + itemNumber,
|
||||||
|
headers: {
|
||||||
|
'accept-language': 'en-US,en;q=0.9',
|
||||||
|
'cache-control': 'no-cache',
|
||||||
|
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
||||||
|
},
|
||||||
|
method: 'POST'
|
||||||
|
});
|
||||||
|
const response_json = await response.json();
|
||||||
|
|
||||||
|
if (response_json.data[itemNumber] !== undefined) {
|
||||||
|
const item_info = response_json.data[itemNumber].market_info;
|
||||||
|
if (item_info.buy === true || item_info.quantity > 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
successStatusCodes: [[0, 399], 404]
|
||||||
|
};
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Azerty: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.orderdelay',
|
||||||
|
text: ['Volgende werkdag in huis', '1 werkdag', '2-3 werkdagen']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.mod_article .price',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.orderdelay',
|
||||||
|
text: ['Onbekend', 'meer dan 10 werkdagen', 'Pre-order']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/gigabyte/3756757/geforce-rtx-2060-oc-6g-grafische-kaart-geforce-rtx-2060'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus xtreme',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/gigabyte/4349658/aorus-geforce-rtx-3080-xtreme-10g-grafische-kaart-gf-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/msi/4346262/geforce-rtx-3080-ventus-3x-10g-oc-grafische-kaart-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/asus/4346679/tuf-gaming-geforce-rtx-3080-grafische-kaart-gf-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/msi/4346263/geforce-rtx-3080-gaming-x-trio-10g-grafische-kaart-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/asus/4348176/tuf-gaming-geforce-rtx-3080-oc-grafische-kaart-gf-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/asus/4348174/rog-strix-geforce-rtx-3080-oc-grafische-kaart-gf-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/zotac/4352301/gaming-geforce-rtx-3080-trinity-oc-grafische-kaart-gf-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/gigabyte/4349651/aorus-geforce-rtx-3080-master-10g-grafische-kaart-gf-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/pny/4342269/geforce-rtx-3080-xlr8-gaming-revel-epic-x-rgb-triple-fan-gaming-edition-grafische-kaart-gf-rtx-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/asus/4363892/rog-strix-gaming-geforce-rtx-3070-o8g-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/asus/4373096/rog-strix-gaming-geforce-rtx-3070-8g-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/asus/4363910/tuf-gaming-geforce-rtx-3070-oc-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/asus/4373099/tuf-gaming-geforce-rtx-3070-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/inno3d/4369725/geforce-rtx-3070-ichill-x4-videokaart-8-gb-ddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/inno3d/4369726/geforce-rtx-3070-ichill-x3-videokaart-8-gb-ddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/msi/4374747/geforce-rtx-3070-ventus-3x-oc-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/msi/4365398/geforce-rtx-3070-gaming-x-trio-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'dual fan',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/pny/4342270/uprising-dual-fan-geforce-rtx-3070'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/pny/4342271/epic-x-rgb-geforce-rtx-3070-triple-fan-gaming-edition-xlr8--videokaart-8-gb-gddr6x'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/evga/4377247/geforce-rtx-3070-ftw3-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/evga/4377248/xc3-geforce-rtx-3070-xc3-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/evga/4377250/ftw3-ultra-geforce-rtx-3070-videokaart-8-gb-gddr6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://azerty.nl/product/evga/4377252/xc3-black-geforce-rtx-3070-videokaart-8-gb-gddr6'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'azerty'
|
||||||
|
};
|
||||||
+177
-32
@@ -1,62 +1,207 @@
|
|||||||
import {Store} from './store';
|
import {Store} from './store';
|
||||||
|
|
||||||
export const BAndH: Store = {
|
export const BAndH: Store = {
|
||||||
|
backoffStatusCodes: [403, 429],
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: 'div[data-selenium="addToCartSection"]',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'div[data-selenium="pricingPrice"]',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
brand: 'gigabyte',
|
brand: 'test:brand',
|
||||||
model: 'black',
|
model: 'test:model',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1593333-REG/gigabyte_gv_n3080gaming_oc_10gd_geforce_rtx_3080_gaming.html?SID=s1600391647213ytuua52439',
|
series: 'test:series',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1452927-REG/evga_06g_p4_2063_kr_geforce_rtx_2060_xc.html'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'asus',
|
brand: 'asus',
|
||||||
model: 'tuf',
|
model: 'dual',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1593649-REG/asus_tuf_rtx3080_10g_gaming_tuf_gaming_geforce_rtx.html',
|
series: '3070',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1602755-REG/asus_dualrtx30708g_geforce_rtx_3070_8g.html'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'dual fan',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1595984-REG/pny_technologies_vcg30708tfxppb_geforce_rtx_3070_epic_x.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1602756-REG/asus_strixrtx3070o8_rog_strix_geforce_rtx.html'
|
||||||
|
},
|
||||||
|
// TUF was removed from BH, not sure why so commenting out listing for now
|
||||||
|
// {
|
||||||
|
// brand: 'asus',
|
||||||
|
// model: 'tuf',
|
||||||
|
// series: '3080',
|
||||||
|
// url: 'https://www.bhphotovideo.com/c/product/1593649-REG/asus_tuf_rtx3080_10g_gaming_tuf_gaming_geforce_rtx.html'
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
brand: 'gigabyte',
|
brand: 'gigabyte',
|
||||||
model: 'gaming-oc',
|
model: 'gaming oc',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1593333-REG/gigabyte_gv_n3080gaming_oc_10gd_geforce_rtx_3080_gaming.html',
|
series: '3080',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593333-REG/gigabyte_gv_n3080gaming_oc_10gd_geforce_rtx_3080_gaming.html'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'zotac',
|
brand: 'zotac',
|
||||||
model: 'trinity',
|
model: 'trinity',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1592969-REG/zotac_zt_a30800d_10p_gaming_geforce_rtx_3080.html',
|
series: '3080',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1592969-REG/zotac_zt_a30800d_10p_gaming_geforce_rtx_3080.html'
|
||||||
|
},
|
||||||
|
// TUF was removed from BH, not sure why so commenting out listing for now
|
||||||
|
// {
|
||||||
|
// brand: 'asus',
|
||||||
|
// model: 'tuf oc',
|
||||||
|
// series: '3080',
|
||||||
|
// url: 'https://www.bhphotovideo.com/c/product/1593650-REG/asus_tuf_rtx3080_o10g_gaming_tuf_gaming_geforce_rtx.html'
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593996-REG/msi_g3080gxt10_geforce_rtx_3080_gaming.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593997-REG/msi_g3080v3x10c_geforce_rtx_3080_ventus.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593645-REG/msi_geforce_rtx_3080_gaming.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593646-REG/msi_geforce_rtx_3080_ventus.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1592970-REG/zotac_zt_a30900d_10p_gaming_geforce_rtx_3090.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593647-REG/msi_geforce_rtx_3090_gaming.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593994-REG/msi_g3090gxt24_geforce_rtx_3090_gaming.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593648-REG/msi_geforce_rtx_3090_ventus.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593995-REG/msi_g3090v3x24c_geforce_rtx_3090_ventus.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593334-REG/gigabyte_gv_n3090eagle_oc_24gd_geforce_rtx_3090_eagle.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1593335-REG/gigabyte_gv_n3090gaming_oc_24gd_geforce_rtx3090_gaming_oc.html'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'asus',
|
brand: 'asus',
|
||||||
model: 'tuf-oc',
|
model: 'tuf',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1593650-REG/asus_tuf_rtx3080_o10g_gaming_tuf_gaming_geforce_rtx.html',
|
series: '3090',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1594454-REG/asus_90yv0fd0_m0am00_tuf_gaming_geforce_rtx.html'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'msi',
|
brand: 'asus',
|
||||||
model: 'xtrio',
|
model: 'tuf oc',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1593996-REG/msi_g3080gxt10_geforce_rtx_3080_gaming.html',
|
series: '3090',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1594451-REG/asus_90yv0fd1_m0am00_tuf_gaming_geforce_rtx.html'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'msi',
|
brand: 'amd',
|
||||||
model: 'ventus',
|
model: '5950x',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1593997-REG/msi_g3080v3x10c_geforce_rtx_3080_ventus.html',
|
series: 'ryzen5950',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1598372-REG/amd_100_100000059wof_ryzen_9_5950x_3_4.html'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'msi',
|
brand: 'amd',
|
||||||
model: 'TRIO2',
|
model: '5900x',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1593645-REG/msi_geforce_rtx_3080_gaming.html',
|
series: 'ryzen5900',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1598373-REG/amd_100_100000061wof_ryzen_9_5900x_3_7.html'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'msi',
|
brand: 'amd',
|
||||||
model: 'ventus-oc',
|
model: '5800x',
|
||||||
url: 'https://www.bhphotovideo.com/c/product/1593646-REG/msi_geforce_rtx_3080_ventus.html',
|
series: 'ryzen5800',
|
||||||
oosLabels: ['notify when available']
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1598376-REG/amd_100_100000063wof_ryzen_7_5800x_3_8.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1598377-REG/amd_100_100000065box_ryzen_5_5600x_3_7.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1598377-REG/amd_100_100000065box_ryzen_5_5600x_3_7.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'corsair',
|
||||||
|
model: '750 platinum',
|
||||||
|
series: 'sf',
|
||||||
|
url:
|
||||||
|
'https://www.bhphotovideo.com/c/product/1560680-REG/corsair_cp_9020186_na_corsair_sf750_power_supply.html'
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
name: 'bandh'
|
name: 'bandh'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,117 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const BestBuyCa: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.x-product-detail-page .addToCartButton:enabled',
|
||||||
|
text: ['Add to Cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container:
|
||||||
|
'div[class^="productPricingContainer"] span[class^="screenReaderOnly_"',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/msi-nvidia-geforce-rtx-2060-super-gaming-x-8gb-gddr6-video-card/14419420?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/zotac-geforce-rtx-3080-trinity-10gb-gddr6x-video-card/14953249?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/msi-nvidia-geforce-rtx-3080-ventus-3x-10gb-gddr6x-video-card/14950588?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/evga-geforce-rtx-3080-xc3-ultra-gaming-10gb-gddr6x-video-card/14961449?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/asus-tuf-gaming-geforce-rtx-3080-10gb-gddr6x-video-card/14953248?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/asus-rog-strix-geforce-rtx-3080-10gb-gddr6x-video-card/14954116?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/zotac-geforce-rtx-3090-trinity-24gb-gddr6x-video-card/14953250?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/asus-tuf-gaming-geforce-rtx-3090-24gb-gddr6x-video-card/14953247?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/asus-rog-strix-geforce-rtx-3090-24gb-gddr6x-video-card/14954117?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/msi-nvidia-geforce-rtx-3090-ventus-3x-oc-24gb-gddr6x-video-card/14966477?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/msi-nvidia-geforce-rtx-3070-ventus-3x-oc-8gb-gddr6x-video-card/15038016?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/zotac-nvidia-geforce-rtx-3070-twin-edge-oc-8gb-gddr6x-video-card/15000078?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/zotac-nvidia-geforce-rtx-3070-twin-edge-8gb-gddr6x-video-card/15000079?intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'nvidia',
|
||||||
|
model: 'founders edition',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.ca/en-ca/product/nvidia-geforce-rtx-3070-8gb-gddr6-video-card-only-at-best-buy/15078017?intl=nosplash'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'bestbuy-ca',
|
||||||
|
waitUntil: 'domcontentloaded'
|
||||||
|
};
|
||||||
+415
-37
@@ -1,48 +1,426 @@
|
|||||||
import {Store} from './store';
|
import {Store} from './store';
|
||||||
|
|
||||||
export const BestBuy: Store = {
|
export const BestBuy: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '[data-sticky-media-gallery] .fulfillment-add-to-cart-button',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container:
|
||||||
|
'[data-sticky-media-gallery] .priceView-price .priceView-hero-price span',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
brand: 'asus',
|
brand: 'test:brand',
|
||||||
model: 'rog strix',
|
model: 'test:model',
|
||||||
url: 'https://www.bestbuy.com/site/asus-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-strix-graphics-card-black/6432445.p?skuId=6432445',
|
series: 'test:series',
|
||||||
oosLabels: ['sold out', 'coming soon']
|
url:
|
||||||
},
|
'https://www.bestbuy.com/site/evga-ko-ultra-gaming-nvidia-geforce-rtx-2060-6gb-gddr6-pci-express-3-0-graphics-card-black-gray/6403801.p?skuId=6403801&intl=nosplash'
|
||||||
{
|
|
||||||
brand: 'evga',
|
|
||||||
model: 'xc3 black',
|
|
||||||
url: 'https://www.bestbuy.com/site/evga-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card/6432399.p?skuId=6432399',
|
|
||||||
oosLabels: ['sold out', 'coming soon']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'evga',
|
|
||||||
model: 'xc3 ultra',
|
|
||||||
url: 'https://www.bestbuy.com/site/evga-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card/6432400.p?skuId=6432400',
|
|
||||||
oosLabels: ['sold out', 'coming soon']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'gigabyte',
|
|
||||||
model: 'black',
|
|
||||||
url: 'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3080-10g-gddr6x-pci-express-4-0-graphics-card-black/6430620.p?acampID=0&cmp=RMX&loc=Hatch&ref=198&skuId=6430620',
|
|
||||||
oosLabels: ['sold out', 'coming soon']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'gigabyte',
|
|
||||||
model: 'eagle',
|
|
||||||
url: 'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3080-10g-gddr6x-pci-express-4-0-graphics-card-black/6430621.p?skuId=6430621',
|
|
||||||
oosLabels: ['sold out', 'coming soon']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'msi',
|
|
||||||
model: 'ventus 3x',
|
|
||||||
url: 'https://www.bestbuy.com/site/msi-geforce-rtx-3080-ventus-3x-10g-oc-bv-gddr6x-pci-express-4-0-graphic-card-black-silver/6430175.p?skuId=6430175',
|
|
||||||
oosLabels: ['sold out', 'coming soon']
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'nvidia',
|
brand: 'nvidia',
|
||||||
model: 'founder edition',
|
cartUrl: 'https://api.bestbuy.com/click/-/6429442/cart',
|
||||||
url: 'https://www.bestbuy.com/site/nvidia-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card-titanium-and-black/6429440.p?skuId=6429440',
|
model: 'founders edition',
|
||||||
oosLabels: ['sold out', 'coming soon']
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/nvidia-geforce-rtx-3070-8gb-gddr6-pci-express-4-0-graphics-card-dark-platinum-and-black/6429442.p?skuId=6429442&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6439300/cart',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3070-xc3-black-gaming-8gb-gddr6x-pci-express-4-0-graphics-card/6439300.p?skuId=6439300&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6437912/cart',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3070-8g-gddr6-pci-express-4-0-graphics-card-black/6437912.p?skuId=6437912&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6437909/cart',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3070-8g-gddr6-pci-express-4-0-graphics-card-black/6437909.p?skuId=6437909&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432654/cart',
|
||||||
|
model: 'dual fan',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/pny-geforce-rtx-3070-8gb-dual-fan-graphics-card/6432654.p?skuId=6432654&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432653/cart',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/pny-geforce-rtx-3070-8gb-xlr8-gaming-epic-x-rgb-triple-fan-graphics-card/6432653.p?skuId=6432653&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6439384/cart',
|
||||||
|
model: 'aorus',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3070-8g-gddr6-pci-express-4-0-graphics-card-black/6439384.p?skuId=6439384'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6439385/cart',
|
||||||
|
model: 'vision',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3070-8g-gddr6-pci-express-4-0-graphics-card-white/6439385.p?skuId=6439385'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6439128/cart',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/asus-tuf-rtx3070-8gb-gddr6-pci-express-4-0-graphics-card-black/6439128.p?skuId=6439128'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6438278/cart',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/msi-geforce-rtx-3070-ventus-3x-oc-bv-8gb-gddr6-pci-express-4-0-graphics-card-black/6438278.p?skuId=6438278'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6439127/cart',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/asus-rog-strix-rtx3070-8gb-gddr6-pci-express-4-0-graphics-card-black/6439127.p?skuId=6439127'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6439301/cart',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3070-ftw3-ultra-gaming-8gb-gddr6x-pci-express-4-0-graphics-card/6439301.p?skuId=6439301'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6439299/cart',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3070-xc3-ultra-gaming-8gb-gddr6x-pci-express-4-0-graphics-card/6439299.p?skuId=6439299'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'nvidia',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6429440/cart',
|
||||||
|
model: 'founders edition',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/nvidia-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card-titanium-and-black/6429440.p?skuId=6429440&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432445/cart',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/asus-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-strix-graphics-card-black/6432445.p?skuId=6432445&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432399/cart',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card/6432399.p?skuId=6432399&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6436194/cart',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card/6436194.p?skuId=6436194&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432400/cart',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card/6432400.p?skuId=6432400&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6436196/cart',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card/6436196.p?skuId=6436196&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6436191/cart',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card/6436191.p?skuId=6436191&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6430620/cart',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3080-10g-gddr6x-pci-express-4-0-graphics-card-black/6430620.p?acampID=0&cmp=RMX&loc=Hatch&ref=198&skuId=6430620&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6430621/cart',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3080-10g-gddr6x-pci-express-4-0-graphics-card-black/6430621.p?skuId=6430621&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6436219/cart',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3080-10g-gddr6x-pci-express-4-0-graphics-card-white/6436219.p?skuId=6436219&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6436223/cart',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3080-10g-gddr6x-pci-express-4-0-graphics-card-black/6436223.p?skuId=6436223&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6430175/cart',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/msi-geforce-rtx-3080-ventus-3x-10g-oc-bv-gddr6x-pci-express-4-0-graphic-card-black-silver/6430175.p?skuId=6430175&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432655/cart',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/pny-geforce-rtx-3080-10gb-xlr8-gaming-epic-x-rgb-triple-fan-graphics-card/6432655.p?skuId=6432655&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432658/cart',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/pny-geforce-rtx-3080-10gb-xlr8-gaming-epic-x-rgb-triple-fan-graphics-card/6432658.p?skuId=6432658&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'nvidia',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6429434/cart',
|
||||||
|
model: 'founders edition',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/nvidia-geforce-rtx-3090-24gb-gddr6x-pci-express-4-0-graphics-card-titanium-and-black/6429434.p?skuId=6429434&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432447/cart',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/asus-geforce-rtx-3090-24gb-gddr6x-pci-express-4-0-strix-graphics-card-black/6432447.p?skuId=6432447&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432446/cart',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/asus-tuf-rtx-3090-24gb-gddr6x-pci-express-4-0-graphics-card-black/6432446.p?skuId=6432446&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6430215/cart',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/msi-geforce-rtx-3090-ventus-3x-24g-oc-bv-24gb-gddr6x-pci-express-4-0-graphics-card-black-silver/6430215.p?skuId=6430215&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6430623/cart',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3090-24g-gddr6x-pci-express-4-0-graphics-card-black/6430623.p?skuId=6430623&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6430624/cart',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/gigabyte-geforce-rtx-3090-24g-gddr6x-pci-express-4-0-graphics-card-black/6430624.p?skuId=6430624&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6434363/cart',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3090-24gb-gddr6x-pci-express-4-0-graphics-card/6434363.p?skuId=6434363&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6436193/cart',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3090-24gb-gddr6x-pci-express-4-0-graphics-card/6436193.p?skuId=6436193&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6436192/cart',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/evga-geforce-rtx-3090-24gb-gddr6x-pci-express-4-0-graphics-card/6436192.p?skuId=6436192&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6432657/cart',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/pny-geforce-rtx-3090-24gb-xlr8-gaming-epic-x-rgb-triple-fan-graphics-card/6432657.p?skuId=6432657&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6438942/cart',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/amd-ryzen-9-5900x-4th-gen-12-core-24-threads-unlocked-desktop-processor-without-cooler/6438942.p?skuId=6438942&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6438941/cart',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/amd-ryzen-9-5950x-4th-gen-16-core-32-threads-unlocked-desktop-processor-without-cooler/6438941.p?skuId=6438941&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6439000/cart',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/amd-ryzen-7-5800x-4th-gen-8-core-16-threads-unlocked-desktop-processor-without-cooler/6439000.p?skuId=6439000&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6438943/cart',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/amd-ryzen-5-5600x-4th-gen-6-core-12-threads-unlocked-desktop-processor-with-wraith-stealth-cooler/6438943.p?skuId=6438943&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6426149/cart',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/sony-playstation-5-console/6426149.p?skuId=6426149&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6430161/cart',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/sony-playstation-5-digital-edition-console/6430161.p?skuId=6430161&intl=nosplash'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'microsoft',
|
||||||
|
model: 'xbox series x',
|
||||||
|
series: 'xboxsx',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/microsoft-xbox-series-x-1tb-console-black/6428324.p?skuId=6428324'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'microsoft',
|
||||||
|
model: 'xbox series s',
|
||||||
|
series: 'xboxss',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/microsoft-xbox-series-s-512-gb-all-digital-console-disc-free-gaming-white/6430277.p?skuId=6430277'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/msi-radeon-rx-6800-xt-16g-16gb-gddr6-pci-express-4-0-graphics-card-black-black/6440913.p?skuId=6440913'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/msi-radeon-rx-6800-16g-16gb-gddr6-pci-express-4-0-graphics-card-black-black/6441020.p?skuId=6441020'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'xfx',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/xfx-amd-radeon-rx-6800-16gb-gddr6-pci-express-4-0-gaming-graphics-card-black/6442077.p?skuId=6442077'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'xfx',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/xfx-amd-radeon-rx-6800xt-16gb-gddr6-pci-express-4-0-gaming-graphics-card-black/6441226.p?skuId=6441226'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'corsair',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6351845/cart',
|
||||||
|
model: '750 platinum',
|
||||||
|
series: 'sf',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/corsair-sf-series-750w-atx12v-2-4-eps12v-2-92-sfx12v-80-plus-platinum-modular-power-supply-black/6351845.p?skuId=6351845'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'corsair',
|
||||||
|
cartUrl: 'https://api.bestbuy.com/click/-/6351844/cart',
|
||||||
|
model: '600 platinum',
|
||||||
|
series: 'sf',
|
||||||
|
url:
|
||||||
|
'https://www.bestbuy.com/site/corsair-sf-series-600w-atx12v-2-4-eps12v-2-92-sfx12v-80-plus-platinum-modular-power-supply-black/6351844.p?skuId=6351844'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
name: 'bestbuy'
|
name: 'bestbuy'
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
import {getProductLinksBuilder} from './helpers/card';
|
||||||
|
|
||||||
|
export const Box: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '#divBuyButton',
|
||||||
|
text: ['add to basket']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.p-right-wrapper .pq-price',
|
||||||
|
euroFormat: false // Note: Box uses non-euroFromat as price seperator
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
text: ['request stock alert', 'coming soon']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.box.co.uk/Gigabyte-GeForce-RTX-2080-Super-8GB-Wind_2724554.html'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
linksBuilder: {
|
||||||
|
builder: getProductLinksBuilder({
|
||||||
|
productsSelector: '.products-right .p-list',
|
||||||
|
sitePrefix: 'https://www.box.co.uk',
|
||||||
|
titleSelector: '.p-list-section > h3 > a[href]'
|
||||||
|
}),
|
||||||
|
urls: [
|
||||||
|
{
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.box.co.uk/rtx-3070-graphics-cards'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.box.co.uk/rtx-3080-graphics-cards'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.box.co.uk/rtx-3090-graphics-cards'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
name: 'box',
|
||||||
|
waitUntil: 'domcontentloaded'
|
||||||
|
};
|
||||||
@@ -0,0 +1,385 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const CanadaComputers: Store = {
|
||||||
|
labels: {
|
||||||
|
outOfStock: {
|
||||||
|
container: 'div[class="pi-prod-availability"]',
|
||||||
|
text: ['not available online']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181348'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183101'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183500'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183099'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183210'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183635'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183636'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183637'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184168'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184167'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183561'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 2x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183208'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183560'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183638'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183498'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183209'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183100'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183499'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184743'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181376'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181842'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181348'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181354'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181416'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181375'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181420'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184837'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181415'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181353'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184743'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181347'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=182754'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181797'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=182755'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus xtreme',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183098'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183510'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184166'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181798'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181841'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181854'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181413'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181419'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181351'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181350'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181414'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181349'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181853'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus xtreme',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183096'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181352'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=4_64&item_id=183432'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=4_64&item_id=183431'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=4_64&item_id=183430'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.canadacomputers.com/product_info.php?cPath=4_64&item_id=183427'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'canadacomputers',
|
||||||
|
waitUntil: 'domcontentloaded'
|
||||||
|
};
|
||||||
@@ -0,0 +1,344 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Caseking: Store = {
|
||||||
|
backoffStatusCodes: [403, 429],
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.delivery_container',
|
||||||
|
text: ['lagernd', 'im zulauf', 'ab']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '#buybox .article_details_price',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.delivery_container',
|
||||||
|
text: ['unbekannt']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-2060-super-xc-ultra-gaming-8192-mb-gddr6-gcev-385.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/asus-geforce-rtx-3080-rog-strix-10g-10240-mb-gddr6x-gcas-400.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/asus-geforce-rtx-3080-rog-strix-o10g-10240-mb-gddr6x-gcas-399.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/asus-geforce-rtx-3080-tuf-gaming-10g-10240-mb-gddr6x-gcas-394.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/asus-geforce-rtx-3080-tuf-gaming-o10g-10240-mb-gddr6x-gcas-396.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3080-ftw3-gaming-10240-mb-gddr6x-gcev-416.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3080-ftw3-ultra-gaming-10240-mb-gddr6x-gcev-417.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3080-xc3-gaming-10240-mb-gddr6x-gcev-415.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3080-xc3-black-gaming-10240-mb-gddr6x-gcev-414.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3080-xc3-ultra-gaming-10240-mb-gddr6x-gcev-423.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/gigabyte-aorus-geforce-rtx-3080-master-10g-10240-mb-gddr6x-gcgb-331.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/gigabyte-geforce-rtx-3080-eagle-oc-10g-10240-mb-gddr6x-gcgb-326.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/gigabyte-geforce-rtx-3080-gaming-oc-10g-10240-mb-gddr6x-gcgb-327.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/gigabyte-geforce-rtx-3080-vision-oc-10g-10240-mb-gddr6x-gcgb-332.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/inno3d-geforce-rtx-3080-ichill-x3-10240-mb-gddr6x-gci3-170.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/inno3d-geforce-rtx-3080-ichill-x4-10240-mb-gddr6x-gci3-169.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'twin x2 oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/inno3d-geforce-rtx-3080-twin-x2-oc-10240-mb-gddr6x-gci3-171.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/msi-geforce-rtx-3080-gaming-x-trio-10g-10240-mb-gddr6x-gcmc-248.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/msi-geforce-rtx-3080-ventus-3x-10g-oc-10240-mb-gddr6x-gcmc-247.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/pny-geforce-rtx-3080-xlr8-gaming-epic-x-rgb-10240-mb-gddr6x-gcpn-075.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/pny-geforce-rtx-3080-xlr8-gaming-revel-epic-x-rgb-10240-mb-gddr6x-gcpn-076.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'amp holo',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/zotac-gaming-geforce-rtx-3080-amp-holo-10240-mb-gddr6x-gczt-166.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/zotac-gaming-geforce-rtx-3080-trinity-oc-10240-mb-gddr6x-gczt-167.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/zotac-gaming-geforce-rtx-3080-trinity-10240-mb-gddr6x-gczt-163.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/asus-geforce-rtx-3090-rog-strix-24g-24576-mb-gddr6x-gcas-397.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/asus-geforce-rtx-3090-rog-strix-o24g-24576-mb-gddr6x-gcas-398.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/asus-geforce-rtx-3090-tuf-gaming-24g-24576-mb-gddr6x-gcas-393.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/asus-geforce-rtx-3090-tuf-gaming-o24g-24576-mb-gddr6x-gcas-395.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3090-ftw3-gaming-24576-mb-gddr6x-gcev-421.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3090-ftw3-ultra-gaming-24576-mb-gddr6x-gcev-422.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3090-xc3-gaming-24576-mb-gddr6x-gcev-419.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3090-xc3-black-gaming-24576-mb-gddr6x-gcev-418.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/evga-geforce-rtx-3090-xc3-ultra-gaming-24576-mb-gddr6x-gcev-420.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/gigabyte-geforce-rtx-3090-eagle-oc-24g-24576-mb-gddr6x-gcgb-329.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/gigabyte-geforce-rtx-3090-gaming-oc-24g-24576-mb-gddr6x-gcgb-328.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'gaming x3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/inno3d-geforce-rtx-3090-gaming-x3-24576-mb-gddr6x-gci3-172.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/inno3d-geforce-rtx-3090-ichill-x3-24576-mb-gddr6x-gci3-168.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/inno3d-geforce-rtx-3090-ichill-x4-24576-mb-gddr6x-gci3-167.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/msi-geforce-rtx-3090-gaming-x-trio-24g-24576-mb-gddr6x-gcmc-244.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/pny-geforce-rtx-3090-xlr8-gaming-epic-x-rgb-24576-mb-gddr6x-gcpn-073.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/pny-geforce-rtx-3090-xlr8-gaming-revel-epic-x-rgb-24576-mb-gddr6x-gcpn-074.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/zotac-gaming-geforce-rtx-3090-trinity-24576-mb-gddr6x-gczt-162.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/amd-ryzen-5-5600x-3-7-ghz-vermeer-am4-mit-amd-wraith-stealth-kuehler-hpam-202.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/amd-ryzen-7-5800x-3-8-ghz-vermeer-am4-boxed-ohne-kuehler-hpam-203.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/amd-ryzen-9-5900x-3-7-ghz-vermeer-am4-boxed-ohne-kuehler-hpam-204.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.caseking.de/amd-ryzen-9-5950x-3-4-ghz-vermeer-am4-boxed-ohne-kuehler-hpam-205.html'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'caseking'
|
||||||
|
};
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
import {getProductLinksBuilder} from './helpers/card';
|
||||||
|
|
||||||
|
export const Ccl: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '#pnlAddToBasket',
|
||||||
|
text: ['add to basket']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '#pnlPriceText > p',
|
||||||
|
euroFormat: false // Note: CCL uses non-euroFromat as price seperator
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '#pnlSoldOut',
|
||||||
|
text: ['sold out', 'coming soon']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.cclonline.com/product/296443/RTX-2060-SUPER-VENTUS-GP-OC/Graphics-Cards/MSI-GeForce-RTX-2060-SUPER-VENTUS-GP-OC-8GB-Overclocked-Graphics-Card/VGA5671/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.cclonline.com/product/331765/100-100000065BOX/CPU-Processors/AMD-Ryzen-5-5600X-3-7GHz-Hexa-Core-Processor-with-6-Cores-12-Threads-65W-TDP-35MB-Cache-4-6GHz-Turbo-Wraith-Stealth-Cooler/CPU0679/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.cclonline.com/product/331766/100-100000063WOF/CPU-Processors/AMD-Ryzen-7-5800X-3-8GHz-Octa-Core-Processor-with-8-Cores-16-Threads-105W-TDP-36MB-Cache-4-7GHz-Turbo-No-Cooler/CPU0680/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.cclonline.com/product/331767/100-100000061WOF/CPU-Processors/AMD-Ryzen-9-5900X-3-7GHz-Dodeca-Core-Processor-with-12-Cores-24-Threads-105W-TDP-70MB-Cache-4-8GHz-Turbo-No-Cooler/CPU0681/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.cclonline.com/product/331768/100-100000059WOF/CPU-Processors/AMD-Ryzen-9-5950X-3-4GHz-Hexadeca-Core-Processor-with-16-Cores-32-Threads-105W-TDP-72MB-Cache-4-9GHz-Turbo-No-Cooler/CPU0682/'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
linksBuilder: {
|
||||||
|
builder: getProductLinksBuilder({
|
||||||
|
productsSelector: '.productListingContainerOuter .productList',
|
||||||
|
sitePrefix: 'https://www.cclonline.com',
|
||||||
|
titleAttribute: 'title',
|
||||||
|
titleSelector: '.productList_Detail a[title]'
|
||||||
|
}),
|
||||||
|
urls: [
|
||||||
|
{
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.cclonline.com/category/430/PC-Components/Graphics-Cards/GeForce-RTX-3070-Graphics-Cards/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.cclonline.com/category/430/PC-Components/Graphics-Cards/GeForce-RTX-3080-Graphics-Cards/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.cclonline.com/category/430/PC-Components/Graphics-Cards/GeForce-RTX-3090-Graphics-Cards/'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
name: 'ccl',
|
||||||
|
waitUntil: 'domcontentloaded'
|
||||||
|
};
|
||||||
@@ -0,0 +1,558 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Computeruniverse: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.availability',
|
||||||
|
text: [
|
||||||
|
'bestellartikel',
|
||||||
|
'auf lager und sofort lieferbar',
|
||||||
|
'kurzfristig verfügbar'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.product-price',
|
||||||
|
euroFormat: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gainward-geforce-gtx-1660-super-ghost-6-gb-high-end-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-geforce-rtx3070-dual-rtx3070-8g-8-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-geforce-rtx3070-dual-oc-dual-rtx3070-o8g-8-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-rog-strix-geforce-rtx3070-gaming-8-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-rog-strix-geforce-rtx3070-gaming-oc-8-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.computeruniverse.net/de/evga-geforce-rtx3070-xc3-black'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gainward-geforce-rtx3070-phoenix-8-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix gs',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gainward-geforce-rtx3070-phoenix-gs-8-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-geforce-rtx3070-eagle-8-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-geforce-rtx3070-eagle-oc-8-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-geforce-rtx3070-gaming-oc-8-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/inno3d-geforce-rtx3070-ichill-x3'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/inno3d-geforce-rtx3070-ichill-x4'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/msi-geforce-rtx3070-gaming-x-trio-8-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 2x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/msi-geforce-rtx3070-ventus-2x-oc-8-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/msi-geforce-rtx3070-ventus-3x-oc-8-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/palit-geforce-rtx3070-gaming-pro-8-gb'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'dual fan',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.computeruniverse.net/de/pny-geforce-rtx3070-m-dual-8-gb'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/pny-geforce-rtx3070-xlr8-gaming-epic-x-rgb-p-8-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/zotac-gaming-geforce-rtx3070-twin-edge-oc-8-gb-oc'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-rog-strix-geforce-rtx3080-gaming-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-rog-strix-geforce-rtx3080-gaming-oc-10-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-tuf-geforce-rtx3080-gaming-tuf-rtx3080-10g-gaming-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-tuf-geforce-rtx3080-gaming-oc-tuf-rtx3080-o10g-gaming-10-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3080-ftw3-10-gb-high-end-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3080-ultra-ftw3-10-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3080-xc3-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3080-xc3-black-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3080-xc3-ultra-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gainward-geforce-rtx3080-phoenix-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix gs',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gainward-geforce-rtx3080-phoenix-gs-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-aorus-geforce-rtx3080-master-10-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-geforce-rtx3080-eagle-oc-10-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-geforce-rtx3080-gaming-oc-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-geforce-rtx3080-vision-oc-10-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/inno3d-geforce-rtx3080-ichill-x3-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/inno3d-geforce-rtx3080-ichill-x4-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'twin x2 oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/inno3d-geforce-rtx3080-twin-x2-oc-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'kfa2',
|
||||||
|
model: 'sg oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/kfa-geforce-rtx3080-sg-oc-10-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/msi-geforce-rtx3080-gaming-x-trio-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/msi-geforce-rtx3080-ventus-3x-oc-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/palit-geforce-rtx3080-gamingpro-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/palit-geforce-rtx3080-gamingpro-oc-10-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/pny-geforce-rtx-3080-xlr8-gaming-epic-x-rgb-p-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/pny-geforce-rtx3080-xlr8-gaming-epic-x-rgb-m-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'amp holo',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/zotac-geforce-rtx3080-amp-holo-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'amp extreme holo',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/zotac-geforce-rtx3080-amp-extreme-holo-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/zotac-gaming-geforce-rtx3080-trinity-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/zotac-gaming-geforce-rtx3080-trinity-oc-10-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-rog-strix-geforce-rtx3090-gaming-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-rog-strix-geforce-rtx3090-gaming-oc-24-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-tuf-geforce-rtx3090-gaming-tuf-rtx3090-24g-gaming-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/asus-tuf-geforce-rtx3090-gaming-oc-tuf-rtx3090-o24g-gaming-24-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3090-ftw3-gaming-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3090-ftw3-ultra-gaming-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3090-xc3-gaming-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3090-xc3-black-gaming-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/evga-geforce-rtx3090-xc3-ultra-gaming-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gainward-geforce-rtx3090-phoenix-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gainward',
|
||||||
|
model: 'phoenix gs oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gainward-geforce-rtx3090-phoenix-gs-24-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-aorus-geforce-rtx3090-master-24gb'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-geforce-rtx3090-eagle-oc-24-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/gigabyte-geforce-rtx3090-gaming-oc-24-gb-oc'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/inno3d-geforce-rtx3090-ichill-x3-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/inno3d-geforce-rtx3090-ichill-x4-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'kfa2',
|
||||||
|
model: 'sg oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/kfa-geforce-rtx3090-sg-oc-24-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/msi-geforce-rtx3090-gaming-x-trio-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/msi-geforce-rtx3090-ventus-3x-oc-24-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/palit-geforce-rtx3090-gamingpro-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/palit-geforce-rtx3090-gamingpro-oc-24-gb-oc-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/pny-geforce-rtx3090-xlr8-gaming-epic-x-rgb-m-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/pny-geforce-rtx3090-xlr8-gaming-epic-x-rgb-p-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/zotac-gaming-geforce-rtx-3090-trinity-24-gb-enthusiast-grafikkarte'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/amd-ryzen-5-5600x-boxed-mit-wraith-stealth-kuehler'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/amd-ryzen-7-5800x-box-ohne-kuehler'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/amd-ryzen-9-5900x-box-ohne-kuehler'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.computeruniverse.net/de/amd-ryzen-9-5950x-box-ohne-kuehler'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'computeruniverse'
|
||||||
|
};
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Coolblue: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.product-order',
|
||||||
|
text: ['bestel snel', 'morgen in huis']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.js-order-block .sales-price__current',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.product-order',
|
||||||
|
text: ['binnenkort leverbaar', 'tijdelijk uitverkocht']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.coolblue.nl/product/826844/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.coolblue.nl/product/868737/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.coolblue.nl/product/868741/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.coolblue.nl/product/868726/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.coolblue.nl/product/868736/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.coolblue.nl/product/868740/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.coolblue.nl/product/868733/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.coolblue.nl/product/868731/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.coolblue.nl/product/868732/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.coolblue.nl/product/868738/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.coolblue.nl/product/868739/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.coolblue.nl/product/868730/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.coolblue.nl/product/868727/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.coolblue.nl/product/868728/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.coolblue.nl/product/868729/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.coolblue.nl/product/868734/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.coolblue.nl/product/868735/'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'coolblue'
|
||||||
|
};
|
||||||
@@ -0,0 +1,294 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Coolmod: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.product-availability',
|
||||||
|
text: ['Envío']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.text-price-total',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.product-availability',
|
||||||
|
text: ['Sin Stock']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/kfa2-geforce-rtx-2060-super-1-click-oc-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/gigabyte-geforce-rtx-3080-eagle-oc-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/msi-geforce-rtx-3080-ventus-3x-oc-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/asus-geforce-tuf-rtx-3080-gaming-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/gigabyte-geforce-rtx-3080-gaming-oc-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/msi-geforce-rtx-3080-gaming-x-trio-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/asus-geforce-tuf-rtx-3080-oc-gaming-10gb-gddr6x-tarjeta-grfica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/asus-rog-strix-geforce-rtx-3080-oc-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/evga-geforce-rtx-3080-xc3-black-gaming-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/zotac-gaming-geforce-rtx-3080-trinity-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/evga-geforce-rtx-3080-xc3-ultra-gaming-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/asus-rog-strix-geforce-rtx-3080-10gb-gddr6x-tarjeta-grfica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/zotac-gaming-geforce-rtx-3080-trinity-oc-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/gigabyte-geforce-rtx-3080-vision-oc-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/evga-geforce-rtx-3080-xc3-gaming-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/evga-geforce-rtx-3080-ftw3-ultra-gaming-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/gigabyte-aorus-geforce-rtx-3080-master-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus xtreme',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/gigabyte-aorus-geforce-rtx-3080-xtreme-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/evga-geforce-rtx-3080-ftw3-gaming-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/pny-geforce-rtx-3080-10gb-xlr8-gaming-epic-x-rgb-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/pny-geforce-rtx-3080-xlr8-gaming-epic-x-rgb-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'kfa2',
|
||||||
|
model: 'sg oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/kfa2-geforce-rtx-3080-sg-1-click-oc-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/inno3d-geforce-rtx-3080-ichill-x4-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/inno3d-geforce-rtx-3080-ichill-x3-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'twin x2 oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/inno3d-geforce-rtx-3080-twin-x2-oc-10gb-gddr6x-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/amd-ryzen-5-5600x-46ghz-socket-am4-boxed-procesador-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/amd-ryzen-7-5800x-47ghz-socket-am4-boxed-procesador-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/amd-ryzen-9-5900x-48ghz-socket-am4-boxed-procesador-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/amd-ryzen-9-5950x-49ghz-socket-am4-boxed-procesador-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/asus-dual-geforce-rtx-3070-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/msi-geforce-rtx-3070-gaming-x-trio-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 2x',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/msi-geforce-rtx-3070-ventus-2x-oc-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/evga-geforce-rtx-3070-xc3-black-gaming-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/asus-rog-strix-geforce-rtx-3070-gaming-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/gigabyte-geforce-rtx-3070-eagle-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/gigabyte-aorus-geforce-rtx-3070-master-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/pny-geforce-rtx-3070-xlr8-gaming-epic-x-rgb-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/zotac-gaming-geforce-rtx-3070-twin-edge-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'kfa2',
|
||||||
|
model: 'sg oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.coolmod.com/kfa2-geforce-rtx-3070-sg-1-click-oc-8gb-gddr6-tarjeta-grafica-precio'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'coolmod'
|
||||||
|
};
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Corsair: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.add_to_cart_form',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.product-price',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.corsair.com/us/en/Categories/Products/Power-Supply-Units/Power-Supply-Units-Advanced/SF-Series/p/CP-9020181-NA'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'corsair',
|
||||||
|
model: '750 platinum',
|
||||||
|
series: 'sf',
|
||||||
|
url:
|
||||||
|
'https://www.corsair.com/us/en/Categories/Products/Power-Supply-Units/Power-Supply-Units-Advanced/SF-Series/p/CP-9020186-NA'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'corsair',
|
||||||
|
model: '600 platinum',
|
||||||
|
series: 'sf',
|
||||||
|
url:
|
||||||
|
'https://www.corsair.com/us/en/Categories/Products/Power-Supply-Units/Power-Supply-Units-Advanced/SF-Series/p/CP-9020182-NA'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'corsair'
|
||||||
|
};
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
import {getProductLinksBuilder} from './helpers/card';
|
||||||
|
|
||||||
|
export const Currys: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '#product-actions button',
|
||||||
|
text: ['add to basket']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '#product-actions span[class*="ProductPriceBlock__Price"]',
|
||||||
|
euroFormat: false // Note: Currys uses non-euroFromat as price seperator
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '#product-actions .unavailable',
|
||||||
|
text: ['not available for delivery']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.currys.co.uk/gbuk/computing-accessories/components-upgrades/graphics-cards/msi-geforce-rtx-2060-8-gb-super-ventus-gp-oc-graphics-card-10196803-pdt.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.currys.co.uk/gbuk/computing-accessories/components-upgrades/processors/amd-ryzen-5-5600x-processor-10216691-pdt.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.currys.co.uk/gbuk/computing-accessories/components-upgrades/processors/amd-ryzen-7-5800x-processor-10216690-pdt.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.currys.co.uk/gbuk/computing-accessories/components-upgrades/processors/amd-ryzen-9-5900x-processor-10216689-pdt.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.currys.co.uk/gbuk/computing-accessories/components-upgrades/processors/amd-ryzen-9-5950x-processor-10216688-pdt.html'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
linksBuilder: {
|
||||||
|
builder: getProductLinksBuilder({
|
||||||
|
productsSelector: '.resultList .product',
|
||||||
|
sitePrefix: 'https://www.currys.co.uk',
|
||||||
|
titleSelector: '.productTitle',
|
||||||
|
urlSelector: 'a[href]'
|
||||||
|
}),
|
||||||
|
urls: [
|
||||||
|
{
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.currys.co.uk/gbuk/rtx-3080/components-upgrades/graphics-cards/324_3091_30343_xx_ba00013562-bv00313767/xx-criteria.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.currys.co.uk/gbuk/rtx-3090/components-upgrades/graphics-cards/324_3091_30343_xx_ba00013562-bv00313725/xx-criteria.html'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
name: 'currys',
|
||||||
|
waitUntil: 'domcontentloaded'
|
||||||
|
};
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Cyberport: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.tooltipAvailabilityParent',
|
||||||
|
text: ['sofort verfügbar']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '#productDetailOverview .price',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.tooltipAvailabilityParent',
|
||||||
|
text: ['noch nicht verfügbar']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E12-3KL'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E07-51S'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E07-51T'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E07-51L'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E07-51N'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E21-537'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E21-52Y'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2e21-532'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E21-52Z'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E12-3L6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E12-3L7c'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E13-1H4'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2E13-1H7'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2001-71p'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.cyberport.de/?DEEP=2001-71n'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2001-71m'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.cyberport.de?DEEP=2001-71l'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'cyberport'
|
||||||
|
};
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
import {getProductLinksBuilder} from './helpers/card';
|
||||||
|
|
||||||
|
export const Ebuyer: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.purchase-info',
|
||||||
|
text: ['add to basket', 'in stock']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.purchase-info__price .price',
|
||||||
|
euroFormat: false // Note: ebuyer uses non-euroFromat as price seperator
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.purchase-info',
|
||||||
|
text: ['coming soon', 'we are expecting this item on']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/874209-gigabyte-geforce-rtx-2060-windforce-6gb-oc-graphics-card-gv-n2060wf2oc-6gd-v2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url: 'https://www.ebuyer.com/1125329-sony-playstation-5-console-cfi-1015a'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/1125332-sony-playstation-5-digital-edition-cfi-1015b'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/1126988-amd-ryzen-5-5600x-am4-processor-100-100000065box'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/1126987-amd-ryzen-7-5800x-am4-processor-100-100000063wof'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/1126986-amd-ryzen-9-5900x-am4-processor-100-100000061wof'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/1126985-amd-ryzen-9-5950x-am4-processor-100-100000059wof'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
linksBuilder: {
|
||||||
|
builder: getProductLinksBuilder({
|
||||||
|
productsSelector: '#list-view .listing-product',
|
||||||
|
sitePrefix: 'https://www.ebuyer.com',
|
||||||
|
titleSelector: '.listing-product-title',
|
||||||
|
urlSelector: 'a[href]'
|
||||||
|
}),
|
||||||
|
urls: [
|
||||||
|
{
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/store/Components/cat/Graphics-Cards-Nvidia/subcat/GeForce-RTX-3070'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/store/Components/cat/Graphics-Cards-Nvidia/subcat/GeForce-RTX-3080'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.ebuyer.com/store/Components/cat/Graphics-Cards-Nvidia/subcat/GeForce-RTX-3090'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
name: 'ebuyer',
|
||||||
|
waitUntil: 'domcontentloaded'
|
||||||
|
};
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const EvgaEu: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.product-buy-specs',
|
||||||
|
text: ['add to cart']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=10G-P5-3895-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=10G-P5-3897-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=10G-P5-3883-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=10G-P5-3881-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=10G-P5-3885-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=24G-P5-3985-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=24G-P5-3987-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=24G-P5-3973-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=24G-P5-3971-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://eu.evga.com/products/product.aspx?pn=24G-P5-3975-KR'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'evga-eu'
|
||||||
|
};
|
||||||
+76
-11
@@ -1,32 +1,97 @@
|
|||||||
import {Store} from './store';
|
import {Store} from './store';
|
||||||
|
|
||||||
export const Evga: Store = {
|
export const Evga: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.product-buy-specs',
|
||||||
|
text: ['add to cart']
|
||||||
|
}
|
||||||
|
},
|
||||||
links: [
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=06G-P4-2065-KR'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'xc3 black',
|
model: 'xc3 black',
|
||||||
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3881-KR',
|
series: '3070',
|
||||||
oosLabels: ['out of stock']
|
url: 'https://www.evga.com/products/product.aspx?pn=08G-P5-3751-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=08G-P5-3755-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=08G-P5-3767-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3881-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3897-KR'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'ftw3',
|
model: 'ftw3',
|
||||||
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3897-KR',
|
series: '3080',
|
||||||
oosLabels: ['out of stock']
|
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3895-KR'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'xc3 gaming',
|
model: 'xc3',
|
||||||
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3883-KR',
|
series: '3080',
|
||||||
oosLabels: ['out of stock']
|
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3883-KR'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'evga',
|
brand: 'evga',
|
||||||
model: 'xc3 ultra gaming',
|
model: 'xc3 ultra',
|
||||||
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3885-KR',
|
series: '3080',
|
||||||
oosLabels: ['out of stock']
|
url: 'https://www.evga.com/products/product.aspx?pn=10G-P5-3885-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=24G-P5-3971-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=24G-P5-3987-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=24G-P5-3985-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=24G-P5-3973-KR'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.evga.com/products/product.aspx?pn=24G-P5-3975-KR'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
name: 'evga'
|
name: 'evga'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Galaxus: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '#addToCartButton:enabled',
|
||||||
|
text: ['In den Warenkorb']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.productDetail .ZZa5',
|
||||||
|
euroFormat: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.galaxus.de/de/product/11156643'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.galaxus.de/de/product/13987919'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.galaxus.de/de/product/13987918'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.galaxus.de/de/product/13987917'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.galaxus.de/de/product/13987916'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'galaxus'
|
||||||
|
};
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Game: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.buyingOptions',
|
||||||
|
text: ['Pre-order Now', 'Buy New']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: '.buyingOptions .btnPrice',
|
||||||
|
euroFormat: false
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.buyingOptions',
|
||||||
|
text: ['out of stock']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.game.co.uk/en/ea-sports-fifa-21-500gb-ps4-bundle-2832947'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url: 'https://www.game.co.uk/en/playstation-5-console-2826338'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url: 'https://www.game.co.uk/en/playstation-5-digital-edition-2826341'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'game'
|
||||||
|
};
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Gamestop: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: [
|
||||||
|
{
|
||||||
|
container: '.add-to-cart',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
container: '.add-to-cart',
|
||||||
|
text: ['Pre-Order']
|
||||||
|
}
|
||||||
|
],
|
||||||
|
maxPrice: {
|
||||||
|
container: '.primary-details-row .actual-price',
|
||||||
|
euroFormat: false
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.add-to-cart',
|
||||||
|
text: ['not available']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.gamestop.com/nav-pc-hardware-desktops/products/clx-set-tgmsetgxe9600bm-gaming-desktop/11096665'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.gamestop.com/video-games/pc/components/graphics-cards/products/tuf-gaming-geforce-rtx-3080-graphics-card/11109446.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url:
|
||||||
|
'https://www.gamestop.com/video-games/playstation-5/consoles/products/playstation-5/11108140'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url:
|
||||||
|
'https://www.gamestop.com/video-games/playstation-5/consoles/products/playstation-5-digital-edition/11108141'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'microsoft',
|
||||||
|
model: 'xbox series x',
|
||||||
|
series: 'xboxsx',
|
||||||
|
url:
|
||||||
|
'https://www.gamestop.com/video-games/xbox-series-x/consoles/products/xbox-series-x/11108371.html?condition=New'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'microsoft',
|
||||||
|
model: 'xbox series s',
|
||||||
|
series: 'xboxss',
|
||||||
|
url:
|
||||||
|
'https://www.gamestop.com/video-games/xbox-series-x/consoles/products/xbox-series-s-digital-edition/11108372.html?condition=New'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'gamestop',
|
||||||
|
successStatusCodes: [[0, 399], 404]
|
||||||
|
};
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
import {Link, Store} from '..';
|
||||||
|
import {Print, logger} from '../../../logger';
|
||||||
|
import {delay, isStatusCodeInRange} from '../../../util';
|
||||||
|
import {config} from '../../../config';
|
||||||
|
|
||||||
|
type Backoff = {
|
||||||
|
count: number;
|
||||||
|
time: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
const stores: Record<string, Backoff> = {};
|
||||||
|
|
||||||
|
export async function processBackoffDelay(
|
||||||
|
store: Store,
|
||||||
|
link: Link,
|
||||||
|
statusCode: number
|
||||||
|
): Promise<number> {
|
||||||
|
/**
|
||||||
|
* We treat statusCode 0 as successful as some of the puppeteer plugins
|
||||||
|
* cause side-effects resulting in an empty response object even though
|
||||||
|
* the page renders fine and its content is accessible.
|
||||||
|
*/
|
||||||
|
|
||||||
|
let backoffStatusCodes = store.backoffStatusCodes;
|
||||||
|
|
||||||
|
if (!backoffStatusCodes) {
|
||||||
|
backoffStatusCodes = [403];
|
||||||
|
}
|
||||||
|
|
||||||
|
const isBackoff = isStatusCodeInRange(statusCode, backoffStatusCodes);
|
||||||
|
let backoff = stores[store.name];
|
||||||
|
|
||||||
|
if (!backoff) {
|
||||||
|
backoff = {count: 0, time: config.browser.minBackoff};
|
||||||
|
stores[store.name] = backoff;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isBackoff) {
|
||||||
|
if (backoff.count > 0) {
|
||||||
|
backoff.count--;
|
||||||
|
backoff.time = Math.max(backoff.time / 2, config.browser.minBackoff);
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
const backoffTime = backoff.time;
|
||||||
|
logger.debug(
|
||||||
|
Print.backoff(link, store, {delay: backoffTime, statusCode}, true)
|
||||||
|
);
|
||||||
|
|
||||||
|
await delay(backoff.time);
|
||||||
|
|
||||||
|
backoff.count++;
|
||||||
|
backoff.time = Math.min(backoff.time * 2, config.browser.maxBackoff);
|
||||||
|
|
||||||
|
return backoffTime;
|
||||||
|
}
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
import {Link, Model, Series} from '../store';
|
||||||
|
import {logger} from '../../../logger';
|
||||||
|
|
||||||
|
export interface Card {
|
||||||
|
brand: string;
|
||||||
|
model: Model;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface LinksBuilderOptions {
|
||||||
|
productsSelector: string;
|
||||||
|
sitePrefix: string;
|
||||||
|
titleAttribute?: string;
|
||||||
|
titleSelector: string;
|
||||||
|
urlSelector?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const isPartialUrlRegExp = /^\/[^/]/i;
|
||||||
|
|
||||||
|
export function getProductLinksBuilder(options: LinksBuilderOptions) {
|
||||||
|
/* eslint-disable unicorn/no-fn-reference-in-iterator */
|
||||||
|
return (docElement: cheerio.Cheerio, series: Series): Link[] => {
|
||||||
|
const productElements = docElement.find(options.productsSelector);
|
||||||
|
const links: Link[] = [];
|
||||||
|
for (let i = 0; i < productElements.length; i++) {
|
||||||
|
const productElement = productElements.eq(i);
|
||||||
|
const titleElement = productElement.find(options.titleSelector).first();
|
||||||
|
|
||||||
|
const title = options.titleAttribute
|
||||||
|
? titleElement.attr()?.[options.titleAttribute]
|
||||||
|
: titleElement.text()?.replace(/\n/g, ' ').trim();
|
||||||
|
|
||||||
|
if (!title) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
let urlElement = titleElement;
|
||||||
|
|
||||||
|
if (options.urlSelector) {
|
||||||
|
urlElement = urlElement.find(options.urlSelector).first();
|
||||||
|
}
|
||||||
|
|
||||||
|
let url = urlElement.attr()?.href;
|
||||||
|
|
||||||
|
if (!url) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isPartialUrlRegExp.exec(url)) {
|
||||||
|
url = options.sitePrefix + url;
|
||||||
|
}
|
||||||
|
|
||||||
|
const card = parseCard(title);
|
||||||
|
|
||||||
|
if (card) {
|
||||||
|
links.push({
|
||||||
|
brand: card.brand as any,
|
||||||
|
model: card.model,
|
||||||
|
series,
|
||||||
|
url
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
logger.error(`Failed to parse card: ${title}`, {url});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return links;
|
||||||
|
};
|
||||||
|
/* eslint-enable unicorn/no-fn-reference-in-iterator */
|
||||||
|
}
|
||||||
|
|
||||||
|
export function parseCard(name: string): Card | null {
|
||||||
|
name = name.replace(/\w+-\w+-[^ ]+/g, '');
|
||||||
|
name = name.replace(/\([^(]*\)/g, '');
|
||||||
|
name = name.replace(/, .+$/, '');
|
||||||
|
name = name.replace(/ with .+$/, '');
|
||||||
|
|
||||||
|
// Account for incorrect titles, e.g. MSIGeforce
|
||||||
|
name = name.replace(/geforce/i, '');
|
||||||
|
|
||||||
|
name = name.replace(/[^\w ]+/g, '');
|
||||||
|
name = name.replace(/\bgraphics card\b/gi, '');
|
||||||
|
name = name.replace(/\b(?<!founders) edition\b/gi, '');
|
||||||
|
name = name.replace(/\b(series )?bundle\b/gi, '');
|
||||||
|
name = name.replace(/\b\w+ fan\b/gi, '');
|
||||||
|
name = name.replace(/\s{2,}/g, ' ').trim();
|
||||||
|
|
||||||
|
let model = name.split(' ');
|
||||||
|
const brand = model.shift();
|
||||||
|
|
||||||
|
if (!brand) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Split non spaced TitleCase words only after extracting brand
|
||||||
|
model = model
|
||||||
|
.join(' ')
|
||||||
|
.replace(/([A-Z][a-z]+)([A-Z][a-z]+)/g, '$1 $2')
|
||||||
|
.split(' ');
|
||||||
|
|
||||||
|
// Some vendors have oc at the beginning of the product name,
|
||||||
|
// store whether the card contains the term "oc" and remove
|
||||||
|
// it during filtering, then add it to the end of the name.
|
||||||
|
let isOC = false;
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/prefer-regexp-exec */
|
||||||
|
model = model.filter((word) => {
|
||||||
|
if (word.toLowerCase() === 'oc') {
|
||||||
|
isOC = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
!word.match(
|
||||||
|
/^(nvidia|geforce|ge|force|rtx|amp[ae]re|graphics|card|gpu|pci-?e(xpress)?|ray-?tracing|ray|tracing|core|boost|epicx)$/i
|
||||||
|
) &&
|
||||||
|
!word.match(/^(\d+(?:gb?|mhz)?|gb|mhz|g?ddr(\d+x?)?)$/i) &&
|
||||||
|
!word.match(/^(display ?port|hdmi|vga)$/i)
|
||||||
|
);
|
||||||
|
});
|
||||||
|
/* eslint-enable @typescript-eslint/prefer-regexp-exec */
|
||||||
|
|
||||||
|
if (isOC) model.push('oc');
|
||||||
|
if (model.length === 0) return null;
|
||||||
|
|
||||||
|
return {
|
||||||
|
brand: brand.toLowerCase(),
|
||||||
|
model: model
|
||||||
|
.join(' ')
|
||||||
|
.toLowerCase()
|
||||||
|
.replace(/ gaming\b/g, '')
|
||||||
|
.trim() as Model
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,192 @@
|
|||||||
|
import {NvidiaRegionInfo, regionInfos} from '../nvidia-api';
|
||||||
|
import {usingPage, usingResponse} from '../../../util';
|
||||||
|
import {Browser} from 'puppeteer';
|
||||||
|
import {config} from '../../../config';
|
||||||
|
import {logger} from '../../../logger';
|
||||||
|
import open from 'open';
|
||||||
|
|
||||||
|
interface NvidiaSessionTokenJSON {
|
||||||
|
session_token: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NvidiaAddToCardJSON {
|
||||||
|
location: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class NvidiaCart {
|
||||||
|
protected readonly browser: Browser;
|
||||||
|
protected isKeepAlive = false;
|
||||||
|
protected sessionToken: string | null = null;
|
||||||
|
|
||||||
|
public constructor(browser: Browser) {
|
||||||
|
this.browser = browser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public keepAlive() {
|
||||||
|
if (this.isKeepAlive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const callback = async () => {
|
||||||
|
if (!this.isKeepAlive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
await this.refreshSessionToken();
|
||||||
|
|
||||||
|
setTimeout(callback, config.nvidia.sessionTtl);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.isKeepAlive = true;
|
||||||
|
|
||||||
|
void callback();
|
||||||
|
}
|
||||||
|
|
||||||
|
public get fallbackCartUrl(): string {
|
||||||
|
return `https://www.nvidia.com/${this.regionInfo.siteLocale}/geforce/`;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get regionInfo(): NvidiaRegionInfo {
|
||||||
|
const country = config.store.country.toLowerCase();
|
||||||
|
const regionInfo = regionInfos.get(country);
|
||||||
|
if (!regionInfo) {
|
||||||
|
throw new Error(`Unknown country ${country}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return regionInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get sessionUrl(): string {
|
||||||
|
return `https://store.nvidia.com/store/nvidia/SessionToken?format=json&locale=${this.regionInfo.drLocale}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async addToCard(productId: number, name: string): Promise<string> {
|
||||||
|
let cartUrl: string | undefined;
|
||||||
|
logger.info(`🚀🚀🚀 [nvidia] ${name}, starting auto add to cart 🚀🚀🚀`);
|
||||||
|
try {
|
||||||
|
logger.info(`🚀🚀🚀 [nvidia] ${name}, adding to cart 🚀🚀🚀`);
|
||||||
|
let lastError: Error | string | undefined;
|
||||||
|
|
||||||
|
/* eslint-disable no-await-in-loop */
|
||||||
|
for (let i = 0; i < config.nvidia.addToCardAttempts; i++) {
|
||||||
|
try {
|
||||||
|
cartUrl = await this.addToCartAndGetLocationRedirect(productId);
|
||||||
|
|
||||||
|
break;
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error(
|
||||||
|
`✖ [nvidia] ${name} could not automatically add to cart, attempt ${
|
||||||
|
i + 1
|
||||||
|
} of ${config.nvidia.addToCardAttempts}`,
|
||||||
|
error
|
||||||
|
);
|
||||||
|
logger.debug(error);
|
||||||
|
|
||||||
|
lastError = error as Error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* eslint-enable no-await-in-loop */
|
||||||
|
|
||||||
|
if (!cartUrl) {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
||||||
|
throw lastError;
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.info(`🚀🚀🚀 [nvidia] ${name}, opening checkout page 🚀🚀🚀`);
|
||||||
|
logger.info(cartUrl);
|
||||||
|
|
||||||
|
await open(cartUrl);
|
||||||
|
} catch (error: unknown) {
|
||||||
|
logger.error(
|
||||||
|
`✖ [nvidia] ${name} could not automatically add to cart, opening page`,
|
||||||
|
error
|
||||||
|
);
|
||||||
|
|
||||||
|
cartUrl = this.fallbackCartUrl;
|
||||||
|
|
||||||
|
await open(cartUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return cartUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async getSessionToken(): Promise<string> {
|
||||||
|
if (!this.sessionToken) {
|
||||||
|
await this.refreshSessionToken();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.sessionToken) {
|
||||||
|
throw new Error('Failed to create the session_token');
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.sessionToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async refreshSessionToken(): Promise<void> {
|
||||||
|
logger.debug('ℹ [nvidia] refreshing session token');
|
||||||
|
try {
|
||||||
|
const result = await usingResponse(
|
||||||
|
this.browser,
|
||||||
|
this.sessionUrl,
|
||||||
|
async (response) => {
|
||||||
|
return response?.json() as NvidiaSessionTokenJSON | undefined;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
if (
|
||||||
|
typeof result !== 'object' ||
|
||||||
|
result === null ||
|
||||||
|
!('session_token' in result)
|
||||||
|
) {
|
||||||
|
throw new Error('malformed response');
|
||||||
|
}
|
||||||
|
|
||||||
|
this.sessionToken = result.session_token;
|
||||||
|
logger.debug(`ℹ [nvidia] session_token=${result.session_token}`);
|
||||||
|
} catch (error: unknown) {
|
||||||
|
const message: string =
|
||||||
|
typeof error === 'object'
|
||||||
|
? (error as Error).message
|
||||||
|
: (error as string);
|
||||||
|
logger.error(`✖ [nvidia] ${message}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected async addToCartAndGetLocationRedirect(
|
||||||
|
productId: number
|
||||||
|
): Promise<string> {
|
||||||
|
const url = 'https://api-prod.nvidia.com/direct-sales-shop/DR/add-to-cart';
|
||||||
|
const sessionToken = await this.getSessionToken();
|
||||||
|
|
||||||
|
logger.info(`ℹ [nvidia] session_token=${sessionToken}`);
|
||||||
|
|
||||||
|
const locationData = await usingPage(this.browser, async (page) => {
|
||||||
|
page.removeAllListeners('request');
|
||||||
|
|
||||||
|
await page.setRequestInterception(true);
|
||||||
|
|
||||||
|
page.on('request', (interceptedRequest) => {
|
||||||
|
void interceptedRequest.continue({
|
||||||
|
headers: {
|
||||||
|
...interceptedRequest.headers(),
|
||||||
|
'content-type': 'application/json',
|
||||||
|
nvidia_shop_id: sessionToken
|
||||||
|
},
|
||||||
|
method: 'POST',
|
||||||
|
postData: JSON.stringify({
|
||||||
|
products: [{productId, quantity: 1}]
|
||||||
|
})
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
const response = await page.goto(url, {waitUntil: 'networkidle0'});
|
||||||
|
|
||||||
|
if (response === null) {
|
||||||
|
throw new Error('NvidiaAddToCartUnavailable');
|
||||||
|
}
|
||||||
|
|
||||||
|
return response.json() as Promise<NvidiaAddToCardJSON>;
|
||||||
|
});
|
||||||
|
|
||||||
|
return locationData.location;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
import {NvidiaRegionInfo, regionInfos} from '../nvidia-api';
|
||||||
|
import {Browser} from 'puppeteer';
|
||||||
|
import {Link} from '../store';
|
||||||
|
import {NvidiaCart} from './nvidia-cart';
|
||||||
|
import {config} from '../../../config';
|
||||||
|
import {timestampUrlParameter} from '../../timestamp-url-parameter';
|
||||||
|
|
||||||
|
function getRegionInfo(): NvidiaRegionInfo {
|
||||||
|
let country = config.store.country.toLowerCase();
|
||||||
|
if (!regionInfos.has(country)) {
|
||||||
|
country = 'usa';
|
||||||
|
}
|
||||||
|
|
||||||
|
const regionInfo = regionInfos.get(country);
|
||||||
|
if (!regionInfo) {
|
||||||
|
throw new Error(
|
||||||
|
`LogicException could not retrieve region info for ${country}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return regionInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
function nvidiaStockUrl(
|
||||||
|
id: number,
|
||||||
|
drLocale: string,
|
||||||
|
currency: string
|
||||||
|
): string {
|
||||||
|
return (
|
||||||
|
`https://api-prod.nvidia.com/direct-sales-shop/DR/products/${drLocale}/${currency}/${id}?` +
|
||||||
|
timestampUrlParameter().slice(1)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
let cart: NvidiaCart;
|
||||||
|
|
||||||
|
export function generateSetupAction() {
|
||||||
|
return async (browser: Browser) => {
|
||||||
|
cart = new NvidiaCart(browser);
|
||||||
|
|
||||||
|
if (config.browser.open) {
|
||||||
|
cart.keepAlive();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export function generateOpenCartAction(id: number, cardName: string) {
|
||||||
|
return async () => {
|
||||||
|
const url = await cart.addToCard(id, cardName);
|
||||||
|
|
||||||
|
return url;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export function generateLinks(): Link[] {
|
||||||
|
const {
|
||||||
|
drLocale,
|
||||||
|
fe3080Id,
|
||||||
|
fe3090Id,
|
||||||
|
fe2060SuperId,
|
||||||
|
currency
|
||||||
|
} = getRegionInfo();
|
||||||
|
|
||||||
|
const links: Link[] = [];
|
||||||
|
|
||||||
|
if (fe2060SuperId) {
|
||||||
|
links.push({
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
openCartAction: generateOpenCartAction(fe2060SuperId, 'TEST CARD debug'),
|
||||||
|
series: 'test:series',
|
||||||
|
url: nvidiaStockUrl(fe2060SuperId, drLocale, currency)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fe3080Id) {
|
||||||
|
links.push({
|
||||||
|
brand: 'nvidia',
|
||||||
|
model: 'founders edition',
|
||||||
|
openCartAction: generateOpenCartAction(
|
||||||
|
fe3080Id,
|
||||||
|
'nvidia founders edition 3080'
|
||||||
|
),
|
||||||
|
series: '3080',
|
||||||
|
url: nvidiaStockUrl(fe3080Id, drLocale, currency)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fe3090Id) {
|
||||||
|
links.push({
|
||||||
|
brand: 'nvidia',
|
||||||
|
model: 'founders edition',
|
||||||
|
openCartAction: generateOpenCartAction(
|
||||||
|
fe3090Id,
|
||||||
|
'nvidia founders edition 3090'
|
||||||
|
),
|
||||||
|
series: '3090',
|
||||||
|
url: nvidiaStockUrl(fe3090Id, drLocale, currency)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return links;
|
||||||
|
}
|
||||||
+229
-15
@@ -1,30 +1,244 @@
|
|||||||
import {BestBuy} from './bestbuy';
|
import {config, defaultStoreData} from '../../config';
|
||||||
import {BAndH} from './bandh';
|
import {Adorama} from './adorama';
|
||||||
import {Evga} from './evga';
|
import {Alternate} from './alternate';
|
||||||
import {NewEgg} from './newegg';
|
import {AlternateNL} from './alternate-nl';
|
||||||
import {Amazon} from './amazon';
|
import {Amazon} from './amazon';
|
||||||
import {MicroCenter} from './microcenter';
|
|
||||||
import {Config} from '../../config';
|
|
||||||
import {Nvidia} from './nvidia';
|
|
||||||
import {AmazonCa} from './amazon-ca';
|
import {AmazonCa} from './amazon-ca';
|
||||||
|
import {AmazonDe} from './amazon-de';
|
||||||
|
import {AmazonEs} from './amazon-es';
|
||||||
|
import {AmazonFr} from './amazon-fr';
|
||||||
|
import {AmazonNl} from './amazon-nl';
|
||||||
|
import {AmazonUk} from './amazon-uk';
|
||||||
|
import {Amd} from './amd';
|
||||||
|
import {AmdDe} from './amd-de';
|
||||||
|
import {Aria} from './aria';
|
||||||
|
import {Arlt} from './arlt';
|
||||||
|
import {Asus} from './asus';
|
||||||
|
import {AsusDe} from './asus-de';
|
||||||
|
import {Azerty} from './azerty';
|
||||||
|
import {BAndH} from './bandh';
|
||||||
|
import {BestBuy} from './bestbuy';
|
||||||
|
import {BestBuyCa} from './bestbuy-ca';
|
||||||
|
import {Box} from './box';
|
||||||
|
import {CanadaComputers} from './canadacomputers';
|
||||||
|
import {Caseking} from './caseking';
|
||||||
|
import {Ccl} from './ccl';
|
||||||
|
import {Computeruniverse} from './computeruniverse';
|
||||||
|
import {Coolblue} from './coolblue';
|
||||||
|
import {Coolmod} from './coolmod';
|
||||||
|
import {Corsair} from './corsair';
|
||||||
|
import {Currys} from './currys';
|
||||||
|
import {Cyberport} from './cyberport';
|
||||||
|
import {Ebuyer} from './ebuyer';
|
||||||
|
import {Evga} from './evga';
|
||||||
|
import {EvgaEu} from './evga-eu';
|
||||||
|
import {Galaxus} from './galaxus';
|
||||||
|
import {Game} from './game';
|
||||||
|
import {Gamestop} from './gamestop';
|
||||||
|
import {Kabum} from './kabum';
|
||||||
|
import {Mediamarkt} from './mediamarkt';
|
||||||
|
import {MemoryExpress} from './memoryexpress';
|
||||||
|
import {MicroCenter} from './microcenter';
|
||||||
|
import {Mindfactory} from './mindfactory';
|
||||||
|
import {Newegg} from './newegg';
|
||||||
|
import {NeweggCa} from './newegg-ca';
|
||||||
|
import {Notebooksbilliger} from './notebooksbilliger';
|
||||||
|
import {Novatech} from './novatech';
|
||||||
|
import {Nvidia} from './nvidia';
|
||||||
|
import {NvidiaApi} from './nvidia-api';
|
||||||
|
import {OfficeDepot} from './officedepot';
|
||||||
|
import {Overclockers} from './overclockers';
|
||||||
|
import {PCComponentes} from './pccomponentes';
|
||||||
|
import {PlayStation} from './playstation';
|
||||||
|
import {Pny} from './pny';
|
||||||
|
import {ProshopDE} from './proshop-de';
|
||||||
|
import {ProshopDK} from './proshop-dk';
|
||||||
|
import {Saturn} from './saturn';
|
||||||
|
import {Scan} from './scan';
|
||||||
|
import {Store} from './store';
|
||||||
|
import {Target} from './target';
|
||||||
|
import {TopAchat} from './topachat';
|
||||||
|
import {Very} from './very';
|
||||||
|
import {VsGamers} from './vsgamers';
|
||||||
|
import {Walmart} from './walmart';
|
||||||
|
import {Xbox} from './xbox';
|
||||||
|
import {Zotac} from './zotac';
|
||||||
|
import {logger} from '../../logger';
|
||||||
|
|
||||||
const masterList = new Map([
|
export const storeList = new Map([
|
||||||
|
[Adorama.name, Adorama],
|
||||||
|
[Alternate.name, Alternate],
|
||||||
|
[AlternateNL.name, AlternateNL],
|
||||||
[Amazon.name, Amazon],
|
[Amazon.name, Amazon],
|
||||||
[AmazonCa.name, AmazonCa],
|
[AmazonCa.name, AmazonCa],
|
||||||
[BestBuy.name, BestBuy],
|
[AmazonDe.name, AmazonDe],
|
||||||
|
[AmazonEs.name, AmazonEs],
|
||||||
|
[AmazonFr.name, AmazonFr],
|
||||||
|
[AmazonNl.name, AmazonNl],
|
||||||
|
[AmazonUk.name, AmazonUk],
|
||||||
|
[Amd.name, Amd],
|
||||||
|
[AmdDe.name, AmdDe],
|
||||||
|
[Aria.name, Aria],
|
||||||
|
[Arlt.name, Arlt],
|
||||||
|
[Asus.name, Asus],
|
||||||
|
[AsusDe.name, AsusDe],
|
||||||
|
[Azerty.name, Azerty],
|
||||||
[BAndH.name, BAndH],
|
[BAndH.name, BAndH],
|
||||||
|
[BestBuy.name, BestBuy],
|
||||||
|
[BestBuyCa.name, BestBuyCa],
|
||||||
|
[Box.name, Box],
|
||||||
|
[Caseking.name, Caseking],
|
||||||
|
[CanadaComputers.name, CanadaComputers],
|
||||||
|
[Ccl.name, Ccl],
|
||||||
|
[Computeruniverse.name, Computeruniverse],
|
||||||
|
[Coolblue.name, Coolblue],
|
||||||
|
[Coolmod.name, Coolmod],
|
||||||
|
[Corsair.name, Corsair],
|
||||||
|
[Currys.name, Currys],
|
||||||
|
[Cyberport.name, Cyberport],
|
||||||
|
[Ebuyer.name, Ebuyer],
|
||||||
[Evga.name, Evga],
|
[Evga.name, Evga],
|
||||||
|
[EvgaEu.name, EvgaEu],
|
||||||
|
[Galaxus.name, Galaxus],
|
||||||
|
[Game.name, Game],
|
||||||
|
[Gamestop.name, Gamestop],
|
||||||
|
[Kabum.name, Kabum],
|
||||||
|
[Mediamarkt.name, Mediamarkt],
|
||||||
|
[MemoryExpress.name, MemoryExpress],
|
||||||
[MicroCenter.name, MicroCenter],
|
[MicroCenter.name, MicroCenter],
|
||||||
[NewEgg.name, NewEgg],
|
[Mindfactory.name, Mindfactory],
|
||||||
[Nvidia.name, Nvidia]
|
[Newegg.name, Newegg],
|
||||||
|
[NeweggCa.name, NeweggCa],
|
||||||
|
[Notebooksbilliger.name, Notebooksbilliger],
|
||||||
|
[Novatech.name, Novatech],
|
||||||
|
[Nvidia.name, Nvidia],
|
||||||
|
[NvidiaApi.name, NvidiaApi],
|
||||||
|
[OfficeDepot.name, OfficeDepot],
|
||||||
|
[Overclockers.name, Overclockers],
|
||||||
|
[PCComponentes.name, PCComponentes],
|
||||||
|
[PlayStation.name, PlayStation],
|
||||||
|
[Pny.name, Pny],
|
||||||
|
[ProshopDE.name, ProshopDE],
|
||||||
|
[ProshopDK.name, ProshopDK],
|
||||||
|
[Saturn.name, Saturn],
|
||||||
|
[Scan.name, Scan],
|
||||||
|
[Target.name, Target],
|
||||||
|
[TopAchat.name, TopAchat],
|
||||||
|
[Very.name, Very],
|
||||||
|
[VsGamers.name, VsGamers],
|
||||||
|
[Walmart.name, Walmart],
|
||||||
|
[Xbox.name, Xbox],
|
||||||
|
[Zotac.name, Zotac]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const list = new Map();
|
const brands = new Set();
|
||||||
|
const models = new Set();
|
||||||
|
const series = new Set();
|
||||||
|
const stores = new Map();
|
||||||
|
|
||||||
for (const name of Config.stores) {
|
function filterBrandsSeriesModels() {
|
||||||
list.set(name, masterList.get(name));
|
brands.clear();
|
||||||
|
series.clear();
|
||||||
|
models.clear();
|
||||||
|
|
||||||
|
for (const store of storeList.values()) {
|
||||||
|
for (const link of store.links) {
|
||||||
|
brands.add(link.brand);
|
||||||
|
series.add(link.series);
|
||||||
|
models.add(link.model);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (store.minPageSleep === undefined) {
|
||||||
|
store.minPageSleep = defaultStoreData.minPageSleep;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (store.maxPageSleep === undefined) {
|
||||||
|
store.maxPageSleep = defaultStoreData.maxPageSleep;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Stores = Array.from(list.values());
|
function printConfig() {
|
||||||
|
if (config.store.stores.length > 0) {
|
||||||
|
logger.info(
|
||||||
|
`ℹ selected stores: ${config.store.stores
|
||||||
|
.map((store) => store.name)
|
||||||
|
.join(', ')}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.store.showOnlyBrands.length > 0) {
|
||||||
|
logger.info(`ℹ selected brands: ${config.store.showOnlyBrands.join(', ')}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.store.showOnlyModels.length > 0) {
|
||||||
|
logger.info(
|
||||||
|
`ℹ selected models: ${config.store.showOnlyModels
|
||||||
|
.map((entry) => {
|
||||||
|
return entry.series
|
||||||
|
? entry.name + ' (' + entry.series + ')'
|
||||||
|
: entry.name;
|
||||||
|
})
|
||||||
|
.join(', ')}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.store.showOnlySeries.length > 0) {
|
||||||
|
logger.info(`ℹ selected series: ${config.store.showOnlySeries.join(', ')}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function warnIfStoreDeprecated(store: Store) {
|
||||||
|
switch (store.name) {
|
||||||
|
case 'nvidia':
|
||||||
|
case 'nvidia-api':
|
||||||
|
logger.warn(`${store.name} is deprecated in favor of bestbuy`);
|
||||||
|
break;
|
||||||
|
case 'evga':
|
||||||
|
logger.warn(
|
||||||
|
`${store.name} is deprecated since they only support queuing`
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function updateStores() {
|
||||||
|
stores.clear();
|
||||||
|
|
||||||
|
for (const storeData of config.store.stores) {
|
||||||
|
const store = storeList.get(storeData.name);
|
||||||
|
|
||||||
|
if (store) {
|
||||||
|
warnIfStoreDeprecated(store);
|
||||||
|
stores.set(storeData.name, store);
|
||||||
|
store.minPageSleep = storeData.minPageSleep;
|
||||||
|
store.maxPageSleep = storeData.maxPageSleep;
|
||||||
|
} else {
|
||||||
|
logger.warn(`No store named ${storeData.name}, skipping.`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
filterBrandsSeriesModels();
|
||||||
|
printConfig();
|
||||||
|
}
|
||||||
|
|
||||||
|
updateStores();
|
||||||
|
|
||||||
|
export function getAllBrands() {
|
||||||
|
return Array.from(brands);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getAllSeries() {
|
||||||
|
return Array.from(series);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getAllModels() {
|
||||||
|
return Array.from(models);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getStores() {
|
||||||
|
return stores;
|
||||||
|
}
|
||||||
|
|
||||||
export * from './store';
|
export * from './store';
|
||||||
|
|||||||
@@ -0,0 +1,171 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Kabum: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.botao-comprar',
|
||||||
|
text: ['comprar']
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.bot_comprar',
|
||||||
|
text: ['indisponível']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
// AMD
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.kabum.com.br/produto/129461'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.kabum.com.br/produto/129460'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.kabum.com.br/produto/129459'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.kabum.com.br/produto/129451'
|
||||||
|
},
|
||||||
|
// 3070
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/130209'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/130210'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/129938'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual fan',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/128634'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual fan',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/128635'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/130379'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/130380'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 2x oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/130381'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/129208'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.kabum.com.br/produto/129207'
|
||||||
|
},
|
||||||
|
// 3080
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.kabum.com.br/produto/127409'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.kabum.com.br/produto/127410'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.kabum.com.br/produto/121138'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.kabum.com.br/produto/128078'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.kabum.com.br/produto/128051'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.kabum.com.br/produto/128052'
|
||||||
|
},
|
||||||
|
// 3090
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.kabum.com.br/produto/127407'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.kabum.com.br/produto/127408'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.kabum.com.br/produto/127511'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.kabum.com.br/produto/128026'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.kabum.com.br/produto/128199'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'kabum'
|
||||||
|
};
|
||||||
@@ -0,0 +1,255 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Mediamarkt: Store = {
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['Das ging uns leider zu schnell.']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'span[font-family="price"]',
|
||||||
|
euroFormat: false
|
||||||
|
},
|
||||||
|
outOfStock: [
|
||||||
|
{
|
||||||
|
container: '#root',
|
||||||
|
text: ['dieser artikel ist aktuell nicht verfügbar.']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
container: '#root',
|
||||||
|
text: ['leider keine Lieferung möglich']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2592355.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691243.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691244.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691245.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'dual oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691246.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691247.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691439.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691444.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2696163.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2696164.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2694894.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2694896.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 2x oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2694898.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2695942.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2695941.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691365.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2695671.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2681869.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2681871.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2681859.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2681861.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2683942.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2683937.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x3',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2684241.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2684238.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2683227.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2683229.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2683243.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2681863.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'strix oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2681866.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2681855.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2681857.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691441.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus xtreme',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2691440.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'inno3d',
|
||||||
|
model: 'ichill x4',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2684235.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2683226.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 console',
|
||||||
|
series: 'sonyps5c',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2661938.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sony',
|
||||||
|
model: 'ps5 digital',
|
||||||
|
series: 'sonyps5de',
|
||||||
|
url: 'https://www.mediamarkt.de/de/product/-2661939.html'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'mediamarkt'
|
||||||
|
};
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const MemoryExpress: Store = {
|
||||||
|
labels: {
|
||||||
|
maxPrice: {
|
||||||
|
container:
|
||||||
|
'#ProductPricing .GrandTotal.c-capr-pricing__grand-total > div',
|
||||||
|
euroFormat: false
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container:
|
||||||
|
'.c-capr-inventory-selector__details-online .c-capr-inventory-store__availability',
|
||||||
|
text: ['Out of Stock']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: 'https://www.memoryexpress.com/Products/MX79473'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.memoryexpress.com/Products/MX00114450'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.memoryexpress.com/Products/MX00114451'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.memoryexpress.com/Products/MX00114452'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.memoryexpress.com/Products/MX00114455'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'memoryexpress',
|
||||||
|
waitUntil: 'domcontentloaded'
|
||||||
|
};
|
||||||
+128
-37
@@ -1,43 +1,134 @@
|
|||||||
import {Store} from './store';
|
import {Link, Store} from './store';
|
||||||
|
import {config} from '../../config';
|
||||||
|
import {logger} from '../../logger';
|
||||||
|
|
||||||
|
const microCenterLocations = config.store.microCenterLocation;
|
||||||
|
|
||||||
|
const microCenterLocationToId: Map<string, string> = new Map([
|
||||||
|
['web', '029'],
|
||||||
|
['brooklyn', '115'],
|
||||||
|
['brentwood', '095'],
|
||||||
|
['cambridge', '121'],
|
||||||
|
['chicago', '151'],
|
||||||
|
['columbus', '141'],
|
||||||
|
['dallas', '131'],
|
||||||
|
['denver', '181'],
|
||||||
|
['duluth', '065'],
|
||||||
|
['fairfax', '081'],
|
||||||
|
['flushing', '145'],
|
||||||
|
['houston', '155'],
|
||||||
|
['madison-heights', '055'],
|
||||||
|
['marietta', '041'],
|
||||||
|
['mayfield-heights', '051'],
|
||||||
|
['north-jersey', '075'],
|
||||||
|
['overland-park', '191'],
|
||||||
|
['parkville', '125'],
|
||||||
|
['rockville', '085'],
|
||||||
|
['sharonville', '071'],
|
||||||
|
['st-davids', '061'],
|
||||||
|
['st-louis-park', '045'],
|
||||||
|
['tustin', '101'],
|
||||||
|
['westbury', '171'],
|
||||||
|
['westmont', '025'],
|
||||||
|
['yonkers', '105']
|
||||||
|
]);
|
||||||
|
|
||||||
|
let links: Link[] = [];
|
||||||
|
let storeId: string;
|
||||||
|
for (const microCenterLocation of microCenterLocations) {
|
||||||
|
if (microCenterLocationToId.get(microCenterLocation) === undefined) {
|
||||||
|
const logString = `No MicroCenter location named ${microCenterLocation}, skipping.`;
|
||||||
|
logger.warn(logString);
|
||||||
|
} else {
|
||||||
|
storeId = microCenterLocationToId.get(microCenterLocation)!;
|
||||||
|
links = links.concat([
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url: `https://www.microcenter.com/product/618433/evga-geforce-rtx-2060-ko-ultra-overclocked-dual-fan-6gb-gddr6-pcie-30-graphics-card/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: `https://www.microcenter.com/product/628344/evga-geforce-rtx-3080-xc3-ultra-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url: `https://www.microcenter.com/product/628346/evga-geforce-rtx-3080-ftw3-ultra-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3080',
|
||||||
|
url: `https://www.microcenter.com/product/628331/msi-geforce-rtx-3080-ventus-3x-overclocked-triple-fan-10gb-gddr6x-pcie-40-graphics-card/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url: `https://www.microcenter.com/product/628303/asus-geforce-rtx-3080-tuf-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url: `https://www.microcenter.com/product/628330/msi-geforce-rtx-3080-gaming-x-trio-triple-fan-10gb-gddr6x-pcie-40-graphics-card/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url: `https://www.microcenter.com/product/628340/evga-geforce-rtx-3080-xc3-black-triple-fan-10gb-gddr6x-pcie-40-graphics-card/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url: `https://www.microcenter.com/product/628607/zotac-geforce-rtx-3080-trinity-overclocked-triple-fan-10gb-gddr6x-pcie-40-graphics-card/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: `https://www.microcenter.com/product/630285/amd-ryzen-5-5600x-vermeer-37ghz-6-core-am4-boxed-processor-with-wraith-stealth-cooler/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: `https://www.microcenter.com/product/630284/amd-ryzen-7-5800x-vermeer-38ghz-8-core-am4-boxed-processor/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: `https://www.microcenter.com/product/630283/amd-ryzen-9-5900x-vermeer-37ghz-12-core-am4-boxed-processor/?storeid=${storeId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: `https://www.microcenter.com/product/630282/amd-ryzen-9-5950x-vermeer-34ghz-16-core-am4-boxed-processor/?storeid=${storeId}`
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export const MicroCenter: Store = {
|
export const MicroCenter: Store = {
|
||||||
links: [
|
labels: {
|
||||||
{
|
inStock: {
|
||||||
brand: 'evga',
|
container: '#cart-options',
|
||||||
model: 'xc3 ultra gaming',
|
text: ['in stock']
|
||||||
url: 'https://www.microcenter.com/product/628344/evga-geforce-rtx-3080-xc3-ultra-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
|
||||||
oosLabels: ['sold out']
|
|
||||||
},
|
},
|
||||||
{
|
maxPrice: {
|
||||||
brand: 'msi',
|
container: 'span[id="pricing"]',
|
||||||
model: 'ventus 3x overclocked',
|
euroFormat: false
|
||||||
url: 'https://www.microcenter.com/product/628331/msi-geforce-rtx-3080-ventus-3x-overclocked-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
|
||||||
oosLabels: ['sold out']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'asus',
|
|
||||||
model: 'tuf gaming',
|
|
||||||
url: 'https://www.microcenter.com/product/628303/asus-geforce-rtx-3080-tuf-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
|
||||||
oosLabels: ['sold out']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'msi',
|
|
||||||
model: 'gaming x trio',
|
|
||||||
url: 'https://www.microcenter.com/product/628330/msi-geforce-rtx-3080-gaming-x-trio-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
|
||||||
oosLabels: ['sold out']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'evga',
|
|
||||||
model: 'xc3 black',
|
|
||||||
url: 'https://www.microcenter.com/product/628340/evga-geforce-rtx-3080-xc3-black-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
|
||||||
oosLabels: ['sold out']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'zotac',
|
|
||||||
model: 'trinity overclocked',
|
|
||||||
url: 'https://www.microcenter.com/product/628607/zotac-geforce-rtx-3080-trinity-overclocked-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
|
||||||
oosLabels: ['sold out']
|
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
|
links,
|
||||||
name: 'microcenter'
|
name: 'microcenter'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,126 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
|
||||||
|
export const Mindfactory: Store = {
|
||||||
|
labels: {
|
||||||
|
inStock: {
|
||||||
|
container: '.pshipping',
|
||||||
|
text: ['lagernd', 'verfügbar']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'div[class="pprice"]',
|
||||||
|
euroFormat: true
|
||||||
|
},
|
||||||
|
outOfStock: {
|
||||||
|
container: '.pshipping',
|
||||||
|
text: ['ohne liefertermin']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/8GB-MSI-GeForce-RTX2070Super-GAMING-X-DDR6--Retail-_1329683.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/10GB-Gigabyte-RTX3080-AORUS-MASTER-GDDR6X-3xHDMI-3xDP--Retail-_1378681.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'aorus xtreme',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/10GB-Gigabyte-RTX3080-AORUS-XTREME-GDDR6X-3xHDMI-3xDP--Retail-_1380484.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/10GB-Gigabyte-GeForce-RTX-3080-Gaming-OC-3xDP-2x-HDMI--Retail-_1376263.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/10GB-Gigabyte-RTX3080-VISION-OC-GDDR6X-2xHDMI-3xDP--Retail-_1378682.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/10GB-MSI-GeForce-RTX-3080-Gaming-X-TRIO--Retail-_1376481.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/10GB-Palit-GeForce-RTX-3080-GamingPro--Retail-_1376483.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/10GB-Zotac-GeForce-RTX-3080-TRINITY-OC--GDDR6X-_1377143.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/24GB-Gigabyte-GeForce-3090-Gaming-OC--Retail-_1377265.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/24GB-MSI-GeForce-RTX-3090-VENTUS-3X-DDR6--Retail-_1377475.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'palit',
|
||||||
|
model: 'gaming pro',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/24GB-Palit-GeForce-RTX-3090-GamingPro-DDR6--Retail-_1377233.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/AMD-Ryzen-5-5600X-6x-3-70GHz-So-AM4-BOX_1380726.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/AMD-Ryzen-7-5800X-8x-3-80GHz-So-AM4-WOF_1380727.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/AMD-Ryzen-9-5900X-12x-3-70GHz-So-AM4-WOF_1380728.html'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url:
|
||||||
|
'https://www.mindfactory.de/product_info.php/AMD-Ryzen-9-5950X-16x-3-40GHz-So-AM4-WOF_1380729.html'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'mindfactory'
|
||||||
|
};
|
||||||
@@ -0,0 +1,538 @@
|
|||||||
|
import {Store} from './store';
|
||||||
|
import fetch from 'node-fetch';
|
||||||
|
|
||||||
|
export const NeweggCa: Store = {
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['are you a human?']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: 'div#ProductBuy .btn-primary',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'div#app div.product-price > ul > li.price-current > strong',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
brand: 'test:brand',
|
||||||
|
itemNumber: '14-500-495',
|
||||||
|
model: 'test:model',
|
||||||
|
series: 'test:series',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-2060-06g-p4-2066-kr/p/N82E16814487488'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-453',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3080-tuf-rtx3080-10g-gaming/p/N82E16814126453'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-519',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3080-10g-p5-3895-kr/p/N82E16814487519'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-518',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3080-10g-p5-3897-kr/p/N82E16814487518'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-522',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3080-10g-p5-3881-kr/p/N82E16814487522'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-521',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3080-10g-p5-3883-kr/p/N82E16814487521'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-520',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3080-10g-p5-3885-kr/p/N82E16814487520'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
itemNumber: '14-137-600',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-geforce-rtx-3080-rtx-3080-ventus-3x-10g/p/N82E16814137600'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
itemNumber: '14-137-598',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-geforce-rtx-3080-rtx-3080-ventus-3x-10g-oc/p/N82E16814137598'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
itemNumber: '14-137-597',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-geforce-rtx-3080-rtx-3080-gaming-x-trio-10g/p/N82E16814137597'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '149-32-329',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3080-gv-n3080gaming-oc-10gd/p/N82E16814932329'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '149-32-330',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3080-gv-n3080eagle-oc-10gd/p/N82E16814932330'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '14-932-336',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3080-gv-n3080aorus-m-10gd/p/N82E16814932336'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
itemNumber: '14-950-502',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/zotac-geforce-rtx-3080-zt-a30800d-10p/p/N82E16814500502'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-457',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3080-rog-strix-rtx3080-o10g-gaming/p/N82E16814126457'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-452',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3080-tuf-rtx3080-o10g-gaming/p/N82E16814126452'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
itemNumber: '14-500-504',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/zotac-geforce-rtx-3080-zt-t30800j-10p/p/N82E16814500504'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
itemNumber: '14-133-809',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/pny-geforce-rtx-3080-vcg308010tfxppb/p/N82E16814133809'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '14-932-337',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3080-gv-n3080vision-oc-10gd/p/N82E16814932337'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
itemNumber: '14-137-595',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-geforce-rtx-3090-rtx-3090-gaming-x-trio-24g/p/N82E16814137595'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '14-932-327',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3090-gv-n3090gaming-oc-24gd/p/N82E16814932327'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
itemNumber: '14-137-596',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-geforce-rtx-3090-rtx-3090-ventus-3x-24g-oc/p/N82E16814137596'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
itemNumber: '14-500-503',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/zotac-geforce-rtx-3090-zt-a30900d-10p/p/N82E16814500503'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-454',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3090-tuf-rtx3090-o24g-gaming/p/N82E16814126454'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-456',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3090-rog-strix-rtx3090-o24g-gaming/p/N82E16814126456'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-524',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3090-24g-p5-3975-kr/p/N82E16814487524'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-523',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3090-24g-p5-3973-kr/p/N82E16814487523'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-526',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3090-24g-p5-3987-kr/p/N82E16814487526'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-525',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3090-24g-p5-3985-kr/p/N82E16814487525'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
itemNumber: '14-137-602',
|
||||||
|
model: 'ventus 2x',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-geforce-rtx-3070-rtx-3070-ventus-2x-oc/p/N82E16814137602'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
itemNumber: '14-137-601',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-geforce-rtx-3070-rtx-3070-ventus-3x-oc/p/N82E16814137601'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
itemNumber: '14-137-603',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-geforce-rtx-3070-rtx-3070-gaming-x-trio/p/N82E16814137603'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-460',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3070-dual-rtx3070-8g/p/N82E16814126460'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-459',
|
||||||
|
model: 'dual oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3070-dual-rtx3070-o8g/p/N82E16814126459'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '14-932-342',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3070-gv-n3070gaming-oc-8gd/p/N82E16814932342'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-458',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3070-rog-strix-rtx3070-o8g-gaming/p/N82E16814126458'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
itemNumber: '14-500-501',
|
||||||
|
model: 'twin edge',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/zotac-geforce-rtx-3070-zt-a30700e-10p/p/N82E16814500501'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '14-932-344',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3070-gv-n3070eagle-8gd/p/N82E16814932344'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-528',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3070-08g-p5-3751-kr/p/N82E16814487528'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '14-932-360',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3070-gv-n3070vision-oc-8gd/p/N82E16814932360'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
itemNumber: '14-500-505',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/zotac-geforce-rtx-3070-zt-a30700h-10p/p/N82E16814500505'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
itemNumber: '14-133-812',
|
||||||
|
model: 'uprising',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/pny-geforce-rtx-3070-vcg30708dfmpb/p/N82E16814133812'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
itemNumber: '14-126-461',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-geforce-rtx-3070-tuf-rtx3070-o8g-gaming/p/N82E16814126461'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-531',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3070-08g-p5-3765-kr/p/N82E16814487531'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '14-932-359',
|
||||||
|
model: 'aorus',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3070-gv-n3070aorus-m-8gd/p/N82E16814932359'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
itemNumber: '14-932-343',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-geforce-rtx-3070-gv-n3070eagle-oc-8gd/p/N82E16814932343'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-530',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3070-08g-p5-3755-kr/p/N82E16814487530'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-532',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3070-08g-p5-3767-kr/p/N82E16814487532'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
itemNumber: '14-133-811',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/pny-geforce-rtx-3070-vcg30708tfxppb/p/N82E16814133811'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
itemNumber: '14-487-529',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/evga-geforce-rtx-3070-08g-p5-3753-kr/p/N82E16814487529'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
itemNumber: '19-113-663',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.newegg.ca/amd-ryzen-9-5950x/p/N82E16819113663'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
itemNumber: '19-113-664',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.newegg.ca/amd-ryzen-9-5900x/p/N82E16819113664'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
itemNumber: '19-113-665',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.newegg.ca/amd-ryzen-7-5800x/p/N82E16819113665'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
itemNumber: '19-113-666',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.newegg.ca/amd-ryzen-5-5600x/p/N82E16819113666'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-radeon-rx-6800-xt-rx-6800-xt-16g/p/N82E16814137607'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/msi-radeon-rx-6800-rx-6800-16g/p/N82E16814137608'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-radeon-rx-6800-xt-rx6800xt-16g/p/N82E16814126472'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asus-radeon-rx-6800-rx6800-16g/p/N82E16814126473'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asrock',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asrock-radeon-rx-6800-xt-rx-6800-xt-16g/p/N82E16814930045'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asrock',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/asrock-radeon-rx-6800-rx-6800-16g/p/N82E16814930046'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-radeon-rx-6800-xt-gv-r68xt-16gc-b/p/N82E16814932373'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/gigabyte-radeon-rx-6800-gv-r68-16gc-b/p/N82E16814932374'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sapphire',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/sapphire-radeon-rx-6800-xt-21304-01-20g/p/N82E16814202388'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sapphire',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.ca/sapphire-radeon-rx-6800-21305-01-20g/p/N82E16814202389'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-radeon-rx-6800-xt-gv-r68xt-16gc-b/p/N82E16814932373'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
name: 'newegg-ca',
|
||||||
|
realTimeInventoryLookup: async (itemNumber: string) => {
|
||||||
|
const request_url =
|
||||||
|
'https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=' +
|
||||||
|
itemNumber;
|
||||||
|
const response = await fetch(request_url);
|
||||||
|
const response_json = await response.json();
|
||||||
|
return (
|
||||||
|
response_json.MainItem !== undefined &&
|
||||||
|
response_json.MainItem.Instock === true
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
+669
-32
@@ -1,42 +1,679 @@
|
|||||||
import {Store} from './store';
|
import {Store} from './store';
|
||||||
|
import fetch from 'node-fetch';
|
||||||
|
|
||||||
export const NewEgg: Store = {
|
export const Newegg: Store = {
|
||||||
|
labels: {
|
||||||
|
captcha: {
|
||||||
|
container: 'body',
|
||||||
|
text: ['are you a human?']
|
||||||
|
},
|
||||||
|
inStock: {
|
||||||
|
container: 'div#ProductBuy .btn-primary',
|
||||||
|
text: ['add to cart']
|
||||||
|
},
|
||||||
|
maxPrice: {
|
||||||
|
container: 'div#app div.product-price > ul > li.price-current > strong',
|
||||||
|
euroFormat: false
|
||||||
|
}
|
||||||
|
},
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
brand: 'asus',
|
brand: 'test:brand',
|
||||||
model: 'tuf',
|
itemNumber: '14-500-495',
|
||||||
url: 'https://www.newegg.com/asus-geforce-rtx-3080-tuf-rtx3080-10g-gaming/p/N82E16814126453',
|
model: 'test:model',
|
||||||
oosLabels: ['auto notify', 'out of stock'],
|
series: 'test:series',
|
||||||
captchaLabels: ['are you a human?']
|
url:
|
||||||
},
|
'https://www.newegg.com/zotac-geforce-rtx-2060-zt-t20600k-10m/p/N82E16814500495'
|
||||||
{
|
|
||||||
brand: 'evga',
|
|
||||||
model: 'black gaming',
|
|
||||||
url: 'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3881-kr/p/N82E16814487522',
|
|
||||||
oosLabels: ['auto notify', 'out of stock'],
|
|
||||||
captchaLabels: ['are you a human?']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'evga',
|
|
||||||
model: 'argb led icx3',
|
|
||||||
url: 'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3883-kr/p/N82E16814487521',
|
|
||||||
oosLabels: ['auto notify', 'out of stock'],
|
|
||||||
captchaLabels: ['are you a human?']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
brand: 'evga',
|
|
||||||
model: 'xc3 ultra gaming',
|
|
||||||
url: 'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3885-kr/p/N82E16814487520',
|
|
||||||
oosLabels: ['auto notify', 'out of stock'],
|
|
||||||
captchaLabels: ['are you a human?']
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
brand: 'msi',
|
brand: 'msi',
|
||||||
model: 'ventus',
|
cartUrl:
|
||||||
url: 'https://www.newegg.com/msi-geforce-rtx-3080-rtx-3080-ventus-3x-10g/p/N82E16814137600',
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137601',
|
||||||
oosLabels: ['auto notify', 'out of stock'],
|
itemNumber: '14-137-601',
|
||||||
captchaLabels: ['are you a human?']
|
model: 'ventus 3x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3070-rtx-3070-ventus-3x-oc/p/N82E16814137601'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137602',
|
||||||
|
itemNumber: '14-137-602',
|
||||||
|
model: 'ventus 2x oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3070-rtx-3070-ventus-2x-oc/p/N82E16814137602'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137603',
|
||||||
|
itemNumber: '14-137-603',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3070-rtx-3070-gaming-x-trio/p/N82E16814137603'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137605',
|
||||||
|
itemNumber: '14-137-605',
|
||||||
|
model: 'ventus 2x',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3070-rtx-3070-gaming-x-trio/p/N82E16814137605'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932360',
|
||||||
|
itemNumber: '14-932-360',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3070-gv-n3070vision-oc-8gd/p/N82E16814932360'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126459',
|
||||||
|
itemNumber: '14-126-459',
|
||||||
|
model: 'dual oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3070-dual-rtx3070-o8g/p/N82E16814126459'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126458',
|
||||||
|
itemNumber: '14-126-458',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3070-rog-strix-rtx3070-o8g-gaming/p/N82E16814126458'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500501',
|
||||||
|
itemNumber: '14-500-501',
|
||||||
|
model: 'twin edge',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/zotac-geforce-rtx-3070-zt-a30700e-10p/p/N82E16814500501'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500505',
|
||||||
|
itemNumber: '14-500-505',
|
||||||
|
model: 'twin edge oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/zotac-geforce-rtx-3070-zt-a30700h-10p/p/N82E16814500505'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932342',
|
||||||
|
itemNumber: '14-932-342',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3070-gv-n3070gaming-oc-8gd/p/N82E16814932342'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487532',
|
||||||
|
itemNumber: '14-487-532',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3070-08g-p5-3767-kr/p/N82E16814487532'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487530',
|
||||||
|
itemNumber: '14-487-530',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3070-08g-p5-3755-kr/p/N82E16814487530'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487528',
|
||||||
|
itemNumber: '14-487-528',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3070-08g-p5-3751-kr/p/N82E16814487528'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932343',
|
||||||
|
itemNumber: '14-932-343',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3070-gv-n3070eagle-oc-8gd/p/N82E16814932343'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932344',
|
||||||
|
itemNumber: '14-932-344',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3070-gv-n3070eagle-8gd/p/N82E16814932344'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487529',
|
||||||
|
itemNumber: '14-487-529',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3070-08g-p5-3753-kr/p/N82E16814487529'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126460',
|
||||||
|
itemNumber: '14-126-460',
|
||||||
|
model: 'dual',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3070-dual-rtx3070-8g/p/N82E16814126460'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126466',
|
||||||
|
itemNumber: '14-126-466',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3070-ko-rtx3070-o8g-gamin/p/N82E16814126466'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932359',
|
||||||
|
itemNumber: '14-932-359',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3070-gv-n3070aorus-m-8gd/p/N82E16814932359'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487531',
|
||||||
|
itemNumber: '14-487-531',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3070-08g-p5-3765-kr/p/N82E16814487531'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126461',
|
||||||
|
itemNumber: '14-126-461',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3070-tuf-rtx3070-o8g-gaming/p/N82E16814126461'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814133811',
|
||||||
|
itemNumber: '14-133-811',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3070',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/pny-geforce-rtx-3070-vcg30708tfxppb/p/N82E16814133811'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126453',
|
||||||
|
itemNumber: '14-126-453',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3080-tuf-rtx3080-10g-gaming/p/N82E16814126453'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487518',
|
||||||
|
itemNumber: '14-487-518',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3897-kr/p/N82E16814487518'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487519',
|
||||||
|
itemNumber: '14-487-519',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3895-kr/p/N82E16814487519'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487522',
|
||||||
|
itemNumber: '14-487-522',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3881-kr/p/N82E16814487522'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487521',
|
||||||
|
itemNumber: '14-487-521',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3080-10g-p5-3883-kr/p/N82E16814487521'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137600',
|
||||||
|
itemNumber: '14-137-600',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3080-rtx-3080-ventus-3x-10g/p/N82E16814137600'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137598',
|
||||||
|
itemNumber: '14-137-598',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3080-rtx-3080-ventus-3x-10g-oc/p/N82E16814137598'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137597',
|
||||||
|
itemNumber: '14-137-597',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3080-rtx-3080-gaming-x-trio-10g/p/N82E16814137597'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932329',
|
||||||
|
itemNumber: '149-32-329',
|
||||||
|
model: 'gaming oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3080-gv-n3080gaming-oc-10gd/p/N82E16814932329'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932330',
|
||||||
|
itemNumber: '149-32-330',
|
||||||
|
model: 'eagle oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3080-gv-n3080eagle-oc-10gd/p/N82E16814932330'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932336',
|
||||||
|
itemNumber: '14-932-336',
|
||||||
|
model: 'aorus master',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3080-gv-n3080aorus-m-10gd/p/N82E16814932336'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500502',
|
||||||
|
itemNumber: '14-950-502',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/zotac-geforce-rtx-3080-zt-a30800d-10p/p/N82E16814500502'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126457',
|
||||||
|
itemNumber: '14-126-457',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3080-rog-strix-rtx3080-o10g-gaming/p/N82E16814126457'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126452',
|
||||||
|
itemNumber: '14-126-452',
|
||||||
|
model: 'tuf oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3080-tuf-rtx3080-o10g-gaming/p/N82E16814126452'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500504',
|
||||||
|
itemNumber: '14-500-504',
|
||||||
|
model: 'trinity oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/zotac-geforce-rtx-3080-zt-t30800j-10p/p/N82E16814500504'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'pny',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814133809',
|
||||||
|
itemNumber: '14-133-809',
|
||||||
|
model: 'xlr8 revel',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/pny-geforce-rtx-3080-vcg308010tfxppb/p/N82E16814133809'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932337',
|
||||||
|
itemNumber: '14-932-337',
|
||||||
|
model: 'vision oc',
|
||||||
|
series: '3080',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3080-gv-n3080vision-oc-10gd/p/N82E16814932337'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126455',
|
||||||
|
itemNumber: '14-126-455',
|
||||||
|
model: 'tuf',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3090-tuf-rtx3090-24g-gaming/p/N82E16814126455'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814126456',
|
||||||
|
itemNumber: '14-126-456',
|
||||||
|
model: 'strix',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-geforce-rtx-3090-rog-strix-rtx3090-o24g-gaming/p/N82E16814126456'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137595',
|
||||||
|
itemNumber: '14-137-595',
|
||||||
|
model: 'gaming x trio',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3090-rtx-3090-gaming-x-trio-24g/p/N82E16814137595'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137596',
|
||||||
|
itemNumber: '14-137-596',
|
||||||
|
model: 'ventus 3x oc',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3090-rtx-3090-ventus-3x-24g-oc/p/N82E16814137596'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'zotac',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814500503',
|
||||||
|
itemNumber: '14-500-503',
|
||||||
|
model: 'trinity',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/zotac-geforce-rtx-3090-zt-a30900d-10p/p/N82E16814500503'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814137599',
|
||||||
|
itemNumber: '14-137-599',
|
||||||
|
model: 'ventus 3x',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-geforce-rtx-3090-rtx-3090-ventus-3x-24g/p/N82E16814137599'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487525',
|
||||||
|
itemNumber: '14-487-525',
|
||||||
|
model: 'ftw3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3090-24g-p5-3985-kr/p/N82E16814487525'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487524',
|
||||||
|
itemNumber: '14-487-524',
|
||||||
|
model: 'xc3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3090-24g-p5-3975-kr/p/N82E16814487524'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487526',
|
||||||
|
itemNumber: '14-487-526',
|
||||||
|
model: 'ftw3 ultra',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3090-24g-p5-3987-kr/p/N82E16814487526'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487527',
|
||||||
|
itemNumber: '14-487-527',
|
||||||
|
model: 'xc3 black',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3090-24g-p5-3971-kr/p/N82E16814487527'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'evga',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814487523',
|
||||||
|
itemNumber: '14-487-523',
|
||||||
|
model: 'xc3',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/evga-geforce-rtx-3090-24g-p5-3973-kr/p/N82E16814487523'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932327',
|
||||||
|
itemNumber: '14-932-327',
|
||||||
|
model: 'gaming',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3090-gv-n3090gaming-oc-24gd/p/N82E16814932327'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16814932328',
|
||||||
|
itemNumber: '14-932-328',
|
||||||
|
model: 'eagle',
|
||||||
|
series: '3090',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-geforce-rtx-3090-gv-n3090eagle-oc-24gd/p/N82E16814932328'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16819113663',
|
||||||
|
itemNumber: '19-113-663',
|
||||||
|
model: '5950x',
|
||||||
|
series: 'ryzen5950',
|
||||||
|
url: 'https://www.newegg.com/amd-ryzen-9-5950x/p/N82E16819113663'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16819113664',
|
||||||
|
itemNumber: '19-113-664',
|
||||||
|
model: '5900x',
|
||||||
|
series: 'ryzen5900',
|
||||||
|
url: 'https://www.newegg.com/amd-ryzen-9-5900x/p/N82E16819113664'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16819113665',
|
||||||
|
itemNumber: '19-113-665',
|
||||||
|
model: '5800x',
|
||||||
|
series: 'ryzen5800',
|
||||||
|
url: 'https://www.newegg.com/amd-ryzen-9-5900x/p/N82E16819113665'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'amd',
|
||||||
|
cartUrl:
|
||||||
|
'https://secure.newegg.com/Shopping/AddtoCart.aspx?Submit=ADD&ItemList=N82E16819113666',
|
||||||
|
itemNumber: '19-113-666',
|
||||||
|
model: '5600x',
|
||||||
|
series: 'ryzen5600',
|
||||||
|
url: 'https://www.newegg.com/amd-ryzen-5-5600x/p/N82E16819113666'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'microsoft',
|
||||||
|
model: 'xbox series x',
|
||||||
|
series: 'xboxsx',
|
||||||
|
url: 'https://www.newegg.com/p/N82E16868105273'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'microsoft',
|
||||||
|
model: 'xbox series s',
|
||||||
|
series: 'xboxss',
|
||||||
|
url: 'https://www.newegg.com/p/N82E16868105274'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-radeon-rx-6800-xt-gv-r68xt-16gc-b/p/N82E16814932373'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-radeon-rx-6800-xt-rx-6800-xt-16g/p/N82E16814137607'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sapphire',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/sapphire-radeon-rx-6800-xt-21304-01-20g/p/N82E16814202388'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asrock',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asrock-radeon-rx-6800-xt-rx-6800-xt-16g/p/N82E16814930045'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800xt',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-radeon-rx-6800-xt-rx6800xt-16g/p/N82E16814126472'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asus',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asus-radeon-rx-6800-rx6800-16g/p/N82E16814126473'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'asrock',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/asrock-radeon-rx-6800-rx-6800-16g/p/N82E16814930046'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'gigabyte',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/gigabyte-radeon-rx-6800-gv-r68-16gc-b/p/N82E16814932374'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'sapphire',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/sapphire-radeon-rx-6800-21305-01-20g/p/N82E16814202389'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
brand: 'msi',
|
||||||
|
model: 'amd reference',
|
||||||
|
series: 'rx6800',
|
||||||
|
url:
|
||||||
|
'https://www.newegg.com/msi-radeon-rx-6800-rx-6800-16g/p/N82E16814137608'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
name: 'newegg'
|
name: 'newegg',
|
||||||
|
realTimeInventoryLookup: async (itemNumber: string) => {
|
||||||
|
const request_url =
|
||||||
|
'https://www.newegg.com/product/api/ProductRealtime?ItemNumber=' +
|
||||||
|
itemNumber;
|
||||||
|
const response = await fetch(request_url);
|
||||||
|
const response_json = await response.json();
|
||||||
|
return (
|
||||||
|
response_json.MainItem !== undefined &&
|
||||||
|
response_json.MainItem.Instock === true
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user