!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
# 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!')
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:\\')