pyamacheck
pyamacheck helps you watch price changes of Amazon articles. You can watch as many articles as you want and set a threshold price. If the articles price drops below that, pyamacheck will send an email to you.
Usage
pyamacheck <options>
- --add (-a) <url>
Adds an article to the watchlist. Just pass an URL to an Amazon article. You can set the threshold percentage using --percent or -p.
Example
$ pyamacheck --add http://www.amazon.de/gp/product/B000R5DU6E/ref=s9_simh_gw_p63_i1?pf_rd_m=A3JWKAKR8XB7XF&pf_rd_s=center-2&pf_rd_r=0G692KGEW2Y13HHM4MNT&pf_rd_t=101&pf_rd_p=463375173&pf_rd_i=301128 --percent 5 Added item ''StarCraft II: Wings of Liberty'', price is at 46.09, threshold price is 43.79!
This will add Starcraft 2 to the list and send an email when its price drops by 5 percent.
- --remove (-r) <asin>
Specify an ASIN code and pyamacheck removes the item from its database completely.
- --list (-l)
Lists all items in the database with their ASIN and current price.
To make pyamacheck update its database, just call it without arguments. You could set up a cronjob, calling it once a day.
Configuration
pyamachecks configuration file has to be put in the folder ".pyamacheck" in your home directory, e.g. "/home/user/.pyamacheck/pyamacheckrc".
Below is an example configuration file:
# Your AWS account information # Sign up for a free account at http://aws.amazon.com/ AWS_KEY = "YOURKEY" SECRET_KEY = "YOURSECRETKEY" # Name of pyamachecks database (sqlite3) PRICE_DB = "price.db" # Mail address, the update mails get sent from FROM_ADDR="pyamacheck@myprovider.com" # Your email address TO_ADDR="me@myprovider.com" # Address of an SMTP server SMTP_SERVER = "smtp.myprovider.com" # SMTP username SMTP_USER = "username" # SMTP password SMTP_PASSWORD = "password" # Amazon AWS locale (one of: ca, de, fr, jp, uk, us) LOCALE = "us"
Dependencies
- python-amazon-product-api (>=0.2.4)