Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running the code #4

Open
abdurrehmanRasheed12 opened this issue May 1, 2022 · 1 comment
Open

Error while running the code #4

abdurrehmanRasheed12 opened this issue May 1, 2022 · 1 comment

Comments

@abdurrehmanRasheed12
Copy link

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>
@JenelleMorgan42
Copy link

Getting the same error as well - have you eventually figured it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants