Currently I'm trying my first steps in Python by trying to rebuild an Instgram bot.
Unfortunately, every time I run my program I get the error:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe4 in position 23: invalid continuation byte
The codeline from the error is:
like_button = lambda: driver.find_element_by_xpath('//span[@aria-label="Gefällt mir"]').click()
The error is caused by the German umlaut "ä" but I have to use it because it is the xpath from the like button.
I already googled and there was the solution to put # -- coding: utf-8 -- in the first line.
Unfortunately it did not help.
It would be great if you can give me some advice.
Antuan