Skip to content

Simple script to get notified when desired price is reached

Notifications You must be signed in to change notification settings

racoon63/geizhals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geizhals

Simple script to get notified when desired price is reached. This idea comes from the situation that geizhals.de did not send me notifications even if the target price was reached. I was too lazy to find out why so I wrote this simple script.

Usage

Run the script in the following form to get the lowest price of the product you want to have e.g. a Gigabyte GeForce RTX 2070 SUPER Windforce OC 3X 8G:

Syntax

docker run  --rm \
            -e URL=[LINK] \
            -e PRICE=[TARGET_PRICE] \
            -e SENDER=[SENDER_EMAIL] \
            -e PWD=[SENDER_EMAIL_PASSWORD] \
            -e RECEIVER=[RECEIVER_EMAIL] \
            racoon/geizhals

Example

docker run  --rm \
            -e URL="https://geizhals.de/gigabyte-geforce-rtx-2070-super-windforce-oc-3x-8g-gv-n207swf3oc-8gd-a2122943.html" \
            -e PRICE=520 \
            -e SENDER="foo@bar.com" \
            -e PASS="123456" \
            -e RECEIVER="bar@foo.com" \
            racoon/geizhals

To run this periodically, you can use crontab. Below you'll find an example crontab entry which runs the script every 30 minutes:

30 * * * * docker run --rm -e URL="https://geizhals.de/gigabyte-geforce-rtx-2070-super-windforce-oc-3x-8g-gv-n207swf3oc-8gd-a2122943.html" -e PRICE="520" -e SENDER="foo@bar.com" -e PASS="123456" -e RECEIVER="bar@foo.com" racoon/geizhals >> /home/USERNAME/geizhals/gh.log

About

Simple script to get notified when desired price is reached

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published