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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response