This event loop is already running
Hey ! I have a problem that I don't really understand..
This is my code
from TikTokAPI.TikTokAPI import TikTokAPI
api = TikTokAPI()
test = api.getVideosByUserName("creatingwonders")
And this is the error I get but I just don't understand why .. RuntimeError: This event loop is already running
Thanks in advance
I get the same error. I'm wondering if it has to do with the version of urllib since I got a warning about that when installing the package.
Please tell me the solution to this error. It has to do with asynchronous code
I'm getting this error too ! I want to build a bot that links discord and tik tok, but entering my cookies info every time they expire is not an option for me. I don't even need to be logged on to do what I need to do with the api manually in the browser !
Some help would be welcome :)
edit : found a fix : https://medium.com/@vyshali.enukonda/how-to-get-around-runtimeerror-this-event-loop-is-already-running-3f26f67e762e