Skip to content

A collection of bash scripts to scrape certain websites for stock availability

Notifications You must be signed in to change notification settings

alexmi256/stockCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

A collection of bash scripts to scrape websites for in stock items and notify a user when an item is in stock.

Supported Websites:

  • Costco Canada
  • AMD Direct Buy
  • Canada Computers
  • MemoryExpress
  • Newegg CA
  • TODO: Amazon
  • TODO: Bestbuy

Users are notified via https://pushover.net/

This project does not require a whole browser instance to be set up and should theoretically be faster than using Selenium/Puppeteer

Setup

Requirements

Requires following utils:

  • pcregrep
  • xidel

Config

Copy example config file to .env

cp .env.example .env

Fill out the .emv file with your details

USER_KEY=<pushover user key>
APP_TOKEN=<pushover app token key>
DEVICE=<pushover device name>
CHECK_INTERVAL=30
CC_LOCATIONS='online|warehouse'

Then run one of the scripts under scrapers/

./scrapers/scrape_cc_5900x.sh

About

A collection of bash scripts to scrape certain websites for stock availability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages