Requierement | Version |
---|---|
python | >= 3.8.2 |
docker-ce | >= 4:20.10.24-1 |
docker-ce-cli | >= 1:20.10.24-1 |
nss (libnss) | >= 3.79 |
gconf2 (libgconf) | >= 3.2.6-21 |
fontconfig | >= fontconfig-2.14.2-2 |
Linux / Windows / macOS:
python -m venv venv
Linux:
source venv/bin/activate
Windows:
# In cmd.exe
venv\Scripts\activate.bat
# In PowerShell
venv\Scripts\Activate.ps1
pip install -r requirements.txt
You can download it from https://chromedriver.chromium.org/downloads. Put it in this directory ( alibot/chromedriver )
docker pull selenium/standalone-chrome
python main.py
docker-compose -f "docker-compose.yml" down
docker-compose -f "docker-compose.yml" up -d --build
docker exec -d alibot-dev python3 /debugpy/launcher 172.17.0.1:54775 -- main.py
config.py
TG_BOT_TOKEN = "" # telegram bot token from bot father
DOCKER = True # True - if you want to use docker, False - if not
DATABASE_URI = 'sqlite:////root/db/ali.db'
DATABASE_PATH = '/app/db/ali.db'