Skip to content

tentious/newegg-watcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 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

  • Make sure dependencies are installed ("apt-get install git make go-lang ca-certificates").
  • Google email address. NOTE you must allow less secure apps to access your account. Learn More
  • You can also use standard SMTP or Pushbullet.

how to install

git clone --recursive https://github.com/tentious/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

You can define a configuraiton file at the command line: ./newegg-watcher -config=config.json

  • If no config file is defined, config.json will be loaded

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

 
 
 

Contributors

Languages

  • Go 98.4%
  • Makefile 1.6%