feat: add Tube8 email scan module#421
Merged
Merged
Conversation
Add email-based Tube8 account check via the register/verify_email endpoint (email_scan/adult), following the same Aylo create-account flow as YouPorn and RedTube. Includes the shared is_valid_email helper used to guard the "requirements" response, matching the helper introduced alongside RedTube.
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 Tube8 account check to
email_scan/adult/.How it works
Tube8 is on the same Aylo/MindGeek backend as Pornhub / RedTube / YouPorn and uses the identical signup validation flow:
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, Tube8 reports an existing account by refusing registration ("does not meet our registration requirements") rather than saying it's taken — same behavior as YouPorn/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 RedTube (PR #417) and YouPorn (PR #420) — byte-for-byte identical — so overlapping merges resolve as a no-op onhelpers.py.Notes
Testing
test@gmail.com→ Registered; throwaway addresses → Not Registered.pytest tests/: all pass except 2 pre-existing Windowschmod(0)no-op tests, unrelated to this change.