avilash / TikTokAPI-Python

TikTok API Python Wrapper
http://avilashkumar.com/TikTokAPI-Python/
MIT License
443 stars 114 forks source link

This event loop is already running #18

Open AphroMad opened 3 years ago

AphroMad commented 3 years ago

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

elektra-ar commented 3 years ago

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.

42musaev commented 3 years ago

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

HerbeMalveillante commented 3 years ago

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