La demande d'écriture Python doit être STR non octets
datafile = open(localfile, "w", encoding="utf-8")
datafile.write(page.text)
datafile.close()
Disgusted Dugong
datafile = open(localfile, "w", encoding="utf-8")
datafile.write(page.text)
datafile.close()
datafile = open(localfile, "wb")
datafile.write(page.content)
datafile.close()