def METHOD_NAME(self, path, response):
    file_name = response.headers['Content-Disposition'].replace('filename=', '').replace('"', '')
    file_path = path / file_name
    file_path.parent.mkdir(exist_ok=True, parents=True)
    print('Writing {}'.format(file_path))
    with file_path.open('wb') as fp:
        fp.write(response.content)