Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: twitch chat notification, multiple telegram chat ids and german web shop overhaul #528

Merged
merged 67 commits into from
Oct 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
cd5d704
fix(store): amazon-de asus tuf link and added tuf oc version
PaddseL Oct 3, 2020
0d8986d
feat(store): added asus-de store
PaddseL Oct 3, 2020
02587f4
feat(store): added 3080/3090 rog strix/oc to asus-de store
PaddseL Oct 3, 2020
b9195ee
fix: oopsie
PaddseL Oct 3, 2020
da8b2c0
Merge branch 'main' of https://github.com/jef/nvidia-snatcher into main
PaddseL Oct 3, 2020
4fa50e2
feat: allow noitification to multiple telegram chats
PaddseL Oct 3, 2020
5c3e9b4
feat: allow noitification to multiple telegram chats
PaddseL Oct 3, 2020
6557572
fix merge conflict
PaddseL Oct 3, 2020
42fd4b2
Merge branch 'main' of https://github.com/jef/nvidia-snatcher into main
PaddseL Oct 5, 2020
a986744
Merge branch 'main' of https://github.com/jef/nvidia-snatcher into main
PaddseL Oct 5, 2020
db373f7
Merge branch 'main' of https://github.com/jef/nvidia-snatcher into main
PaddseL Oct 6, 2020
bb7253c
Merge branch 'main' of https://github.com/jef/nvidia-snatcher into main
PaddseL Oct 8, 2020
8e43788
generalized model names in german stores and updated readme
PaddseL Oct 8, 2020
539d0e0
oopsie
PaddseL Oct 8, 2020
a8819f2
added cyberport (de) store with 3080s
PaddseL Oct 8, 2020
4dbcd8c
i need to get some sleep
PaddseL Oct 8, 2020
f199596
rly
PaddseL Oct 9, 2020
73ad8b9
fix links
PaddseL Oct 9, 2020
ab98546
added 3090s to nbb (de)
PaddseL Oct 9, 2020
ff1731d
oops
PaddseL Oct 9, 2020
3a2a745
added asus 3090 rog strix/oc to amazon (de)
PaddseL Oct 9, 2020
4bf632f
fix merge conflict
PaddseL Oct 11, 2020
7ad4d12
Merge branch 'main' of https://github.com/jef/nvidia-snatcher into main
PaddseL Oct 12, 2020
0e9acd6
added 3090s to mediamarkt (de)
PaddseL Oct 12, 2020
cbf8ebf
added saturn (de)
PaddseL Oct 12, 2020
455bc32
updated evga-eu store (probably not working atm)
PaddseL Oct 12, 2020
a9a57b7
fix merge conflicts
PaddseL Oct 13, 2020
1939eda
fix merge conflicts
PaddseL Oct 14, 2020
4cdba07
changed availability check on notebooksbilliger (de)
PaddseL Oct 14, 2020
b79ac2f
revert notebooksbilliger (de) changes
PaddseL Oct 14, 2020
fb30051
added twitch channel chat notifications
PaddseL Oct 14, 2020
4cea391
added 503 http error code as backoff code to fight amazon-de rate lim…
PaddseL Oct 14, 2020
9908382
oopsie
PaddseL Oct 14, 2020
f8412cc
fixed readding join listener to twitch chatclient
PaddseL Oct 14, 2020
7ffd731
fixed readding join listener to twitch chatclient
PaddseL Oct 14, 2020
86535c8
fix merge conflict and update caseking and proshop-de
PaddseL Oct 14, 2020
2cf6f5a
add 429 rate limit as default backoff code
PaddseL Oct 15, 2020
377a25a
fix merge conflicts
PaddseL Oct 15, 2020
fcb655c
rearrange added backoff status codes to their stores
PaddseL Oct 15, 2020
7d5ffe6
use promise for writeFile instead of blocking the onRefresh function
PaddseL Oct 16, 2020
e714200
more failsafe tokenData allocation and removec unnecessary async
PaddseL Oct 16, 2020
e6ffc31
readd inStock label to cyberport for now as they removed their listings
PaddseL Oct 16, 2020
0dc1752
check notebooksbilliger (de) for "out of stock" instead of "in stock"
PaddseL Oct 16, 2020
2e132af
use envOrArray() instead of envOrString() for telegram chat ids
PaddseL Oct 16, 2020
cb3ba77
update description for "TELEGRAM_CHAT_ID" in README
PaddseL Oct 16, 2020
3931590
remove unnecessary split() for telegram chat ids
PaddseL Oct 16, 2020
87515c2
only instantiate chatClient and connect to twitch chat if twitch para…
PaddseL Oct 16, 2020
4bfc732
probably lexicographical order now
PaddseL Oct 16, 2020
6f65244
lexicographical order for cards in README
PaddseL Oct 16, 2020
2ccb045
added cards to notebooksbilliger (de)
PaddseL Oct 17, 2020
8f05d47
added mindfactory (de)
PaddseL Oct 17, 2020
231203b
added inno3d ichill x4 3090 to mediamarkt (de)
PaddseL Oct 17, 2020
22fd8c5
added inno3d ichill x4 3090 to saturn (de)
PaddseL Oct 17, 2020
499e293
rewrote sending twitch messages to use events now
PaddseL Oct 17, 2020
f9c9491
added computeruniverse (de) and tried to normalze pny model names (wt…
PaddseL Oct 17, 2020
2dbd177
added msi 3090 ventus 3x to mindfactory (de)
PaddseL Oct 18, 2020
13fc78e
added gigabyte 3090 gaming oc to mindfactory (de)
PaddseL Oct 18, 2020
c03b0ec
readd more precise inStock label to alternate (de)
PaddseL Oct 19, 2020
9002dac
add outOfStock label to mindfactory (de)
PaddseL Oct 19, 2020
40754fa
readd more precise inStock label to caseking (de)
PaddseL Oct 19, 2020
44fb01b
added many cards to amazon (de)
PaddseL Oct 19, 2020
adde862
update supported brands and models in README
PaddseL Oct 19, 2020
3cf6ef7
added more labels and gigabyte 3090 aorus master to notebooksbilliger…
PaddseL Oct 21, 2020
cc93414
updated test models for german stores
PaddseL Oct 21, 2020
4e2fd99
fix merge conflicts
PaddseL Oct 21, 2020
586d1f1
oops
PaddseL Oct 21, 2020
86e3d22
removed unavailable cards from saturn (de) and mediamartk (de)
PaddseL Oct 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ 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=
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ success-*.png
*.flac
*.exe
desktop.ini

twitch.json
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| `STORES` | [Supported stores](#supported-stores) you want to be scraped | Comma separated, default: `nvidia` |
| `SCREENSHOT` | Capture screenshot of page if a card is found | Default: `true` |
| `TELEGRAM_ACCESS_TOKEN` | Telegram access token | |
| `TELEGRAM_CHAT_ID` | Telegram chat ID | |
| `TELEGRAM_CHAT_ID` | Telegram chat ID | Comma seperated, e.g.: `123456789`, `123456789,987654321` |
| `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 |
Expand All @@ -141,7 +141,12 @@ Here is a list of variables that you can use to customize your newly copied `.en
| `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` |
| `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` |
| `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 | |
| `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` |

> :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.

Expand All @@ -166,21 +171,25 @@ Here is a list of variables that you can use to customize your newly copied `.en
| Amazon (UK) | `amazon-uk`|
| Aria PC | `aria`|
| ASUS | `asus` |
| ASUS (DE) | `asus-de` |
| Azerty | `azerty`|
| B&H | `bandh`|
| Best Buy | `bestbuy`|
| Best Buy (CA) | `bestbuy-ca`|
| Box | `box`|
| Caseking | `caseking`|
| Caseking (DE) | `caseking`|
| CCL | `ccl`|
| Computeruniverse (DE) | `computeruniverse` |
| Coolblue | `coolblue`|
| Currys | `currys`|
| Cyberport (DE) | `cyberport` |
| eBuyer | `ebuyer`|
| EVGA | `evga`|
| EVGA (EU) | `evga-eu`|
| Gamestop | `gamestop`|
| Mediamarkt (DE) | `mediamarkt`|
| Micro Center | `microcenter`|
| Mindfactory (DE) | `mindfactory` |
| Newegg | `newegg`|
| Newegg (CA) | `newegg-ca`|
| Notebooksbilliger (DE) |`notebooksbilliger`|
Expand All @@ -193,6 +202,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| PNY | `pny`|
| Proshop (DE) | `proshop-de`|
| Proshop (DK) | `proshop-dk`|
| Saturn (DE) | `saturn`|
| Scan | `scan`|
| Very | `very`|
| Zotac | `zotac`|
Expand Down Expand Up @@ -236,13 +246,17 @@ Here is a list of variables that you can use to customize your newly copied `.en

| Brand | Model |
|:---:|---|
| `asus` | `rog strix`, `rog strix oc`, `strix`, `tuf`, `tuf oc` |
| `evga` | `ftw3`, `ftw3 ultra`, `xc3 black`, `xc3`, `xc3 ultra` |
| `gigabyte` | `aorus master`, `aorus xtreme`, `eagle`, `eagle oc`, `gaming`, `gaming oc`, `vision oc` |
| `asus` | `rog strix`, `rog strix oc`, `tuf`, `tuf oc` |
| `evga` | `ftw3`, `ftw3 ultra`, `xc3`, `xc3 black`, `xc3 ultra` |
| `gainward` | `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 oc` |
| `msi` | `gaming x trio`, `ventus 3x`, `ventus 3x oc` |
| `nvidia` | `founders edition` |
| `palit` | `gaming pro`, `gaming pro oc` |
| `pny` | `dual fan`, `xlr8`, `xlr8 rgb` |
| `zotac` | `trinity`, `trinity oc` |
| `zotac` | `amp holo`, `amp extreme holo`, `trinity`, `trinity oc` |

#### Supported carriers

Expand Down