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.

Revise CONTRIBUTING.md for clarity and formatting

Kaifd22a140f7b23
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..30a640d
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,114 @@
+# Contributing to User-Scanner
+
+Thanks for contributing! This guide explains how to add or modify platform validators correctly.
+
+---
+
+## Folder Structure
+
+- `social/` -> Social media platforms (Instagram, Reddit, Twitter, etc.)
+- `tech/` -> Tech platforms (GitHub, GitLab, Kaggle, etc.)
+- `community/` -> Miscellaneous or community-specific platforms
+- ...
+- ...
+- Create new directories for new category sites.
+
+All new modules should be placed in the relevant folder.
+
+Example structure:
+```
+user_scanner/
+β”œβ”€β”€ social/
+β”‚ └── <platform>.py
+β”œβ”€β”€ tech/
+β”‚ └── <platform>.py
+└── community/
+ └── <platform>.py
+```
+
+---
+
+## Module Naming
+
+- Each file should be named exactly after the platform, in lowercase.
+ - Examples: `github.py`, `reddit.py`, `x.py`, `pinterest.py`
+- Avoid spaces, special characters, or uppercase letters.
+
+---
+
+## Validator Function
+
+Each module must contain **one validator function**:
+
+- Function name format: `validate_<sitename>()`
+ - Example: `validate_github(user)` or `validate_x(user)`
+- Signature:
+```python
+def validate_<sitename>(user: str) -> int:
+ ...
+```
+- Return values:
+ - `1` β†’ Username **available**
+ - `0` β†’ Username **taken**
+ - `2` β†’ Error, blocked, or unknown
+- Only accepts a single argument: the username string.
+- Keep it **synchronous** (async optional for advanced modules).
+
+---
+
+## HTTP Requests
+
+- Use `httpx` for requests.
+- Set a reasonable timeout (e.g., 3–15 seconds).
+- Include a User-Agent header.
+- Catch exceptions and return `2` for errors:
+```python
+except (httpx.ConnectError, httpx.TimeoutException):
+ return 2
+except Exception:
+ return 2
+```
+
+---
+
+## Style Guidelines
+
+- Keep code clean and readable.
+- Follow **PEP8** conventions.
+
+---
+
+## Example Module
+
+```python
+import httpx
+from httpx import ConnectError, TimeoutException
+
+def validate_github(user):
+ """
+ Checks if a GitHub username is available.
+ Returns:
+ 1 -> available
+ 0 -> taken
+ 2 -> error/blocked
+ """
+ url = f"https://github.com/signup_check/username?value={user}"
+ headers = {"User-Agent": "Your User-Agent"}
+
+ try:
+ response = httpx.get(url, headers=headers, timeout=3.0)
+ if response.status_code == 200:
+ return 1
+ elif response.status_code == 422:
+ return 0
+ else:
+ return 2
+ except (ConnectError, TimeoutException):
+ return 2
+ except Exception:
+ return 2
+```
+
+---
+
+Following these guidelines ensures that **all validators are compatible with the orchestrator** and run correctly for the username scan.