Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - CaptchaException even with proxy and custom_verify_fp #978

Closed
gbiz123 opened this issue Nov 29, 2022 · 5 comments
Closed

[BUG] - CaptchaException even with proxy and custom_verify_fp #978

gbiz123 opened this issue Nov 29, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@gbiz123
Copy link

gbiz123 commented Nov 29, 2022

Fill Out the template :)

Getting captcha exception no matter what I do, even with custom_verify_fp and residential proxy

A clear and concise description of what the bug is.

from TikTokApi import TikTokApi
proxy = "http:my_proxy:port"
sv = "verify_lb1f1ug1_u3VZLU0Y_u56b_4liW_ASSF_2qSvrqrdJjTZ"
api = TikTokApi(proxy=proxy, custom_verify_fp=sv)
user = api,user(username="any_user")
user.as_dict

Exception:
CaptchaException: 0 -> 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: Arch Linux
 - TikTokApi Version [e.g. 5.0.0] - latest version (did pip install --upgrade)
@gbiz123 gbiz123 added the bug Something isn't working label Nov 29, 2022
@fer0m
Copy link

fer0m commented Nov 29, 2022

Up. Have same problem. Any ideas?

@Russell-Newton
Copy link

I can't help with this library, but I've created my own that circumvents this issue. It grabs data in a slightly different way that doesn't require providing a verify_fp or a proxy because it automatically grabs the verify_fp for you. The behavior of mine is slightly different, but I've been using it without a hitch so far. I'm actively trying to improve it as people bring issues to my attention and am open to contributions and ideas.

@terrok9
Copy link

terrok9 commented Jan 11, 2023

After 5 - 6 hours of research and workaround, I couldn't make a solution to this problem.
I can summarize some points that I have discovered through try and error:

First: We can't reach Tiktok's s_v_web_id token. This is due a change on the overall web page.
Second: Even if you force the webpage to give you a token using a custom link (here the example) or consuming full resources using a bot based on Selenium to pop a captcha, the resulting code still fails.
Third: It seems that @davidteather have solved this issue after v5 but captcha still popping and we can't go deep on the API. You can see the related issue here.

I really believe that this project is state of the art input for the next NLP models, I will see how can I help in the workaround.

@444joseph444
Copy link

444joseph444 commented Jan 12, 2023 via email

@davidteather
Copy link
Owner

Should be fixed in V6 I think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants
@Russell-Newton @fer0m @davidteather @gbiz123 @terrok9 @444joseph444 and others