-
Ensure you have Python installed (version 3.6 or higher) and Firefox.
-
Clone the repository.
git clone https://github.com/forerosantiago/price-tracker
-
Navigate to the project directory.
cd price-tracker
-
Create a virtual python enviroment
python -m venv venv
-
Activate the virtual environment
source venv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
-
Run the database setup script:
python db_setup.py
-
Run the app script:
python app.py
git clone https://github.com/forerosantiago/price-tracker
cd price-tracker
docker build -t price-tracker .
docker run -it --rm price-tracker
classDiagram
class Scrapper {
- __init__(self, domain) None
+ None driver
+ get_driver(cls)
+ search(self, term)
+ get_price(self, url)
}
Scrapper --|> SharedScrapper
Scrapper --|> JumboScrapper
class SharedScrapper {
+ search(self, term)
+ get_price(self, url)
}
SharedScrapper --|> ExitoScrapper
SharedScrapper --|> CarullaScrapper
class ExitoScrapper {
- __init__(self) None
}
class CarullaScrapper {
- __init__(self) None
}
class JumboScrapper {
- __init__(self) None
+ search(self, term)
+ get_price(self, url)
}
class Product {
- __init__(self, name, url, price) None
- __str__(self) str
}
class ListedProduct{
- __init__(self, name, url, price,imagine_url, id, store_name) None
}
Product --|> ListedProduct