TikTok-Api: [BUG] Tiktok wants to display a catcha. Response is:

ERROR:root:Tiktok wants to display a catcha. Response is:
{"statusCode":10000,"verifyConfig":{"code":10000,"type":"verify","subtype":"slide","fp":"verify_khr3jabg_V7ucdslq_Vrw9_4KPb_AJ1b_Ks706M8zIJTq","region":"va","detail":"4hyVUOpatxxq6pHOBFmS8b3aMDzpm3L4rHXVrE9-Jm8OTW0P0R7YDjFEo7iIIdzyD8K2WhW4wKI5nDLOpn4VqCWvn8aDlinCUZ6ZVTG16fnrqQ0UD56vFwefAyC73phGyVW2x5*rFYRbBc4ypXRKnjUza4EISLLxDXNPWFhVCL*mESS-aI0DmMg8tmrUfIbFnPQfAQ94mYtMKGOpgR*1nbIAqvhIqVomD5v-rGKx7s17Z*jaDH56rNfIsP3BMr0uL2VgSvAyjpeBiWgsY*PaJtQEd3*JgxC0lulaXa-a3krdzZRmlCIftcLKfejSduRiu0f3MrBz-Uqp86mrjDA40JLE*7GnOXDRFtQBYU63kArkPvlAYJES8TPHomvu3I4g9ROK0xkwBy0."}}
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())
    try:
        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:
            f.write(str(tiktoks))
        print("\033[0;32;40mSuccess!\033[0m")
    except Exception as e:
        print("Errors:", e)
        print("\033[1;31mFail!\033[0m")

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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 15 (1 by maintainers)

Most upvoted comments

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