How to Download Dataset from Kaggle?

Yanwei Liu
Oct 28, 2020

In this article, I will show you the way to download datasets from Kaggle with kaggle API.

# install kaggle api to fetch dataset
pip install kaggle --upgrade
# move your API token to ~/.kaggle/kaggle.json
# you can check the following link to set up your kaggle api token

# https://github.com/Kaggle/kaggle-api
# Download the dataset and use unzip command according to your folder structure
kaggle datasets download userName/datasetName
Example: kaggle datasets download kneroma/tacotrashdataset

--

--