A Golang inventory monitoring/notification script for newegg.com
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.
- 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.
git clone --recursive https://github.com/tentious/newegg-watcher.git
cd newegg-watcher
make build
make run
*/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
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
}
}
}