Skip to content

Feature Request #154

Open
Open

Description

@jamieduk

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

Activity

  1. saloni-eng commented on Sep 10, 2026

    @saloni-eng

    Hi,
    I can test, refine and submit a PR for these helper scripts if you would like them added to the repository. Can you pls assign this issue to me if so?
    Please let me know asap!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions