python网页获取request报错Received response with content-encoding: gzip, but failed to decode it
requests.exceptions.ContentDecodingError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing: incorrect data check',))
解决办法:
requests.get(url=url, headers={'Accept-Encoding': ''})