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

Tik Tok displaying captcha, even after using proxy. (how to find verify_fp?)

Open wrogers3 opened this issue 2 years ago • 10 comments

Despite the usage of proxies, there seems to still be the bug in regards to tiktok blocking the requests through captcha. Is there a way we could use a different verifyfp because I know that is the main problem. HOW TO FIND VERIFYFP that is usable?

You run the following:

SET LOGGING LEVEL TO INFO BEFORE POSTING CODE OUTPUT

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
# Code Goes Here
```import logging
TikTokApi(logging_level=logging.INFO)
from TikTokApi import TikTokApi

verify_fp = "verify_xxx"
api = TikTokApi(custom_verify_fp=verify_fp)

tag = api.hashtag(name="fyp")

print(tag.info())
for video in tag.videos():
    print(video.id)



**Expected behavior**

283974239889324
209348230948398
293084230948234
.
.
.

**Error Trace (if any)**

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

Error Trace Here

  File "idget.py", line 9, in <module>
    for video in tag.videos():
  File "/home/beta/.local/lib/python3.8/site-packages/TikTokApi/api/hashtag.py", line 117, in videos
    res = self.parent.get_data(path, **kwargs)
  File "/home/beta/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 293, in get_data
    raise TikTokCaptchaError()
TikTokApi.exceptions.TikTokCaptchaError: TikTok blocks this request displaying a Captcha 
Tip: Consider using a proxy or a custom_verify_fp as method parameters


**Desktop (please complete the following information):**
 - OS: Ubuntu 20.04.4 LTS x86_64
 - TikTokApi Version 5.0.0

**Additional context**

Add any other context about the problem here.

wrogers3 avatar Mar 20 '22 12:03 wrogers3

same to me

3dian avatar Mar 26 '22 05:03 3dian

same to me

pablobots avatar Mar 28 '22 14:03 pablobots

Still having this issue...

leonardparisi avatar Mar 29 '22 21:03 leonardparisi

how to find verify_fp?

  • delete cookie
  • Login with your phone number.

sheepcloud avatar Apr 08 '22 06:04 sheepcloud

For me all that was needed was opening the page in a new browser and clicking around on the page to randomly trigger the captcha. No need to login or give a phone number!

flyck avatar May 01 '22 12:05 flyck

I got the verify_fp by finishing the captcha after deleting cookies and attempting to login with phone number, and then I put it in the

api = TikTokApi(custom_verify_fp=verify_fp)

But it still asks for captcha.

Enu0 avatar May 08 '22 23:05 Enu0

I got the verify_fp by finishing the captcha after deleting cookies and attempting to login with phone number, and then I put it in the

api = TikTokApi(custom_verify_fp=verify_fp)

But it still asks for captcha.

Yeah it's pretty much the same for everyone. Let's hope David sees this and finds a fix!

Alex-Laparra avatar May 09 '22 04:05 Alex-Laparra

Has any solution come yet?? Thanks!

kkkkkkatttttt avatar May 09 '22 15:05 kkkkkkatttttt

Same problem, api always asks for captcha

MassterMax avatar May 09 '22 16:05 MassterMax

Same trouble. Phone not helps

yokotoka avatar May 11 '22 00:05 yokotoka

Try v6 will require msToken

davidteather avatar Aug 08 '23 22:08 davidteather