Just take len() from the content of the answer:
>>> response = requests.get('https://github.com/') >>> len(response.content) 51671
If you want to keep streaming, for example, if the content is too large, you can iterate over pieces of data and summarize their sizes:
>>> with requests.get('https://github.com/', stream=True) as response: ... size = sum(len(chunk) for chunk in response.iter_content(8196)) >>> size 51671
source share