[BUG] - TikTok blocks this request displaying a Captcha even with custom_verifyFp
See original GitHub issueDescribe the bug
custom_verifyFp worked last week. Today, it got blocked even with custom_verifyFp parameter. I am suspecting the cookie had expired. So, I tried to get new s_v_web_id, I usee the login with phone number method to open the Captcha box.
The buggy code
api = TikTokApi(custom_verify_fp=sys.argv[1])
user = api.user(sys.argv[2])
python tiktok.py cookie_here username_here
Expected behavior
It should return dict.
Error Trace (if any)
ERROR:root:Tiktok wants to display a catcha. Response is:
{"code":"10000", **removed as it contains the fp cookie**}
ERROR:root:{**removed as it contains csrf token**}
Traceback (most recent call last):
File "C:\Users\jason\Desktop\GitHub\learn\social-media-engagement-rate-calculator\tiktok.py", line 11, in <module>
tiktoks = api.by_username(sys.argv[2], count=postscount, custom_verifyFp=sys.argv[1])
File "C:\Users\jason\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TikTokApi\tiktok.py", line 702, in by_username
return self.user_posts(
File "C:\Users\jason\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TikTokApi\tiktok.py", line 666, in user_posts
res = self.get_data(url=api_url, send_tt_params=True, **kwargs)
File "C:\Users\jason\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TikTokApi\tiktok.py", line 311, in get_data
raise TikTokCaptchaError()
TikTokApi.exceptions.TikTokCaptchaError: TikTok blocks this request displaying a Captcha
Tip: Consider using a proxy or a custom_verifyFp as method parameters
Desktop (please complete the following information):
- OS: Windows 10
- TikTokApi Version 5.0.0
Additional context
I tested it on v4.1.0 and v5.0.0, identical behavior occurs.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
[BUG] - TikTok blocks this request displaying a Captcha · Issue ...
I've tested with and without the custom_verify_Fp, and used the custom_verify_Fp at both the instance and method levels. I've tried running on ...
Read more >how to create a good verifyfp for TikTok-Api to bypass captcha ...
how to create a good verifyfp for TikTok -Api to bypass captcha error. Watch later. Share. Copy link. Info. Shopping. Tap to unmute....
Read more >How to fix 'The captcha you entered is incorrect.' error in ...
After filling the fields and pressing the button 'Submit' the error message appears saying that "The captcha you entered is incorrect. Please try...
Read more >Getting Google Captcha In Safari On iPhone And Mac? (Fixed!)
Are you constantly getting Google Captcha in Safari on iPhone, iPad & Mac? Test keep appearing since updating to iOS 15 and macOS...
Read more >I'm Not a Robot! So Why Won't Captchas Believe Me? - WIRED
Everyone's run into a Captcha they just can't get right. ... disappointment when she failed the captcha user-verification test, even though ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @RobLOlson. Had the same issue. I will try to look at it, just need to find some time( If something is found, will let you know here as well.
Here I made a solution that work for me. https://github.com/nazar-mykolyshyn/TikTok-Api/releases/tag/5.1.0