EricJMarti / inventory-hunter
- понедельник, 30 ноября 2020 г. в 00:24:22
Python
⚡️ Get notified as soon as your next CPU/GPU is in stock
This bot helped me snag an RTX 3070... hopefully it will help you get your hands on your next CPU or GPU.
These steps should work on any supported Docker platform, but they have been specifically tested on Raspberry Pi OS with Docker already installed.
$ git clone https://github.com/EricJMarti/inventory-hunter.git
$ cd inventory-hunter
$ docker build -t inventory-hunter .
Note: The docker build
command may take a while to complete.
docker run
command in docker_run.bash or run:$ ./docker_run.bash -c <config_file> -e <email_address> -r <relay_ip_address>
The general idea is if you can get notified as soon as a product becomes in stock, you might have a chance to purchase it before scalpers clear out inventory. This script continually refreshes a set of URLs, looking for the "add to cart" phrase. Once detected, an automated email is sent, giving you an opportunity to react.
Before developing inventory-hunter, I used several existing services without any luck. By the time I received an alert, the product had already been scalped. This bot alerts faster than existing trackers for several reasons:
I sure hope this doesn't happen... 2020 is bad enough already. My hope is that inventory-hunter levels the playing field a bit by giving real customers a better opportunity than they had previously. Serious scalpers will continue using automated checkout bots, and it is up to online retailers to combat this malarkey.
No (but YMMV). If you know your way around python and pip/conda, then you should be able to replicate the environment I created using Docker.