Skip to content

gspencerfabian/newegg-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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": [
                                "[email protected]",
                                "[email protected]",
                                "[email protected]"
                        ]
                },
                "sender": {
                        "address": "[email protected]",
                        "password": "xxxxxxxx"
                }
        },
	"limits": {
		"price": {
			"min": 100,
			"max": 400
		}
	}
}

About

newegg inventory notify script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published