question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] - TikTokApi.exceptions.TikTokCaptchaError: TikTok blocks this request displaying a Captcha

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
angelopouloschristoscommented, Dec 31, 2021

This ha

@an-dev The issue was resolved once I changed verifyFp and now it is working fine for me.

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

3reactions
vdemaycommented, Dec 23, 2021

Same for me! It seems something changes on tiktok side

Read more comments on GitHub >

github_iconTop Results From Across the Web

TikTok blocks this request displaying a Captcha · Issue #397 ...
[INSTALLATION] - TikTok blocks this request displaying a Captcha #397 ... in getData raise TikTokCaptchaError() TikTokApi.exceptions.
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 errordiscord : discord.gg/kpoppaypal : https://www.paypal.me/ksinging.
Read more >
Captcha error with Python TikTokApi (from davidteather)
Here is the error I get running it: TikTokApi.exceptions.TikTokCaptchaError: TikTok blocks this request displaying a Captcha Tip: Consider ...
Read more >
tiktok-captcha-solver - npm
Solves the TikTok captcha interactively using playwright or puppeteer.. Latest version: 0.0.9, last published: 8 months ago.
Read more >
How to avoid a tiktok captcha? : r/AskProgramming - Reddit
I use TikTokApi and my goal is to print all the tiktok liked by an user (mine). ... 0 -> TikTok blocks this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found