I am trying to get tiktoks by sound using api.by_sound() method, but keep getting TikTokApi.exceptions.EmptyResponseError: Empty response from Tiktok. I have been on-and-off able to do it in the past few days, but after scraping video metadata for about 300 sounds, it tends to get stuck and just return the error anyway.
I am using custom_verifyFp and use_test_endpoints=True.
In addition, I have used various VPNs, resolved captcha, deleted cookies, etc.
I have confirmed that the sound in question exists, and have tried many different sounds to confirm the issue persists.
Describe the bug
I am trying to get tiktoks by sound using api.by_sound() method, but keep getting TikTokApi.exceptions.EmptyResponseError: Empty response from Tiktok. I have been on-and-off able to do it in the past few days, but after scraping video metadata for about 300 sounds, it tends to get stuck and just return the error anyway.
I am using custom_verifyFp and use_test_endpoints=True. In addition, I have used various VPNs, resolved captcha, deleted cookies, etc. I have confirmed that the sound in question exists, and have tried many different sounds to confirm the issue persists.
The buggy code
Expected behavior
Returned JSON with tiktoks.
Error Trace (if any)
Put the error trace below if there's any error thrown.
Desktop (please complete the following information):
Additional context Scraping by hashtag is working just fine, indicating that I am not necessarily banned by Tiktok.