Open benjaminu opened 2 years ago
I cloned the repo and tracked the issue to here.
def fetch_auth_params(self, url, language='en'):
return asyncio.get_event_loop().run_until_complete(self.async_fetch_auth_params(url, language))
It fails on get_event_loop()
. Challenge is I do not know how to use the asyncio, so not sure how to debug further.
Did you try nest_asyncio.apply()
before creating TikTokAPI
? from nest_asyncio
package?
use this return asyncio.new_event_loop().run_until_complete(self.async_fetch_auth_params(url, language))
I keep getting this issue, can you help please?
There is no current event loop in thread 'main_task'.
It appears to fail here
print(tiktok.getTrending(5))