{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import gdown" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "url = \"https://drive.google.com/file/d/1CGXriP_nlctsaWVbz0W3mFdPK05lQmHK/view?usp=sharing\"" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "file_id = url.split(\"/\")[-2]" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Downloading...\n", "From (uriginal): https://drive.google.com/uc?export=download&id=1CGXriP_nlctsaWVbz0W3mFdPK05lQmHK\n", "From (redirected): https://drive.google.com/uc?export=download&id=1CGXriP_nlctsaWVbz0W3mFdPK05lQmHK&confirm=t&uuid=17666f87-2ddb-4a4f-a8fb-421ff82803bd\n", "To: /home/shrey/Desktop/Kidney-Disease-Classifcation/research/kidney-CT-scan.zip\n", "100%|██████████| 1.63G/1.63G [07:37<00:00, 3.56MB/s]\n" ] }, { "data": { "text/plain": [ "'kidney-CT-scan.zip'" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "prefix = \"https://drive.google.com/uc?export=download&id=\"\n", "gdown.download(prefix + file_id, \"kidney-CT-scan.zip\", quiet=False)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "env", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.6" } }, "nbformat": 4, "nbformat_minor": 2 }