down / app.py
ffbond's picture
Create app.py
e6cdc3a verified
Raw
History Blame Contribute Delete
575 Bytes
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()