snazzybunny / newegg-watcher

newegg inventory notify script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

newegg-watcher

A Golang inventory monitoring/notification script for newegg.com

Why?

Because newegg's auto-notify is not always available for certain products. Also, this script is much faster at detecting inventory and sending out emails.

requirements

  • Be sure that golang is installed. If not, get it here.
  • Google email address. NOTE you must allow less secure apps to access your account. Learn More

how to install

git clone https://github.com/gspencerfabian/newegg-watcher.git
cd newegg-watcher
make build

how to run

make run

how to schedule (cron.d)

*/5 * * * * cd /home/<username>/work/src/github.com/gspencerfabian/newegg-watcher && ./newegg-watcher >> newegg-watcher.log 2>&1

Modify path to point to your cloned repository

configuration

Modify config.json file

  • items field: the newegg item number
  • email fields: sender/receiver email address
  • limits fields: set requirements like price min and max
{
        "items": [
                "N82E16813157746",
                "N82E16819117728",
                "N82E16835100007",
                "N82E16835181103"
        ],
        "email": {
                "receiver": {
                        "address": [
                                "jsmith@example.com",
                                "5555555555@vtext.com",
                                "5551234567@txt.att.net"
                        ]
                },
                "sender": {
                        "address": "xxxxxx@gmail.com",
                        "password": "xxxxxxxx"
                }
        },
	"limits": {
		"price": {
			"min": 100,
			"max": 400
		}
	}
}

About

newegg inventory notify script


Languages

Language:Go 98.1%Language:Makefile 1.9%