![Forrest logo](/images/logo.png)
kaggle:tldr:a6817
kaggle: Download a specific file from a competition dataset.
$ kaggle competitions download ${competition} -f ${filename}
try on your machine
This command is used to download a specific file from a Kaggle competition.
kaggle competitions download
: This is the command that tells the Kaggle API to download a competition-related file.${competition}
: This is a placeholder for the competition name. You need to replace it with the actual name of the competition you want to download the file from. For example, if the competition you want to download a file from is called "titanic", you would replace${competition}
withtitanic
.-f ${filename}
: This is another placeholder for the filename. You need to replace${filename}
with the actual name of the file you want to download. For example, if the file you want to download is called "train.csv", you would replace${filename}
withtrain.csv
.
So, when you run this command with the appropriate values for ${competition}
and ${filename}
, the Kaggle API will download the specified file from the specified competition to your current working directory.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.