c0mr9d3 / prices_tracker

Prices tracker for shops

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prices tracker

Prices tracker is an application which get information about products from supported sites.

Description of the web application:

Main page: main_page

Create database and category (step 1):

create_db_and_cat

Select category (step 2):

select_category

Add link in selected category and synchronize info with added links (step 3):

add_link

After synchronize info on step 3, the info might be displayed on plot:

build_clear_plotter

The information about products might be shown as table. In work with table is possible to remove information about the product or disable the need to monitor it:

show_sheet

Dependencies:

  1. Python 3.6+
  2. Web server nginx (optional)
  3. Docker (optional)

Installation:

$ pip install -r requirements.txt

Start web application (3 ways):

First way (use embedded in flask web server):

Run:

$ python3 main.py -W
Second way (use nginx and uwsgi):

Prepare:

$ sudo apt install nginx
$ sudo cp configs/nginx/nginx.conf /etc/nginx/
$ sudo mkdir -p /etc/nginx/sites-available && sudo mkdir -p /etc/nginx/sites-enabled
$ sudo cp -r configs/nginx/sites-available /etc/nginx/sites-available
$ sudo ln -s /etc/nginx/sites-enabled/web_app.conf /etc/nginx/sites-available/web_app.conf
$ sudo rm -f /etc/nginx/sites-enabled/default && sudo rm -f /etc/nginx/sites-available/default

Run:

$ sudo systemctl start nginx
$ cd web_app
$ uwsgi --ini uwsgi.ini &
Third way (use Docker):

Prepare:

$ mkdir databases
$ docker build -t web_application_image .
$ docker volume create web_app_databases

Run:

$ docker run -d -e TZ=$(timedatectl | grep "Time zone" | xargs | cut -d" " -f 3) --rm --name prices_tracker_app -p 80:80 -v web_app_databases:/<path_to_program_directory>/prices_tracker/databases web_application_image

Stop:

$ docker stop prices_tracker_app

Delete docker volume:

$ docker volume rm web_app_databasses

About

Prices tracker for shops

License:GNU General Public License v3.0


Languages

Language:Python 62.0%Language:HTML 29.5%Language:JavaScript 5.2%Language:CSS 2.0%Language:Dockerfile 1.1%Language:Shell 0.2%