Skip to content

Tired of manually checking if a product is available? This lightweight application will take care of that.

License

Notifications You must be signed in to change notification settings

Hakky54/product-status-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product status checker

Tired of manually checking if a product is available? This application will take care of that.

Minimum requirements:

  1. Java 11
  2. Maven 3.5.0
  3. A terminal
  4. Phantom JS Driver

Usage

During the initial run execute only once to prepare the program:

mvn clean install

Afterwords check the product status with the following command:

mvn exec:java -Dexec.args="https://www.decathlon.nl/p/halterset-krachttraining-20-kg-met-schroefdraad/_/R-p-7449?mc=8018574&c=ZWART stock-infos 'Online Beschikbaar' /path/to/phantomjs 30"

-Dexec.args expects 5 arguments:

  1. URL
  2. HTML element by class name of the product status indicator
  3. Text to contain in the HTML element when the product is available
  4. Absolute path to phantom js driver
  5. Retry after n amount of time in seconds

Demo

alt text

About

Tired of manually checking if a product is available? This lightweight application will take care of that.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages