!pip install jovian --upgrade --quiet
import jovian
#Make directory name kaggle
! mkdir ~/.kaggle
#Copy the json kaggle to this directory
! cp kaggle.json ~/.kaggle/
#Allocate the required permission for this file.
! chmod 600 ~/.kaggle/kaggle.json
#Downloading competition dataset
! kaggle competitions download <name-of-competition>
#Downloading specific files
! kaggle competitions download google-smartphone-decimeter-challenge -f baseline_locations_train.csv
#Downloading dataset not part from any competition
! kaggle datasets download ozlerhakan/forest-fires-dataset-in-turkey
Downloading forest-fires-dataset-in-turkey.zip to /content
0% 0.00/1.25k [00:00<?, ?B/s]
100% 1.25k/1.25k [00:00<00:00, 1.16MB/s]
# Put on the same directory
from zipfile import ZipFile
# specifying the name of the zip file
file = "forest-fires-dataset-in-turkey.zip"
# open the zip file in read mode
with ZipFile(file, 'r') as zip:
# list all the contents of the zip file
zip.printdir()
# extract all files
print('extraction...')
zip.extractall()
print('Done!')
File Name Modified Size
fires.csv 2022-03-10 19:40:46 3706
extraction...
Done!
from zipfile import ZipFile
# specifying the name of the zip file
file = "forest-fires-dataset-in-turkey.zip"
# open the zip file in read mode
with ZipFile(file, 'r') as zip:
# extract all files to another directory
zip.extractall('G:\\')