File size: 575 Bytes
e6cdc3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()