go-stock-checker

command module
v0.0.0-...-590c47a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 10 Imported by: 0

README

Codacy Badge codecov Build Status

go-stock-checker

Application to check on out of stock items from stores

Requirements

Install dependencies:

  • go get github.com/PuerkitoBio/goquery
  • go get github.com/gen2brain/beeep
  • go get github.com/joho/godotenv

Fill out the .env file. You'll need a Twilio account which is free and you get free credits. There will you need to:

  • Make a phone number
  • Get your Account SID
  • Get your Auth Token

Then fill out the .env file and add in who gets the text message.

List of pages to check

In order to configure which pages to check and how, go to the buildInventory function and update:

  • url - the page to check`
  • name - the product name
  • dom - using a CSS selector, which DOM element has the "sold out" text
  • soldOut - the text flavor used to convey "sold out"

Running

It's as simple as either:

  • go run app.go

Or if you want to build it: go build and ./go-stock-checker

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL