Skip to main content
The Python CLI provides the most comprehensive command-line interface for Social Analyzer, with additional features like screenshots, custom logging, and the ability to import it as a Python module in your own projects.

Prerequisites

1

Install Python 3

Ensure Python 3.6 or higher is installed on your system.
2

Choose installation method

You can either install as a package from PyPI or clone from GitHub.

Installation

Run as a module:

Basic Usage

Search for a single username:

Multiple Usernames

Search for multiple users (comma-separated):
For the rest of this guide, examples use python3 app.py syntax. If you installed via PyPI, replace with python3 -m social-analyzer.

CLI Arguments

Required Arguments

Website Selection

Searches all 900+ supported platforms (default).

Analysis Mode

Detection Method

  • all - Combines find and get (shows detected + unknown)
  • find - Only shows detected profiles
  • get - Shows all profiles regardless of detection status

Output Format

Colored, human-readable terminal output.

Filtering Results

Filter by Quality

Filter options:
  • good - High confidence (100% match rate or higher)
  • maybe - Medium confidence (50-99% match rate)
  • bad - Low confidence (less than 50% match rate)
  • all - All matches

Filter by Profile Status

Profile status options:
  • detected - Successfully found profiles
  • unknown - Profiles with uncertain status
  • failed - Failed connection attempts

Data Extraction

Extract Patterns

Extracts additional information from detected profiles:
  • URLs and links
  • Email addresses
  • Phone numbers
  • Other patterns

Extract Metadata

Extracts HTML meta tags from profile pages:
  • Open Graph tags
  • Twitter Cards
  • Schema.org structured data
  • Profile descriptions

Combined Extraction

Display Options

Customize Output Fields

Available fields:
  • link - Profile URL
  • rate - Detection confidence percentage
  • title - Page title
  • text - Extracted text content

Trim Long Strings

Limits text content to 50 characters for cleaner output.

Python-Specific Features

Logging and Screenshots

1

Enable logging

Creates a temporary directory with detailed logs.
2

Custom log directory

Specify a custom location for log files.
3

Enable screenshots

Captures screenshots of detected profiles (requires Chrome).
Screenshots require the latest version of Chrome to be installed and only work when --logs is also enabled.

Simplify Output

Outputs only profile links with 100% match rate - perfect for quick checks:

Silent Mode

Disables all terminal output (useful when using JSON output in scripts).

Timeout Configuration

Sets a custom delay (in seconds) between requests to avoid rate limiting.

Custom Headers

Provides custom HTTP headers as a JSON dictionary.

Complete Examples

Using as a Python Module

You can import Social Analyzer as a module in your own Python projects:

Basic Import

Advanced Usage

Available Parameters

Processing Results

Listing Available Websites

Displays all 900+ supported social media platforms and websites.

Output Examples

Pretty Output

JSON Output

Performance and Configuration

Worker Threads: The Python version uses 15 worker threads by default for parallel checking. Request Delays: Random delays (10-99ms) between requests help avoid rate limiting. Retry Logic: Failed requests are automatically retried up to 3 times.

Troubleshooting

Module not found error Ensure social-analyzer is installed:
Screenshot errors Install Chrome/Chromium and ensure --logs is enabled:
Permission errors with log directory Specify a writable directory:
Import errors when using as module Use the importlib approach: