-
Notifications
You must be signed in to change notification settings - Fork 618
Open
Labels
enhancementNew feature or requestNew feature or request
Description
No issue just add a start.sh
#!/bin/bash
# (c) J~Net 2025
#
# ./start.sh
#
# Enhanced wrapper for blackbird.py with interactive menu
#
# --- Setup Virtual Environment ---
# Assuming 'venv' is the name of your virtual environment directory
if [ -d "venv" ]; then
source venv/bin/activate
echo "Virtual Environment Setup and ready!"
else
python -m venv venv
source venv/bin/activate
fi
# --- Main Menu Logic ---
echo ""
echo "=============================="
echo "🐦 Blackbird Search Menu 🔍"
echo "=============================="
echo "1) Search by Username"
echo "2) Search by Email"
echo "3) Search by Username with AI Analysis"
echo "4) Generate AI API Key (--setup-ai)"
echo "5) Exit"
echo "=============================="
# Read user selection
read -p "Enter your choice [1-5]: " choice
# Define the base command
PYTHON_CMD="python blackbird.py"
# Process user choice
case $choice in
1) # Search by Username
read -p "Enter Username: " search_term
# Check if user wants PDF export
read -r -p "Export results to PDF? (y/N): " pdf_choice
if [[ "$pdf_choice" =~ ^([yY][eE][sS]|[yY])$ ]]; then
$PYTHON_CMD --username "$search_term" --pdf
else
$PYTHON_CMD --username "$search_term"
fi
;;
2) # Search by Email
read -p "Enter Email Address: " search_term
# Check if user wants PDF export
read -r -p "Export results to PDF? (y/N): " pdf_choice
if [[ "$pdf_choice" =~ ^([yY][eE][sS]|[yY])$ ]]; then
$PYTHON_CMD --email "$search_term" --pdf
else
$PYTHON_CMD --email "$search_term"
fi
;;
3) # Search by Username with AI
read -p "Enter Username for AI Analysis: " search_term
# Check if user wants PDF export (AI results are included)
read -r -p "Export results to PDF (includes AI profile)? (y/N): " pdf_choice
if [[ "$pdf_choice" =~ ^([yY][eE][sS]|[yY])$ ]]; then
$PYTHON_CMD --username "$search_term" --ai --pdf
else
$PYTHON_CMD --username "$search_term" --ai
fi
;;
4) # Setup AI Key
$PYTHON_CMD --setup-ai
;;
5) # Exit
echo "Exiting Blackbird wrapper."
;;
*) # Invalid choice
echo "Invalid choice. Please run ./start.sh again and select a number between 1 and 5."
;;
esac
echo ""
and setup.sh
#!/bin/bash
# (c) J~Net 2025
#
python -m venv venv
source venv/bin/activate
echo "Virtual Environment Setup and ready!"
git clone https://github.com/p1ngul1n0/blackbird.git
cd blackbird
pip install -r requirements.txt
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request