fix: update Tumblr email validation module - #622
Conversation
- Replace urllib with curl_cffi to bypass bot detection - Update User-Agent to Chrome 131 - Add modern browser headers (Sec-*) - Increase password strength to meet API requirements - Handle empty list response for available emails - Fixes 403 Forbidden error
|
Hi @kaifcodec! 👋 Just a gentle ping on this PR when you get a chance. All checks have passed and the fix has been tested ✅. Quick summary:
Let me know if anything else is needed! 🙌 |
|
Yeah, I will review it soon today. |
|
@kaifcodec Got it! I'll open a new PR with the fixes for the Zillow module. Will work on:
Will ping you when the new PR is ready. 🚀 |
|
Thanks @Azaucifer . |
|
@kaifcodec Quick update on the Zillow module (#396): I looked into taking it over, but Zillow's PerimeterX bot protection is too strong. What I tried:
Conclusion: Zillow blocks ALL automated requests, even headless browsers. Looking at the Let me know if you still want me to open a PR with the code as it is, or if you would mark it as abandoned. 🙌 |
|
No need to open PR, however check #492 he/she might not be active just ping them if no response take that if want. |
|
@Azaucifer I just tested it with known emails Can you re-check it on your end again? Edit: It wasn't 403, I noticed for registered emails it returns |
- Add handling for 'User already exists' response (code: 2) - Previously returned error for registered emails - Now correctly returns Result.taken() - Fixes the issue identified by maintainer
… and 400 handling
|
@kaifcodec All checks are now passing! ✅ The module has been fixed and tested:
Ready for review whenever you have time! 🙌 |
|
@Azaucifer Thanks for the update, I will review it soon. |
|
@kaifcodec Sure take your time! |
kaifcodec
left a comment
There was a problem hiding this comment.
@Azaucifer Just tested it.
It's perfect, MERGING IT.
Thank you.
Summary
Fixes the Tumblr email validation module, which was returning
403 Forbiddenerrors and incorrectly handling certain API responses.Changes Made
urllibrequests withcurl_cffiusing Chrome browser impersonation.Sec-*headers, to better match legitimate browser requests.[]), which indicates that the email address is available.Why This Fixes the Issue
Tumblr's bot-detection mechanism was blocking requests made through
urllib, resulting in403 Forbiddenresponses.Using
curl_cffiwithchrome131browser impersonation makes the request more closely resemble a modern browser request, allowing the validation request to complete successfully.The module also now uses a password that satisfies the API's strength requirements and correctly handles the
[]response returned when an email address is available.Test Results
Tested the Tumblr module with a real email address:
Output:
Testing Done
403 Forbiddenerror no longer occurs.[]API response is handled correctly.