Giter Site home page Giter Site logo

newegg-watcher's Introduction

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
		}
	}
}

newegg-watcher's People

Contributors

tentious avatar gspencerfabian avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.