Tags
python
Asked 3 years ago
11 Aug 2021
Views 479
Ariane

Ariane posted

Httpresponse to string python

Httpresponse to string python
Phpworker

Phpworker
answered Aug 17 '21 00:00

requests.models.Response.text give you text / String .


import requests
response=requeste.get("http://www.google.com")
print(response.text)



type(response.text)

it will return
<class 'str'>
Post Answer