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] Tiktok wants to display a catcha. Response is:

See original GitHub issue
ERROR:root:Tiktok wants to display a catcha. Response is:
ERROR:root:{'tt_webid': '3373488270993372972', 'tt_webid_v2': '3373488270993372972', 'tt_csrf_token': 'mHVDcsqFRScFiRbG'}
Errors: TikTok blocks this request displaying a Captcha 
Tip: Consider using a proxy or a custom_verifyFp as method parameters

These are my code here:

import time
from logging import exception

from TikTokApi import TikTokApi

if __name__ == "__main__":
    verifyFp = "verify_khr3jabg_V7ucdslq_Vrw9_4KPb_AJ1b_Ks706M8zIJTq"
    count = 30
    curTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
        api = TikTokApi.get_instance(custom_verifyFp=verifyFp)
        tiktoks = api.byHashtag("funny", count=count)
        with open("results/getTiktoksByHashtag_" + curTime + ".json", "w", encoding="utf-8") as f:
    except Exception as e:
        print("Errors:", e)

How to solve this problem?What am i suppose t do?Thanks

Issue Analytics

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

github_iconTop GitHub Comments

18272841175commented, Jun 3, 2021

tiktok_api = Tiktok() tiktok_list = tiktok_api.byHashtag(hashtag_name,count=2000,proxy=‘http://xxx.xxxx.xxxx:port’),#ip:端口

davidteathercommented, Jun 10, 2021

#613 / Version 3.9.9 should fix this to an extent 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix TikTok blocks this request displaying a Captcha #421
Try the following api = TikTokApi(use_api_endpoints=True) it uses TikTok's test endpoints which seem to have less security. Their entire desktop ...
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). ... Tiktok wants to display a...
Read more >
First steps - TikTok Help Center
If internet connectivity is not the issue, try clearing your app cache. To clear your cache: 1. Tap Profile in the bottom right....
Read more >
What is CAPTCHA? - Google Workspace Admin Help
CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a type of security measure known as challenge-response ...
Read more >
Newest 'tiktok' Questions - Stack Overflow
I want to download video without watermark from within Tiktok app. ... home page that the dev tools show an error with an...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found