I try to parse some href in a webpage using python. To do so, I use the following code which performs quite well, but the href returned does not deal with accents properly. I tried different methods but they don't work.
Here is my code :
links = browser.find_elements_by_xpath(path)
for link in links:
code = link.get_attribute("href")
print (code)
f.write(code + "\n")
For instance I've got this : "http//ww.blabla//Cl%C3%A9ment"
Instead of this : "http//ww.blabla//Clément"