TikTok-Api icon indicating copy to clipboard operation
TikTok-Api copied to clipboard

[BUG] - TikTokApi.exceptions.CaptchaException when running example `search_example.py`

Open howjmay opened this issue 1 year ago • 4 comments

Fill Out the template :)

Describe the bug

when running example search_example.py the following error is returned

TikTokApi.exceptions.CaptchaException: 0 -> TikTok blocks this request displaying a Captcha 
Tip: Consider using a proxy or a custom_verify_fp as method parameters

The buggy code

import logging
TikTokApi(logging_level=logging.INFO) # SETS LOGGING_LEVEL TO INFO
# Hopefully the info level will help you debug or at least someone else on the issue
from TikTokApi import TikTokApi

with TikTokApi() as api:
    for user in api.search.users("therock"):
        print(user.username)

    for sound in api.search.sounds("funny"):
        print(sound.title)

    for hashtag in api.search.hashtags("funny"):
        print(hashtag.name)

Expected behavior

Example can successfully run

Error Trace (if any)

Put the error trace below if there's any error thrown.

# Error Trace Here

Desktop (please complete the following information):

  • OS: MacOS
  • TikTokApi Version 5.x.x

Additional context

Add any other context about the problem here.

howjmay avatar Jul 17 '22 08:07 howjmay

same exact issue, actually none of the examples code work, each time it gives the same error:

TikTokApi.exceptions.CaptchaException: 0 -> TikTok blocks this request displaying a Captcha
Tip: Consider using a proxy or a custom_verify_fp as method parameters

I tried putting a custom_verify_fp or even using a proxy, same issue, absolutely nothing works...

aitrepreneur avatar Jul 21 '22 14:07 aitrepreneur

same problem ,i using a proxy,but also fail

siqyka avatar Aug 12 '22 01:08 siqyka

I've been running into the same issue, and I think it is related specifically to when you are searching a user instance. For example, when you use the API to search the data for a specific video the captcha exception does not come up. However, trying to search for information specific to a user will raise the Captcha exception whether or not you're using a proxy.

jhough-veritone avatar Aug 25 '22 14:08 jhough-veritone

same here

sajjaddevel avatar Aug 31 '22 07:08 sajjaddevel

same here

Rashad-j avatar Sep 27 '22 17:09 Rashad-j

should be fixed in V6

davidteather avatar Aug 08 '23 22:08 davidteather