Skip to content

Commit

Permalink
feat: load puppeteer faster, run stores in parallel (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
whoisjordangarcia and jef committed Sep 20, 2020
1 parent a501cf7 commit d1a5aa1
Show file tree
Hide file tree
Showing 9 changed files with 349 additions and 44 deletions.
2 changes: 2 additions & 0 deletions .env-example
Expand Up @@ -16,3 +16,5 @@ STORES="bestbuy,bandh,nvidia"
SCREENSHOT="true"
TELEGRAM_ACCESS_TOKEN=""
TELEGRAM_CHAT_ID="1234"
HEADLESS="true"
LOG_LEVEL="info"
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -64,6 +64,8 @@ Here is a list of variables that you can use to customize your newly copied `.en
|:---:|---|---|
| `EMAIL_USERNAME` | Gmail address | E.g.: `jensen.robbed.us@gmail.com` |
| `EMAIL_PASSWORD` | Gmail password | See below if you have MFA |
| `HEADLESS` | Puppeteer to run headless or not (Debugging Purposes) |
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels) (Debugging Purposes) |
| `NOTIFICATION_TEST` | Test all the notifications configured | Default: `false` |
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found | Default: `true` |
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds | `0` for infinite, default: `30000` |
Expand All @@ -80,7 +82,6 @@ Here is a list of variables that you can use to customize your newly copied `.en
| `SCREENSHOT` | Capture screenshot of page if a card is found | Default: `true` |
| `TELEGRAM_ACCESS_TOKEN` | Telegram access token |
| `TELEGRAM_CHAT_ID` | Telegram chat ID |

> :point_right: If you have multi-factor authentication (MFA), you will need to create an [app password](https://myaccount.google.com/apppasswords) and use this instead of your Gmail password.
#### Supported stores
Expand Down

0 comments on commit d1a5aa1

Please sign in to comment.