35 lines
869 B
Bash
35 lines
869 B
Bash
# This script installs the python dependencies for the project
|
|
#!/bin/bash
|
|
|
|
# Check for rich module
|
|
if python -c "import rich" &> /dev/null; then
|
|
echo "rich module is already installed."
|
|
else
|
|
echo "Installing rich module..."
|
|
pip install rich
|
|
fi
|
|
|
|
# check if rich module is installed
|
|
if python -c "import rich" &> /dev/null; then
|
|
echo "rich module is installed."
|
|
else
|
|
echo "Failed to install rich module."
|
|
exit 1
|
|
fi
|
|
|
|
# check for requests beautifulsoup4 modules
|
|
if python -c "import requests" &> /dev/null; then
|
|
echo "requests module is already installed."
|
|
else
|
|
echo "Installing requests module..."
|
|
pip install requests beautifulsoup4
|
|
fi
|
|
|
|
|
|
# Install pyppeteer
|
|
if python -c "import pyppeteer" &> /dev/null; then
|
|
echo "pyppeteer module is already installed."
|
|
else
|
|
echo "Installing pyppeteer module..."
|
|
pip install pyppeteer
|
|
fi |