Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smoya/gpu-scavenger
https://github.com/smoya/gpu-scavenger
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smoya/gpu-scavenger
- Owner: smoya
- Created: 2021-03-15T00:09:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-30T10:24:14.000Z (over 3 years ago)
- Last Synced: 2024-10-11T03:44:17.998Z (3 months ago)
- Language: Go
- Size: 7.78 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gpu-scavenger
[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs) [![Go Report Card](https://goreportcard.com/badge/github.com/smoya/gpu-scavenger)](https://goreportcard.com/report/github.com/smoya/gpu-scavenger)
This Bot listens to some GPU retailer sites and notifies via Telegram in case there is stock available.
## Default Retailers
- [Ldlc.com](https://www.ldlc.com)
- [Coolmod.com](https://www.coolmod.com)
- [VsGamers.es](https://www.vsgamers.es)
- [Neobyte.es](https://www.neobyte.es)## Run
### Docker
```bash
docker run -e GPUSCAVENGER_TELEGRAM_BOT_TOKEN= -e GPUSCAVENGER_TELEGRAM_NOTIFICATION_CHAT= smoya/gpu-scavenger:latest
```## Config
To run this project, you will need to specify *some* of the following environment variables:
| Name | Description | Required | Default |
|-----------------------------------------|-------------------------------------------------------------------------------------------------|:--------:|:-------:|
| GPUSCAVENGER_TELEGRAM_BOT_TOKEN | Telegram Bot Token. Create one with https://t.me/botfather. | ✓ | |
| GPUSCAVENGER_TELEGRAM_NOTIFICATION_CHAT | Telegram Chat ID. Easy: Invite https://t.me/GetIDsBot to the chat between you and your own bot. | ✓ | |
| GPUSCAVENGER_TIMEOUT | HTTP Client requests timeout (applies for each website) | | 4s |
| GPUSCAVENGER_MIN_TIME | Min amount of time to wait between each cycle of requests. Used for avoid bans. | | 10s |
| GPUSCAVENGER_MAX_TIME | Max amount of time to wait between each cycle of requests. Used for avoid bans. | | 20s |
| GPUSCAVENGER_RENOTIFY_AFTER | Articles won't be sent again if they are in stock for this period. | | 10m |
| GPUSCAVENGER_DEBUG | Enables debug log level which increases verbosity. | | false |## License
[MIT](https://choosealicense.com/licenses/mit/)