lundi 13 février 2017

Httpresponse to string python

Vote count: 0

I am trying to display a webpage, but since it does not view the object as a string, it does not properly display newlines (it displays \n). How can I make a result a string properly as this does not seem to be working. Thanks!

result = urllib.request.urlopen(requesturl).read()
return str(result)

asked 33 secs ago

Let's block ads! (Why?)



Httpresponse to string python

Aucun commentaire:

Enregistrer un commentaire