tweets = tweepy.Cursor(api.search, q=searchTerm).items(NoOfTerms)
tweets.to_csv("new.csv")
While running the code to write a csv file from the extracted tweets from twitter, i'm getting the error as,
AttributeError Traceback (most recent call last) in ----> 1 tweets.to_csv("new.csv")
AttributeError: 'ItemIterator' object has no attribute 'to_csv'
How could i solve this? Thanks