AttributeError Traceback (most recent call last)
<ipython-input-9-4152b890358f> in <module>
20 t = []
21
---> 22 for tweet in tweepy.Cursor(api.search,q=search_key,count=1000,lang="id",since="2022-11-10",until="2022-11-20").items():
23 print(tweet.created_at,tweet.id,tweet.user.name,tweet.text)
24 c.append(tweet.created_at)
module ‘csv’ has no attribute ‘Writer’
AttributeError Traceback (most recent call last)
<ipython-input-1-2b6855960796> in <module>
15 csvFile = open(search_key+".csv","a+",newline="",encoding="utf-8")
---> 16 csvWriter = csv.Writer(csvFile)
17 c = []
18 i = []
AttributeError: module 'csv' has no attribute 'Writer'
Help