Skip to content

Commit 9e3448d

Browse files
committed
fix(sites): So , Implemented BoardGameGeek using username validation API
- Added BoardGameGeek back using the new API endpoint suggested by @ppfeister - Uses https://api.geekdo.com/api/accounts/validate/username?username={} for detection - errorMsg checks for '"isValid":true' to detect valid usernames - This approach avoids the previous issues with: * HTML parsing returning false positives * User API returning JSON with '[]' substrings that caused detection problems - Successfully tested with both valid (blue) and invalid usernames Thanks @ppfeister for the API suggestion and @akh7177 for the initial guidance
1 parent 94c0138 commit 9e3448d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sherlock_project/resources/data.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@
291291
"urlMain": "https://www.bookcrossing.com/",
292292
"username_claimed": "blue"
293293
},
294+
"BoardGameGeek": {
295+
"errorMsg": "\"isValid\":true",
296+
"errorType": "message",
297+
"url": "https://boardgamegeek.com/user/{}",
298+
"urlMain": "https://boardgamegeek.com/",
299+
"urlProbe": "https://api.geekdo.com/api/accounts/validate/username?username={}",
300+
"username_claimed": "blue"
301+
},
294302
"BraveCommunity": {
295303
"errorType": "status_code",
296304
"url": "https://community.brave.com/u/{}/",

0 commit comments

Comments
 (0)