TikTokAPI-Python icon indicating copy to clipboard operation
TikTokAPI-Python copied to clipboard

This event loop is already running

Open AphroMad opened this issue 5 years ago • 3 comments

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

AphroMad avatar Dec 02 '20 13:12 AphroMad

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.

elektra-ar avatar Jan 14 '21 20:01 elektra-ar

Please tell me the solution to this error. It has to do with asynchronous code

42musaev avatar Jan 14 '21 20:01 42musaev

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

HerbeMalveillante avatar Feb 23 '21 10:02 HerbeMalveillante