TikTok-Api: [BUG] - TikTokApi.exceptions.TikTokCaptchaError: TikTok blocks this request displaying a Captcha
Describe the bug
I am trying to scrape posts from profile using your code, but getting 10000 error code. I did a bit of debugging and found out that the issue is maybe due to invalid _signature. I have already tried with custom_verifyFp and also proxy as well as VPN but facing the same error.Also, I am able to open the profile in browser without loging, so my IP isn’t blocked and it isn’t displaying any captcha.
The buggy code
from TikTokApi import TikTokApi
api = TikTokApi.get_instance()
results = 10
# Since TikTok changed their API you need to use the custom_verifyFp option.
# In your web browser you will need to go to TikTok, Log in and get the s_v_web_id value.
trending = api.by_trending(count=results, custom_verifyFp="")
for tiktok in trending:
# Prints the id of the tiktok
print(tiktok['id'])
print(len(trending))
Error Trace (if any)
{'code': '10000', 'from': '', 'type': 'verify', 'version': '', 'region': 'va', 'subtype': 'slide', 'detail': 'Om4r-6OL8ecuWLMH8SchRcSS*vOeX31LKaHuFj5Peq9G0Xs6exPK3AvgF4YYrtxCmogpSWm77DlG2fI-cWlFiLmJslx131cJwD2PyDCDPGdpK4spDr*yIGkjnisc*NUc-tCvThVSlL4bbWdo*iD9Kr7zUb8RHkIq*iSpfvTNMvliuLSjFDp17FDnrJ-jWT9uiXSYTg5Gg1-VUmEU1O14CvK66X6wBIH9LvN-l2fbmRalRMnFTz9O5lR7*BCOXSkRqf3ayX-N222kiUfR3hDgHC70tocZUsPmS1vb4lnVw8qUsvPy2jf2oFLeelwW1x4N6q49EDJAelLbcznZeq0kZ3LpXHkxUlYLOLghRxlIwGlXC5oM3r5FdvRGvz-VAt0w242xhX-DyWL*nFmpO*7C*MMeMb0HiKDB', 'verify_event': '', 'fp': 'verify_3367e439432b62d07dc6348cfd4068e7', 'scene': '', 'verify_ticket': '', 'channel_mobile': '', 'sms_content': '', 'mobile': '', 'email': ''}
Desktop (please complete the following information):
- OS: Windows 11
- TikTokApi Version [e.g. 3.3.1] - 4.1.0
Additional context
Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 23 (2 by maintainers)
This ha
Please, post what you did put in the file & command to make it work. It is not working for me whatever i try and I DID NOT abuse request to tiktok to be blocked …
Post solution please or re-open the issue
Same for me! It seems something changes on tiktok side
I also encountered the same problem, I tried to replace verifyFp to solve the problem, but it didn’t work
Happy to see you got the same issue like me, yea it work once every X try’s … Waiting for someone to solve the issue but meanwhile, i will just make a batch-file that spam the request hahahaah … what else “easy” should we do
@an-dev The issue was resolved once I changed verifyFp and now it is working fine for me.
This works fine for me but can’t manage to make work by_username() even with custom_verifyFp or a proxy since wednesday even though it was working before 😦
same here.
same for me
I also encountered the same problem