a python application to track prices on some online shopping applications
Project description
PRICE TRACKER
It's a simple python3 application that tracks prices and warn the user by email.
Installation
Requirements
-
python3 or later to run price-tracker
-
This application uses gmail smtp server, so firstly you should have a gmail account. I suggest you to use two-step verification for the application. For additional information check the links bellow.
-
You can test application with using temp mail as receiver. I use temp-mail.io while development.
Stable Version
Installing via pip
recommended way to install is via pip:
pip3 install price-tracker
Latest Version
Installing from Git
You can install the latest version from Git
pip3 install git+https://github.com/Evasionn/price-tracker.git
Usage
- input and config files must be json.
- prepare products.json. Example products.json is must be in format bellow!
[
{
"url": "https://www.hepsiburada.com/iphone-se-64-gb-p-HBV00000SXR45",
"warn_price": 5000
},
{
"url": "https://www.amazon.com.tr/Philips-Hd7461-20-Kahve-Makinesi/dp/B00R04CAH0/ref=zg_bs_kitchen_home_1?_encoding=UTF8&psc=1&refRID=Q90ZVE1A20WY367CAJPQ",
"warn_price": 550
},
{
"url": "https://www.vatanbilgisayar.com/arnica-ih33151-demli-rose-cay-makinesi.html",
"warn_price": 340
}
]
- To run type in terminal
price_tracker
or with defining input file
price_tracker -i products.json
- optionally you can define a config.json. It should be in format bellow:
{
"sender_gmail": "gmail@gmail.com",
"gmail_password": "mygmailpassword!",
"receiver_mail": "receiver@gmail.com"
}
To run with config file
price_tracker -i products.json -c config.json
- To run in background products and config file must be given as command line argument
nohup python3 -u -m price_tracker -i products.json -c config.json &
What is New
Version 0.5
- Some bugs are fixed and includes code refactor works
- Random user agent for get requests
- ebay.com, morhipo.com, teknostore.com, letgo.com, kitapyurdu.com, tozlu.com, dr.com.tr, toyzzshop.com, decathlon.com.tr, nike.com scrapers are added
- issue templates are published
Check change log
Supported Web Sites
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.