Skip to content

jarilehtinen/pricewatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PriceWatch

Simple command-line tool to get prices for the products you want to buy. It keeps a log of the prices and tells you if a product is on sale.

Installation

Easiest way to use PriceWatch is to create an alias for index.php in your ~/.bashrc or ~/.zshrc like this:

alias pricewatch="php /path/to/your/pricewatch/index.php"

Then run:

pricewatch build

It creates the stores.json file containing all the store information.

Usage

Add product

pricewatch add <url>

Get prices

pricewatch

Get prices in JSON format

pricewatch json

Remove product

pricewatch remove <id|url>

is the list item number in pricewatch results

Note: when removing several products with ID, please note that each product's ID is updated on every product removal

Swap product places in list

pricewatch swap <id> <id>

is the list item number in pricewatch results

Display product info

pricewatch info <id>

is the list item number in pricewatch results

List logged product prices

pricewatch log <id>

is the list item number in pricewatch results

List added products

pricewatch products

List supported stores

pricewatch stores

Build store information

pricewatch build

Getting help in terminal

pricewatch help

Supported stores

  • audiokauppa.fi
  • discshop.fi
  • gigantti.fi
  • hifihuone.fi
  • hifistudio.fi
  • jimms.fi
  • konsolinet.fi
  • maxgaming.fi
  • multitronic.fi
  • pelaajashop.fi
  • proshop.fi
  • puolenkuunpelit.com
  • verkkokauppa.com
  • vpd.fi

You can add more stores to stores.php and run:

pricewatch build

About

Command-line tool for getting product prices

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages