Can somebody help me? I have an error code while crawling twitter data with Tweepy. Here the codes:
for tweet in tweepy.Cursor(api.search,q="#natuna",count=10, lang="id", since="2020-01-10").items():
print (tweet.created_at, tweet.text)
Error:
Traceback (most recent call last) Input In [4], in <cell line: 1>() -> 1 for tweet in tweepy.Cursor(api.search,q="#natuna",count=10, 2 lang="id", 3 since="2020-01-10").items(): 4 print (tweet.created_at, tweet.text)
AttributeError: 'API' object has no attribute 'search'