-
-
Notifications
You must be signed in to change notification settings - Fork 928
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
TikTok blocks this request displaying a Captcha
even with custom_verifyFp
and proxy
#787
Comments
I am facing the same problem as well. It was working fine with custom_verifyFp earlier. But, I think a week ago, it starts breaking. Today, I run the by.username() in loop until it succeeded with custom_verifyFp and it worked once after each 20-30 tries. Sometimes changing proxy also helps but I think there is some issue with API. I have the exact same error as @kostyakoz Showed above. |
there is the same issue but in the "closed" section because someone closed it without a solution |
If you save the response as HTML and open it in a browser, you will see that there's information about the profile. I think that it's a parse problem, maybe TikTok has changed the structure. If you search for It's used this function to get the data:
and can't find I think that this could be the clue: https://git.raptorpond.com/henine/yt-dlp/commit/11aa91a12f95821500fa064402a3e2c046b072fb |
I've made a quick dirty fix for the meantime, works a lot better since they moved from next to sigi. https://github.com/Daan-Grashoff/TikTok-Api You can simply install it by using pip git+https://github.com/Daan-Grashoff/TikTok-Api. Thanks @joseantgv for pointing out where it goes wrong! |
Thanks for the fix! Works flawlessly, but would it be possible to return the Likes, Followers & Following count for a user? |
Thanks, but it isn't working for me. I only get 'UserModule' as error output when I run |
Have you tried remove the API and then installing this one. It should work |
Yes, I ran |
Thank you. It works. |
How did you install it? I'm still getting the error. |
I just replaced TktokApi with |
Ok. I think that @Daan-Grashoff didn't fix the method by_username. The get_user method partly works. |
I'm using it. It works. Do you use proxy ? The method is not working after some time. TikTok bans ip after some scraping. |
No, I tried it on my home ip. I just found out that the error appears, when the username doesn't exist anymore. For now it is working again. Thx. |
Great to hear |
@joseantgv error:
|
Initial changes for v5 of the project. Thanks @Daan-Grashoff for some of the helpers.extract_tag_contents code from a comment on #787 Co-Authored-By: Daan Grashoff <9222025+Daan-Grashoff@users.noreply.github.com>
hello, I still have the same issue and tried almost everything and nothing works.
The error is: |
* Initial changes for v5 of the project. * Thanks @Daan-Grashoff for some of the helpers.extract_tag_contents code from a comment on #787 * High Level Modeling of Classes * update tests & auto call object * Fix package-test * simplify info_full * Logging Improvements * Logging changes from #804 by @zokalo * Improve docs * Fix some mypy typing issues * Move old search functions to trending & fix process_kwargs * Private self variables Co-authored-by: davidteather <davidteather@users.noreply.github.com> Co-authored-by: Daan Grashoff <9222025+Daan-Grashoff@users.noreply.github.com> Co-authored-by: Dmitriy <16061619+zokalo@users.noreply.github.com>
Please try using V5.0.0 this may solve your problem |
Daan-Grashoff's fix was working perfect until today.. 5.0 is getting "Timeout 30000ms exceeded." |
async def fetch_tiktok_data(video_url: str) -> dict:
if name == "main": |
Everything was fine until last few days.
Error:
The most interesting thing there is that I can partly see obtained data from TikTok because its print HTML page in console before the error. You can see full response here: https://gist.githubusercontent.com/kostyakoz/1d5a7339217d646f1556d9fd63bcf7a8/raw/b18f4ae5e869325bb746c48fae102c8786b43fdb/error.py
My question is why obtained data not returned and I have only error?
The text was updated successfully, but these errors were encountered: