Skip to content

feat: add OpenStreetMap username validation module (#307)#308

Merged
kaifcodec merged 1 commit intokaifcodec:mainfrom
zeel2104:add-openstreetmap-module
Mar 25, 2026
Merged

feat: add OpenStreetMap username validation module (#307)#308
kaifcodec merged 1 commit intokaifcodec:mainfrom
zeel2104:add-openstreetmap-module

Conversation

@zeel2104
Copy link
Copy Markdown
Contributor

Closes #307
Adds a new username validation module for OpenStreetMap under user_scanner/user_scan/social/openstreetmap.py.

Technical Details
Site Name: OpenStreetMap
Base URL: https://www.openstreetmap.org/user/{username}
Category: social

Validation Logic
Uses generic_validate() with a process callback:

Returns Result.taken() if "Mapper since" is found in the response body (only present on real user profiles)
Returns Result.available() if HTTP status is 404
Returns Result.available() if "does not exist" is found in the response body (fallback)
Returns Result.error() for any unexpected response

Testing

Firefishy | Found | ✅ Found
thisdefinitelydoesnotexist99999 | Not Found | ✅ Not Found
testopenscaneer

Checklist

[x]Used generic_validate() with a process callback
[x]Avoided status_validate()
[x]Matches structure and imports of existing social modules
[x] No bot detection / CAPTCHA issues observed
[x]Tested locally with known existing and non-existing accounts

Copy link
Copy Markdown
Owner

@kaifcodec kaifcodec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zeel2104 thanks for the contribution! Merging it!

@kaifcodec kaifcodec merged commit 416cf9d into kaifcodec:main Mar 25, 2026
2 checks passed
@kaifcodec kaifcodec added the user module addition PRs or issues related to new user_scan module additions label Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

user module addition PRs or issues related to new user_scan module additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New Module] Add username support for openstreetmap.py

2 participants