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

invalid syntax / async def Feed(self) #616

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi,

Hope you are doing all well !

I have the following error while executing a script:

import twint

tweets = []

c = twint.Config()

c.Username = 'noneprivacy'
c.Limit = 20
c.Store_object = True
c.Store_object_tweets_list = tweets

twint.run.Search(c)
Traceback (most recent call last):
  File "simple.py", line 1, in <module>
    import twint
  File "/Users/xxxxxxxx/src/go/src/github.com/x0rzkov/twint/twint/__init__.py", line 14, in <module>
    from . import run
  File "/Users/xxxxxxxx/src/go/src/github.com/x0rzkov/twint/twint/run.py", line 45
    async def Feed(self):
            ^
SyntaxError: invalid syntax

Any idea what it could be ?

Cheers, X

pielco11 commented 4 years ago

Python version?

ghost commented 4 years ago

my bad, I use python2 :-(