Overview
Complete documentation of all public methods in theSocialAnalyzer class.
Execution Methods
run_as_object()
Main method for programmatic API usage. Executes username analysis with full parameter control.string
default:""
required
Username to search for
string
default:"all"
Space-separated list of websites or “all”
string
default:"fast"
Analysis mode:
fast, slow, or specialstring
default:"pretty"
Output format:
json or prettystring
default:"all"
Search method:
find, get, or allstring
default:"good"
Confidence filter:
good, maybe, bad, comma-separated, or allstring
default:"detected"
Profile status filter:
detected, unknown, failed, comma-separated, or allstring
default:""
Fields to display: comma-separated list of
link, rate, title, textstring
default:"0"
Select top N websites by popularity (e.g., “50”)
string
default:"all"
Website category filter (e.g., “Music”, “Adult”)
string
default:"all"
Space-separated country codes (e.g., “us br ru”)
boolean
default:"false"
Extract profiles, URLs, and patterns
boolean
default:"false"
Extract metadata using QeeqBox OSINT
boolean
default:"false"
Trim long strings
boolean
default:"false"
Enable file logging
string
default:""
Custom directory for log files
boolean
default:"false"
Capture screenshots (requires
logs=True)boolean
default:"false"
Output only 100% confidence profile links
boolean
default:"false"
Suppress console output
integer
default:"0"
Delay between requests in seconds (0 = random)
dict
default:"{}"
Custom HTTP headers
boolean
default:"false"
List all websites and exit
boolean
default:"false"
CLI mode flag (deprecated)
boolean
default:"false"
GUI mode flag (not implemented)
boolean
default:"false"
Reserved parameter
Returns
dict
Dictionary with detected, unknown, and failed profiles (structure depends on filters)
Example
run_as_cli()
Parse command-line arguments and execute analysis. Used internally by the CLI.Returns
dict
Analysis results dictionary
Example
check_user_cli()
Core CLI execution logic. Processes parsed arguments and performs username search.Namespace
required
Parsed argument namespace from argparse
Returns
dict
Analysis results with detected, unknown, and failed profiles
Example
Search Methods
find_username_normal()
Main username search logic using ThreadPoolExecutor for concurrent website checking.dict
required
Request object containing search parameters
Returns
list
List of profile dictionaries with detection results
Example
fetch_url()
Check a single website for a username. Called byfind_username_normal() for each website.
dict
required
Website entry from
websites_entriesstring
required
Username to check
string
required
Search options (e.g., “FindUserProfilesFast”)
Returns
tuple
Tuple of (success: bool, site_url: string, profile_data: dict)
Initialization Methods
init_logic()
Load detection data files and initialize website entries. Must be called before searching.Example
init_detections()
Initialize specific detection data from loaded sites.string
required
Detection type:
websites_entries, shared_detections, or generic_detectionReturns
list
List of detection entries
load_file()
Load a JSON file from local path or download if missing.string
required
Display name for the file
string
required
Local file path
string
required
Download URL if file doesn’t exist
Returns
dict/None
Loaded JSON data or None if failed
Example
Website Management Methods
list_all_websites()
Print all available website domains to console.Example
get_website()
Extract clean domain name from website URL.string
required
Full website URL
Returns
string
Cleaned domain name
Example
search_and_change()
Find and update a website entry inwebsites_entries.
dict
required
Website entry to find
dict
required
Fields to update
Example
top_websites()
Select top N websites by global rank.string
required
Number pattern (e.g., “top50”, “top100”)
Returns
boolean
True if successful, False otherwise
Example
Utility Methods
delete_keys()
Remove specific keys from a dictionary.dict
required
Dictionary to modify
list
required
List of keys to remove
Returns
dict
Modified dictionary
Example
clean_up_item()
Filter profile object to only specified fields (user-controlled).dict
required
Profile dictionary
string/list
required
Comma-separated string or list of fields to keep
Returns
dict
Filtered dictionary
Example
get_language_by_guessing()
Detect language from text content using langdetect.string
required
Text to analyze (needs to be relatively long)
Returns
string
Language name with “(Maybe)” suffix or “unavailable”
Example
get_language_by_parsing()
Detect language from HTML source code meta tags.string
required
HTML source code
string
required
Character encoding
Returns
string
Detected language name or “unavailable”
check_errors()
Decorator for error handling in methods.Logging Methods
setup_logger()
Configure logging for the instance.string
Unique identifier for log file
boolean
default:"false"
Enable file logging
Namespace
Parsed arguments (for configuration)
Example
Complete Usage Example
See Also
Python Class Overview
Class architecture and initialization
CLI Reference
Command-line interface documentation
Output Formats
Understanding result structures
Web Endpoints
Express web API reference