send = requests.get('url_to.zip')
with open("path_to.zip", "wb") as file:
file.write(send.content)
file_zip = zipfile.ZipFile("path_to.zip") # Тут ошибка "zipfile.BadZipFile: File is not a zip file"
file_zip.extractall("new_path", pwd="pass")
file_zip.close()