nicolomantini / LinkedIn-Easy-Apply-Bot

Automate the application process on LinkedIn
Apache License 2.0
765 stars 321 forks source link

Bot crashes for companies with accented characters in their names (apparently) #80

Closed rajatkhare619 closed 3 years ago

rajatkhare619 commented 3 years ago

Describe the bug Bot crashes for Companies with accented characters in their names (apparently)

Screenshots image https://www.linkedin.com/jobs/view/2555256306/

Error Statement

Traceback (most recent call last):
  File "C:\Users\(username)\IdeaProjects\LinkedIn-Easy-Apply-Bot\easyapplybot.py", line 450, in <module>
    bot.start_apply(positions, locations)
  File "C:\Users\(username)\IdeaProjects\LinkedIn-Easy-Apply-Bot\easyapplybot.py", line 133, in start_apply
    self.applications_loop(position, location)
  File "C:\Users\(username)\IdeaProjects\LinkedIn-Easy-Apply-Bot\easyapplybot.py", line 236, in applications_loop
    self.write_to_file(button, jobID, self.browser.title, result)
  File "C:\Users\(username)\IdeaProjects\LinkedIn-Easy-Apply-Bot\easyapplybot.py", line 275, in write_to_file
    writer.writerow(toWrite)
  File "C:\Users\(username)\.pyenv\pyenv-win\versions\3.9.5\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 58-59: character maps to <undefined>

Desktop (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Run easyapplybot.py
  2. Wait

Expected behavior The bot shouldn't crash and should keep applying.

github-actions[bot] commented 3 years ago

Stale issue message