You can find this out by a simple script as:
import requests, sys
url="https://www.google.com/"
res = requests.get(url)
x = res.content
typeX = type(x)
print(typeX)
print(sys.getsizeof(typeX)*len(x))
Here the type(response)
is bytes
and to get the size of object bytes
in bytes, we can we use the getsizeof
functionality from sys
module.
The above script will output the size of the response in bytes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…