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:
Or if you want to build it: go build
and ./go-stock-checker