twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.85k stars 2.73k forks source link

Error when trying to run TWINT #1424

Open Mobey-eth opened 2 years ago

Mobey-eth commented 2 years ago

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

abhalawat commented 2 years ago
import nest_asyncio
nest_asyncio.apply()

Try this before twins.run.Search

This worked for me