feat: add YouPorn email scan module#420
Merged
Merged
Conversation
Add email-based YouPorn account check via the register/verify_email endpoint (email_scan/adult), following the same Aylo create-account flow as RedTube. Includes the shared is_valid_email helper used to guard the "requirements" response, matching the helper introduced alongside RedTube.
kaifcodec
approved these changes
Jul 19, 2026
kaifcodec
left a comment
Owner
There was a problem hiding this comment.
@brunolm Outstanding work on these modules. The quality of your recent PRs has been excellent and brings great value to the project.
If you have the bandwidth, we would love to see your continued contributions. We are also very open to inviting you to join us as a core maintainer if you have the time to dedicate to a larger role. Let us know your thoughts!
Owner
|
I have personally tested the modules and everything looks great; I will test a few edge cases and get them merged soon! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an email-based YouPorn account check to
email_scan/adult/.How it works
YouPorn is on the same Aylo/MindGeek backend as Pornhub/RedTube. It uses the signup form's async validation endpoint:
GET /registerto scrape the per-sessionpage_params.token(ends in a literal.that must be preserved).POST /register/verify_emailwithtoken+email.Response mapping:
{"success":true}{"success":false, ["...does not meet our registration requirements."]}(valid email){"success":false, ["Not available."]}(stale/over-used token throttle)For a well-formed address, YouPorn reports an existing account by refusing registration ("does not meet our registration requirements") rather than saying it's taken — same behavior as RedTube. The
is_valid_emailguard ensures malformed inputs aren't misreported as hits.Shared helper
Reuses the
is_valid_emailhelper incore/helpers.py. This is the same helper introduced alongside the RedTube module (PR #417) — byte-for-byte identical — so if both land, the second merge is a no-op onhelpers.pyrather than a real conflict.Notes
/users/0000/0286/…), so username lookups by name 404 — no viable username module./users/{name}path).Testing
brunolm7@gmail.com→ Registered; throwaway addresses → Not Registered.pytest tests/: all pass except 2 pre-existing Windowschmod(0)no-op tests, unrelated to this change.