GithubHelp home page GithubHelp logo

sjmh / csistock Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 148 KB

A golang script that will browse your wishlist and notify you via BoxCar if an item is close to going out of stock

Go 100.00%

csistock's Introduction

CSI Stock Checker v.1.0.0

This is a simple script for page scraping the http://www.coolstuffinc.com site for your wishlist and informing you via Boxcar to your mobile phone when certain events ( low stock, out of stock, back in stock ) occur.

Requirements

You'll need:

Setup

To configure this script, you'll need two environment variables.

  • BOXCAR_TOKEN: This envvar should be set to your access token. You can find this in the settings of the BoxCar app on your mobile device.
  • CSI_WISHLIST: This envvar should be set to the URL of your wishlist. You can find this at the bottom of your wishlist.

These envvars can be specified on the command line as well, e.g.:

BOXCAR_TOKEN=abcde12345 CSI_WISHLIST=http://www.coolstuffinc.com/user_wishlist.php?id=987654321 ./csistock

Note: You'll need to escape the ? in the CSI_WISHLIST URL if you do it via command line.

Running

Once you've got the pre-reqs and setup, you just need to fire off the script. It will poll the site every 5 minutes and report any events back to your phone. You can background the process if you'd like or setup a watchdog via cron to ensure it's always running.

csistock's People

Stargazers

Dale Kiefling avatar

Watchers

steven 'haji' hajducko avatar James Cloos 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.