This is an ipython extension that allows you to search and download datasets from Kaggle.
To install the extension, run:
pip install
You must authenticate using Kaggle’s public API. To obtain your Kaggle configuration file, visit Kaggle and select the “Create New API Token” option to download the file.
Next, create a directory in your root folder called .kaggle
.
mkdir ~/.kaggle
Move the downloaded configuration file to the new directory, and change the permission using the command below.
mv kaggle.json ~/.kaggle
chmod 600 ~/.kaggle/kaggle.json
To use the extension, simply import it in your notebook:
%load_ext magic
You can then use the %search
command to search for datasets:
%search <query>
And the %download
command to download and extract datasets:
%download <dataset>
Here's an example of how to use the extension:
%load_ext magic
%search "fifa"
# [
# abecklas/fifa-world-cup,
# ...
# ...
# ]
%download "abecklas/fifa-world-cup"
# The dataset abecklas/fifa-world-cup has been downloaded and extracted to /content/fifa-world-cup.
This will search for all datasets related to Titanic and download the Titanic dataset.
This project is licensed under the MIT License - see the LICENSE file for details.