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.

fix(chess_com): resolve mixed-case handles instead of erroring on the 301 (#558)

BrunoLMb0c35c969cfd
diff --git a/user_scanner/user_scan/gaming/chess_com.py b/user_scanner/user_scan/gaming/chess_com.py
index 676a1c9..c7751a9 100644
--- a/user_scanner/user_scan/gaming/chess_com.py
+++ b/user_scanner/user_scan/gaming/chess_com.py
@@ -17,7 +17,9 @@ def validate_chess_com(user: str) -> Result:
if not (user[0].isalnum() and user[-1].isalnum()):
return Result.available("Username must start and end with a letter or number")
- url = f"https://api.chess.com/pub/player/{user}"
+ # The API 301-redirects any non-lowercase handle to its lowercase form, so
+ # request the canonical form directly and keep 3xx meaningful as an error.
+ url = f"https://api.chess.com/pub/player/{user.lower()}"
show_url = f"https://www.chess.com/member/{user}"
headers = {