Skip to content

Add user validation functionality for daily.dev#326

Merged
kaifcodec merged 1 commit intokaifcodec:mainfrom
KagemaNjoroge:main
Apr 21, 2026
Merged

Add user validation functionality for daily.dev#326
kaifcodec merged 1 commit intokaifcodec:mainfrom
KagemaNjoroge:main

Conversation

@KagemaNjoroge
Copy link
Copy Markdown
Contributor

This pull request adds a new validator for Daily.dev usernames. The main changes include implementing a validate_daily_dev function that checks for username availability by parsing the page's __NEXT_DATA__ JSON payload, and introducing a helper to extract that data from the HTML.

New Daily.dev validator:

  • Added validate_daily_dev function that sends a request to the Daily.dev user profile, parses the __NEXT_DATA__ payload, and determines if the username is taken, available, or if an error occurred.
  • Introduced _extract_next_data helper function to extract and parse the __NEXT_DATA__ JSON from the HTML response using a regular expression.

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.

@KagemaNjoroge Thank you for the contribution!
It looks good to me, I roughly tested with two usernames and it works as expected.
Feel free to add more site support to the tool.

@kaifcodec kaifcodec merged commit dc8865a into kaifcodec:main Apr 21, 2026
2 checks passed
@kaifcodec kaifcodec added the user module addition PRs or issues related to new user_scan module additions label Apr 24, 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.

2 participants