From c5e209d78e203f931a9e3bc6e51d6b49fdd33d3c Mon Sep 17 00:00:00 2001 From: dollaransh17 Date: Sat, 4 Oct 2025 11:23:55 +0530 Subject: [PATCH] fix(sites): Implement BoardGameGeek API detection as suggested Using the API endpoint suggested by akh7177: https://api.geekdo.com/api/users?username={} However, there's an edge case where valid users contain empty arrays in their JSON response (adminBadges[], userMicrobadges[], supportYears[]) which causes Sherlock's substring matching to incorrectly flag them as 'not found' when looking for the '[]' error pattern. The API correctly returns: - Valid user: JSON object with user data (but contains [] substrings) - Invalid user: Exactly '[]' (2 characters total) This needs further refinement to distinguish between the exact '[]' response vs JSON containing '[]' substrings. --- sherlock_project/resources/data.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sherlock_project/resources/data.json b/sherlock_project/resources/data.json index 891b6245..09168d17 100644 --- a/sherlock_project/resources/data.json +++ b/sherlock_project/resources/data.json @@ -278,6 +278,15 @@ "urlMain": "https://bsky.app/", "username_claimed": "mcuban" }, + "BoardGameGeek": { + "errorMsg": "[]", + "errorType": "message", + "regexCheck": "^[a-zA-Z0-9_]*$", + "url": "https://boardgamegeek.com/profile/{}", + "urlMain": "https://boardgamegeek.com", + "urlProbe": "https://api.geekdo.com/api/users?username={}", + "username_claimed": "blue" + }, "BongaCams": { "errorType": "status_code", "isNSFW": true,