Such an error occurred: in the code, you need to load the get data with a method and parse the response (the data comes in the form of xml), which I actually did. 
And everything went smoothly - it turned out a valid ElementTree object. 
But one has only to call the text property from the request - everything is immediately frayed and the infa cannot be parsed. 
code :
import requests as re import xml.etree.ElementTree as ET USER = "XXX" PASSWD = "XXX" BASE_COPERNICUS_URL = "https://scihub.copernicus.eu/s3/odata/v1/" try: http_resp = re.get(metadata_url, auth=(self.USER, self.PASSWD), stream=True) print(http_resp.text) http_resp.raw.decode_content = True xml_tree = ET.parse(http_resp.raw) except Exception as error: print("SMTH goes bad") print(error.__str__()) 
metadata_urlvariable? - MaxUraw? Do you want to disassemble gzip-content content, transfer chunks? - Alex Yu