Answers for "python write request must be str not bytes"

1

python write request must be str not bytes

datafile = open(localfile, "w", encoding="utf-8")
datafile.write(page.text)
datafile.close()
Posted by: Guest on May-23-2020
0

python write request must be str not bytes

datafile = open(localfile, "wb")
datafile.write(page.content)
datafile.close()
Posted by: Guest on May-23-2020

Code answers related to "python write request must be str not bytes"

Python Answers by Framework

Browse Popular Code Answers by Language