kaggle Verified current stable Not installed? Cloud Infrastructure

Kaggle / Download Competition Data

Download Competition Data

Utility for downloading datasets for Kaggle competitions.

$
Terminal
kaggle c download <competition_name>

When To Use

When preparing to analyze data from a specific competition, especially for modeling or analysis.

Pro Tip

Always check the competition rules for usages of datasets; some data might have restrictions.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
kaggle c download <competition_name>

Anatomy of Output

Understanding the result

Downloading titanic.zip from competition 'Titanic: Machine Learning from Disaster'... Download Status

Indicates which dataset is being downloaded.

File downloaded: titanic.zip | Size: 5.3MB | Time: 00:00:03 Download Details

Completed file download metrics.

Unzipping titanic.zip to current directory... Extraction Status

Shows the extraction of downloaded files to the current working directory.

Power User Variants

Optimized versions

kaggle competitions download -c titanic -f train.csv

Download only the training dataset specified in the competition.

kaggle competitions download -c titanic --unzip

Automatically unzip the downloaded competition files.

Troubleshooting

Common pitfalls

Error: Competition Not Found.

Solution: Check the spelling of the competition name against Kaggle to ensure it exists.

Error: Download rate limit exceeded.

Solution: Adhere to your allowed download quota on Kaggle per day.

Error: Network failure during download.

Solution: Retry the download after confirming internet stability.

Command Breakdown

What each part is doing

kaggle
Base Command
The executable that performs this operation. Here it runs Kaggle before the shell applies any redirect operators.
c
c|competitions
The value supplied for c|competitions.
<competition_name>
competition name
The value supplied for competition name.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.