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.

add: Riot ID validation module (gaming)

Sylvain_M980ff02c4b2f58
diff --git a/user_scanner/user_scan/gaming/riot_id.py b/user_scanner/user_scan/gaming/riot_id.py
new file mode 100644
index 0000000..2bc72ee
--- /dev/null
+++ b/user_scanner/user_scan/gaming/riot_id.py
@@ -0,0 +1,42 @@
+from user_scanner.core.orchestrator import generic_validate
+from user_scanner.core.result import Result
+
+
+def validate_riot_id(user: str) -> Result:
+ """Check if a Riot ID (Name#Tag) is registered across Riot Games titles."""
+ show_url = "https://www.riotid-lookup.com"
+
+ user = user.strip()
+ if user.count("#") != 1:
+ return Result.error("Riot ID format required: Name#Tag (e.g. TenZ#00005)")
+
+ name, tag = user.split("#")
+ if not name or not tag:
+ return Result.error("Both name and tag are required (e.g. TenZ#00005)")
+
+ if not (3 <= len(tag) <= 5):
+ return Result.error("Tag must be 3-5 characters")
+
+ encoded = user.replace("#", "%23")
+ url = f"https://www.riotid-lookup.com/api/lookup?riotId={encoded}"
+
+ def process(response):
+ if response.status_code == 200:
+ data = response.json()
+ if data.get("isTaken"):
+ return Result.taken()
+ return Result.available()
+
+ if response.status_code == 400:
+ return Result.error("Invalid Riot ID format")
+
+ return Result.error(f"HTTP {response.status_code}")
+
+ headers = {
+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 "
+ "(KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
+ "Accept": "application/json",
+ "Accept-Encoding": "gzip, deflate",
+ }
+
+ return generic_validate(url, process, show_url=show_url, headers=headers)