url = (
    """https://commoncrawl.s3.amazonaws.com/crawl-data/CC-MAIN-2016-18/segments/1461860106452.21/warc/CC-MAIN-20160428161506-00006-ip-10-239-7-51.ec2.internal.warc.gz"""
    )
response = requests.get(url, params={'range': 'bytes=257173173-257248267'})
unknown_compressed_data = response.content
How to decode the gzip compressed data returned in a HTTP Response in python?