Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 993 Bytes

SETUP.md

File metadata and controls

66 lines (45 loc) · 993 Bytes

Setting Up and Running the Lokatir Bot

Installation

Prerequisites

Update the package list:

sudo apt update

Clone this repository:

git clone https://github.com/OleksandrYanchar/Vacancies-Parser-Bot

Here you have 2 ways:

Docker:

(by defoult polling one time per day, to change it comment or delete last line in Dockerfile file and uncoment previous one )

default build:

sudo docker-compose up --build

build and run in the background:

sudo docker-compose up -d --build

Continue manually:

Set up a virtual environment:

python3 -m venv venv

Activate the virtual environment:

source venv/bin/activate

Install required Python packages:

pip3 install -r requirements.txt

Usage

Here you have 2 choices:

for polling bot all time

python3 main.py

for polling one time per day

celery -A my_schedule  worker --loglevel=info