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: optional per store min and max page sleep time #576

Merged
merged 2 commits into from
Oct 23, 2020
Merged

Conversation

SesioN
Copy link
Contributor

@SesioN SesioN commented Oct 23, 2020

Description

Added support for optional per store min and max page sleep time settings in the environment config file.
The per store settings override the main settings if provided.

Some stores are more sensible than others when it comes to blocking for too many queries over a period of time.

Testing

New dependencies

…settings (Some stores are more sensible to query interval than others)
@SesioN SesioN requested a review from jef as a code owner October 23, 2020 00:26
Copy link
Owner

@jef jef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, cool idea. This makes a lot of sense. Thanks for taking the time to do this!

@@ -128,7 +128,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| `SLACK_TOKEN` | Slack API token | |
| `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` |
| `STORES` | [Supported stores](#supported-stores) you want to be scraped | Comma separated, default: `nvidia` |
| `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` |
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `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` |
| `STORES` | [Supported stores](#supported-stores) you want to be scraped | Both supported formats are comma separated<br/>1. Standard E.g.: `"nvidia"`<br/>2. Advanced E.g: `STORE:PAGE_SLEEP_MIN:PAGE_SLEEP_MAX`, E.g: `nvidia:10000:30000`<br/>Default: `nvidia` |

I like the <br/>s! Maybe just one though per?

@jef jef changed the title feat: add support for optional per store min and max page sleep time feat: optional per store min and max page sleep time Oct 23, 2020
@jef jef merged commit 503d76f into jef:main Oct 23, 2020
SesioN added a commit to SesioN/nvidia-snatcher that referenced this pull request Oct 23, 2020
SesioN added a commit to SesioN/nvidia-snatcher that referenced this pull request Oct 23, 2020
@SesioN SesioN mentioned this pull request Oct 23, 2020
jef pushed a commit that referenced this pull request Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants