Closed bravma closed 3 years ago
I'm able to retrieve the sound with the following code
from TikTokApi import TikTokApi
api = TikTokApi.get_instance(custom_verifyFp="verify_sdfdsfsdfsdfsdfdsf", use_test_endpoints=True)
print(api.by_sound('6885449331428558861'))
Maybe you're getting hit by a captcha that isn't formatted correctly? Maybe add print(res)
to line 822 of tiktok.py
Thanks for your reply and for your great work with the API! It seems like the mistake was on my side. TikTok simply couldn't find the provided Music ID (even though I just crawled it a few minutes ago... It's a bit annoying that the IDs somehow get changed...).
what was the id?
the
by_sound
method throws an errorKeyError: 'items'
Expected behavior
Should return a list of TikTok's containing this sound
Error Trace
Desktop