Skip to content

🕵️‍♂️ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.

refactor: add extra data extraction logic for 4 political sites

Kaif40d4dc806bbc
diff --git a/user_scanner/user_scan/political/americanthinker.py b/user_scanner/user_scan/political/americanthinker.py
index fa8ac6e..17a3c6c 100644
--- a/user_scanner/user_scan/political/americanthinker.py
+++ b/user_scanner/user_scan/political/americanthinker.py
@@ -1,8 +1,19 @@
-from user_scanner.core.orchestrator import status_validate
-
+from user_scanner.core.orchestrator import generic_validate, Result
+import re
def validate_americanthinker(user):
url = f"https://www.americanthinker.com/author/{user}/"
show_url = url
- return status_validate(url, 404, 200, show_url=show_url)
+ def process(response):
+ if response.status_code == 200:
+ extra = {}
+ name_match = re.search(r'<h3 class="author_name">([^<]+)</h3>', response.text)
+ if name_match:
+ extra["name"] = name_match.group(1).strip()
+ return Result.taken(extra=extra)
+ elif response.status_code == 404:
+ return Result.available()
+ return Result.error(f"Unexpected status code {response.status_code}")
+
+ return generic_validate(url, process, show_url=show_url, follow_redirects=False)
diff --git a/user_scanner/user_scan/political/bitchute.py b/user_scanner/user_scan/political/bitchute.py
index 8084e49..d30324c 100644
--- a/user_scanner/user_scan/political/bitchute.py
+++ b/user_scanner/user_scan/political/bitchute.py
@@ -9,7 +9,20 @@ def validate_bitchute(user):
def process(response):
if '"channel_id":' in response.text:
- return Result.taken()
+ extra = {}
+ try:
+ data = response.json()
+ if "channel_name" in data:
+ extra["name"] = data["channel_name"]
+ if "description" in data and data["description"]:
+ extra["description"] = data["description"].strip()
+ if "subscriber_count" in data:
+ extra["subscribers"] = data["subscriber_count"]
+ if "video_count" in data:
+ extra["videos"] = data["video_count"]
+ except Exception:
+ pass
+ return Result.taken(extra=extra)
if '"errors":' in response.text:
return Result.available()
diff --git a/user_scanner/user_scan/political/naturalnews.py b/user_scanner/user_scan/political/naturalnews.py
index f7e3e94..07f5d55 100644
--- a/user_scanner/user_scan/political/naturalnews.py
+++ b/user_scanner/user_scan/political/naturalnews.py
@@ -1,5 +1,5 @@
from user_scanner.core.orchestrator import generic_validate, Result
-
+import re
def validate_naturalnews(user):
url = f"https://naturalnews.com/author/{user}/"
@@ -7,9 +7,14 @@ def validate_naturalnews(user):
def process(response):
if '<div class="VideoPosts">' in response.text:
- return Result.taken()
+ extra = {}
+ title_match = re.search(r'<title>([^<]+)</title>', response.text)
+ if title_match:
+ clean_title = title_match.group(1).replace(" - NaturalNews.com", "").strip()
+ extra["title"] = clean_title
+ return Result.taken(extra=extra)
- if "The page you are looking for cannot be found" in response.text:
+ if "The page you are looking for cannot be found" in response.text or response.status_code == 404:
return Result.available()
return Result.error("Unexpected response body, report it via GitHub issues.")
diff --git a/user_scanner/user_scan/political/newamerica.py b/user_scanner/user_scan/political/newamerica.py
index de490b7..fa02c7c 100644
--- a/user_scanner/user_scan/political/newamerica.py
+++ b/user_scanner/user_scan/political/newamerica.py
@@ -1,17 +1,24 @@
from user_scanner.core.orchestrator import generic_validate, Result
-
+import re
def validate_newamerica(user):
url = f"https://www.newamerica.org/our-people/{user}/"
show_url = url
def process(response):
- if f'href="http://newamerica.org/our-people/{user}/"' in response.text:
- return Result.taken()
+ if response.status_code == 200 and "Page not found" not in response.text:
+
+ final_url = str(response.url)
+ if f"/people/{user}/" in final_url or f"/our-people/{user}/" in final_url:
+ extra = {}
+ name_match = re.search(r'<h1 class="header2-name"[^>]*>([^<]+)</h1>', response.text)
+ if name_match:
+ extra["name"] = name_match.group(1).strip()
+ return Result.taken(extra=extra)
- if "Page not found" in response.text:
+ if "Page not found" in response.text or response.status_code == 404:
return Result.available()
- return Result.error("Unexpected response body, report it via GitHub issues.")
+ return Result.error(f"Unexpected response body, status {response.status_code}")
- return generic_validate(url, process, show_url=show_url)
+ return generic_validate(url, process, show_url=show_url, follow_redirects=True)