twint icon indicating copy to clipboard operation
twint copied to clipboard

Error when trying to run TWINT

Open Mobey-eth opened this issue 2 years ago • 1 comments

This line of code twint.run.Search(c) doesn't run, here's my Traceback


RuntimeError Traceback (most recent call last) in () 7 c.Translate = True 8 c.TranslateDest = "it" ----> 9 twint.run.Search(c)

3 frames /usr/lib/python3.7/asyncio/base_events.py in _check_runnung(self) 521 def _check_runnung(self): 522 if self.is_running(): --> 523 raise RuntimeError('This event loop is already running') 524 if events._get_running_loop() is not None: 525 raise RuntimeError(

RuntimeError: This event loop is already running

Environment Details

Running on Colab

Mobey-eth avatar May 20 '22 11:05 Mobey-eth

import nest_asyncio
nest_asyncio.apply()

Try this before twins.run.Search

This worked for me

abhalawat avatar May 22 '22 17:05 abhalawat