from google.colab import files
uploaded - files.upload()
for fn in uploaded.keys():
print('User uploaded file "(name)" with length (length) bytes'. format(
name=fn, length=len(uploaded(fn])))
# Then nove kaggle. json into the folder where the API expects to find it.
!mkdir -p ~/. kaggle/ && mv kaggle.json ~/.kaggle/ && chnod 600 ~/.kaggle/kaggle.json
!kaggle datasets download -d navoneel/brain-nei-images-for-brain-tumor-detection
The downloaded file is going to be in zip format do the extraction in python
from zipfile import ZipFile
file_name ="/content/brain-ard-images-for-brain-tumor-detection.zip"
with Zipfile(file_name,'r') as zip:
zip.extractall()
print ('Done")