Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loganintech/product-notifier
A more refined version of the rtx-notifier project I created.
https://github.com/loganintech/product-notifier
Last synced: 20 days ago
JSON representation
A more refined version of the rtx-notifier project I created.
- Host: GitHub
- URL: https://github.com/loganintech/product-notifier
- Owner: loganintech
- Created: 2020-11-06T07:40:02.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-24T07:22:58.000Z (over 1 year ago)
- Last Synced: 2024-10-14T17:55:10.866Z (24 days ago)
- Language: Rust
- Size: 21.1 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Product Notifier
This program is a generic scraper for some stores to keep track of product availability.
## Supported Stores
|Store|ConfigKey|
|---|---|
|Amazon|amazon|
|NewEgg|newegg|
|Best Buy|bestbuy|
|B&HPhoto Video|bnh|
|AntOnline|antonline|## Setup
Make sure to rename `example_config.json` to `config.json` otherwise the script will create a default, empty config.
The snippet below will help you configure the script.## Config Example
```json5
{
"should_open_browser": true,
"daemon_mode": true,
"daemon_timeout": 30,// Webhook URL to send to discord
"discord_url": null,// This delays certain providers. These are added automatically when a ratelimit is hit for a service
"ratelimit_keys": {
"newegg": "2020-09-28T00:49:28.888712-07:00",
"amazon": "2020-09-28T00:52:28.888712-07:00"
},// Optional SOCKS5 Proxy URL
"proxy_url": "socks5://127.0.0.1:9050",
// I recommend copying the providers from the `example_config.json`, Otherwise you have a lot of writing to do
"targets": [
{
"key": "newegg",
// The name of the product
"name": "Ryzen 5950x",
// The URL of the product to scrape
"page": "https://www.newegg.com/amd-ryzen-9-5950x/p/N82E16819113663",
// Whether or not this product scrapes
"active": true,
// If this is set to true, the bot will check this page every 10 minutes. This is assumed to be in stock
// If this test stock is not found, it's either really out of stock, or it's a bug with the bot
// Can be left out of the JSON with no effect
"is_test": false
}
]
}
```