🕵️♂️ (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(instagram.py): improve error handling and extended headers
kaifcodec0d98fe5ce58c
diff --git a/user_scanner/email_scan/social/instagram.py b/user_scanner/email_scan/social/instagram.pyindex 32d7774..698ae38 100644--- a/user_scanner/email_scan/social/instagram.py+++ b/user_scanner/email_scan/social/instagram.py@@ -1,6 +1,7 @@import httpxfrom user_scanner.core.result import Result+async def _check(email):USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"async with httpx.AsyncClient(headers={"user-agent": USER_AGENT}, http2=True) as client:@@ -9,9 +10,21 @@ async def _check(email):headers = {"x-csrftoken": csrf,- "x-ig-app-id": "936619743392459",- "x-requested-with": "XMLHttpRequest",- "referer": "https://www.instagram.com/accounts/password/reset/"+ 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",+ 'Accept-Encoding': "identity",+ 'sec-ch-ua-full-version-list': "\"Google Chrome\";v=\"143.0.7499.146\", \"Chromium\";v=\"143.0.7499.146\", \"Not A(Brand\";v=\"24.0.0.0\"",+ 'sec-ch-ua-platform': "\"Linux\"",+ 'sec-ch-ua': "\"Google Chrome\";v=\"143\", \"Chromium\";v=\"143\", \"Not A(Brand\";v=\"24\"",+ 'sec-ch-ua-model': "\"\"",+ 'sec-ch-ua-mobile': "?0",+ 'x-ig-app-id': "936619743392459",+ 'x-requested-with': "XMLHttpRequest",+ 'x-instagram-ajax': "1031566424",+ 'x-asbd-id': "359341",+ 'x-ig-www-claim': "0",+ 'sec-ch-ua-platform-version': "\"\"",+ 'origin': "https://www.instagram.com",+ 'referer': "https://www.instagram.com/accounts/password/reset/"}response = await client.post(@@ -21,7 +34,15 @@ async def _check(email):)data = response.json()- return Result.taken() if data.get("status") == "ok" else Result.available()+ status_val = data.get("status")+ if status_val == "ok":+ return Result.taken()+ elif status_val == "fail":+ return Result.available()+ else:+ return Result.error("Unexpected response body, report it on github")++def validate_instagram(email: str) -> Result:return _check(email)