🕵️♂️ (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.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
fix(email_scan): tolerate attributes on screener's errorlist markup (#617)
Aravind S52fc10689b10
diff --git a/user_scanner/email_scan/other/screener.py b/user_scanner/email_scan/other/screener.pyindex 646d5d6..27f3777 100644--- a/user_scanner/email_scan/other/screener.py+++ b/user_scanner/email_scan/other/screener.py@@ -2,6 +2,16 @@ import httpximport refrom user_scanner.core.result import Result+# screener.in renders its "field required" error with Django's errorlist markup.+# Django now emits an id on that <ul> (id="id_<field>_error"), so the previous+# exact-tag string match stopped matching and every address fell through to the+# "unexpected response body structure" error. Match on the class and the message+# it wraps instead, so the check survives further attribute changes.+_REQUIRED_FIELD_ERROR = re.compile(+ r'<ul[^>]*\sclass="[^"]*\berrorlist\b[^"]*"[^>]*>\s*<li>\s*This field is required\.\s*</li>',+ re.IGNORECASE,+)+async def _check(email: str) -> Result:url = "https://www.screener.in/register/"@@ -65,7 +75,7 @@ async def _check(email: str) -> Result:if "User account with this Email already exists" in res_text:return Result.taken(url=show_url)- if '<ul class="errorlist"><li>This field is required.</li>' in res_text:+ if _REQUIRED_FIELD_ERROR.search(res_text):return Result.available(url=show_url)return Result.error("Unexpected response body structure, report it via GitHub issues")