-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtermux_setup.sh
More file actions
35 lines (29 loc) · 997 Bytes
/
termux_setup.sh
File metadata and controls
35 lines (29 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Termux-specific setup script
echo "📱 CSS Color Extractor - Termux Setup"
echo "Made by ACT91 | https://github.com/ACT91"
echo "====================================="
# Update Termux packages
echo "Updating Termux packages..."
pkg update -y
# Install required packages
echo "Installing required packages..."
pkg install -y python python-pip git
# Install Python dependencies
echo "Installing Python dependencies..."
pip install requests beautifulsoup4 colorama
# Optional: Install Selenium (requires more setup)
read -p "Install Selenium for JS-heavy sites? (y/n): " install_selenium
if [[ $install_selenium == "y" || $install_selenium == "Y" ]]; then
echo "Installing Selenium..."
pkg install -y chromium
pip install selenium
echo "⚠️ Note: You may need to configure Chrome path manually"
fi
# Make scripts executable
chmod +x run.sh
chmod +x install.sh
echo ""
echo "Termux setup complete!"
echo "Run: ./run.sh"
echo "Or: python css-color-extractor.py"