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.75k stars 2.72k forks source link

[QUESTION] No attribute "Resume" #611

Closed anakecil closed 4 years ago

anakecil commented 4 years ago

Hi,

I have installed twint with

pip3 install twint

that resulted in a successful installation:

Successfully installed twint-2.1.9

but when I tried to run the example with twint.py script in jupyter notebook:

import twint
c=twint.Config()
c.Search="Asean"
c.Limit=300
twint.run.Search(c)

I got the error:

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-12-f28f8e9aab1e> in <module>()
----> 1 twint.run.Search(c)

c:\users\fajar hadil\src\twint\twint\run.py in Search(config, callback)
    279     config.Profile = False
    280     config.Profile_full = False
--> 281     run(config, callback)
    282     if config.Pandas_au:
    283         storage.panda._autoget("tweet")

c:\users\fajar hadil\src\twint\twint\run.py in run(config, callback)
    200 def run(config, callback=None):
    201     logme.debug(__name__+':run')
--> 202     get_event_loop().run_until_complete(Twint(config).main(callback))
    203 
    204 def Favorites(config):

D:\Aplikasi\Anaconda3\lib\asyncio\base_events.py in run_until_complete(self, future)
    453         future.add_done_callback(_run_until_complete_cb)
    454         try:
--> 455             self.run_forever()
    456         except:
    457             if new_task and future.done() and not future.cancelled():

D:\Aplikasi\Anaconda3\lib\asyncio\base_events.py in run_forever(self)
    407         self._check_closed()
    408         if self.is_running():
--> 409             raise RuntimeError('This event loop is already running')
    410         if events._get_running_loop() is not None:
    411             raise RuntimeError(

RuntimeError: This event loop is already running
pielco11 commented 4 years ago

I don't think that the title is correct given the error you're having.

Also searching for previously posted issues about your error message is a good practice https://github.com/twintproject/twint/issues/393