Get-Tweet-Replies-With-Python-Tweepy
Get-Tweet-Replies-With-Python-Tweepy copied to clipboard
Error while running the code
Unexpected Parameter : Timeout
UnicodeEncodeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_3368/4005694643.py in <module>
29 for tweet in replies:
30 row = {'user': tweet.user.screen_name, 'text': tweet.text.replace('\n', ' ')}
---> 31 csv_writer.writerow(row)
~\anaconda3\lib\csv.py in writerow(self, rowdict)
152
153 def writerow(self, rowdict):
--> 154 return self.writer.writerow(self._dict_to_list(rowdict))
155
156 def writerows(self, rowdicts):
~\anaconda3\lib\encodings\cp1252.py in encode(self, input, final)
17 class IncrementalEncoder(codecs.IncrementalEncoder):
18 def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
21 class IncrementalDecoder(codecs.IncrementalDecoder):
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f629' in position 50: character maps to <undefined>
Getting the same error as well - have you eventually figured it out?