| import requests | |
| ZENODO_URL = "https://zenodo.org/records/11206513/files/GMSC10.90AA.annotation.tsv.xz?download=1" | |
| OUTPUT_FILE = "GMSC10.90AA.annotation.tsv.xz" | |
| def download_file(): | |
| print("π Starting download from Zenodo...") | |
| with requests.get(ZENODO_URL, stream=True) as r: | |
| r.raise_for_status() | |
| with open(OUTPUT_FILE, "wb") as f: | |
| for chunk in r.iter_content(chunk_size=8192): | |
| if chunk: | |
| f.write(chunk) | |
| print("β Download finished:", OUTPUT_FILE) | |
| if __name__ == "__main__": | |
| download_file() | |