From 399ce587edd7dd8dc60c157c09962a20a62896f4 Mon Sep 17 00:00:00 2001 From: "Marcus W." Date: Tue, 29 Jul 2025 18:32:23 +0300 Subject: [PATCH] Remove unused imports and adjust printing --- domain_analyzer.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/domain_analyzer.py b/domain_analyzer.py index 1befc25..9ccac7d 100644 --- a/domain_analyzer.py +++ b/domain_analyzer.py @@ -8,7 +8,6 @@ def check_required_modules(): try: import dns.resolver - import dns.zone except ImportError: missing_modules.append('dnspython') @@ -23,23 +22,21 @@ def check_required_modules(): for module in missing_modules: print(f" - {module}") - print(f"\nInstallation command:") + print("\nInstallation command:") print(f" pip install {' '.join(missing_modules)}") - print(f"\nOr if using pip3:") + print("\nOr if using pip3:") print(f" pip3 install {' '.join(missing_modules)}") - print(f"\nIf using a virtual environment, activate it first and then run the pip command.") + print("\nIf using a virtual environment, activate it first and then run the pip command.") sys.exit(1) # Check modules before importing check_required_modules() import dns.resolver -import dns.zone import requests import concurrent.futures import csv -from urllib.parse import urlparse -from typing import Dict, List, Optional, Set +from typing import Dict, List, Optional class DomainAnalyzer: def __init__(self):