Download Kaggle Dataset directly in Google Colab
In this medium article we will take a look at how to import a kaggle dataset directly in Google Colab in such a way that all it takes is running one cell to set up the dataset
Step 1: Login to your Kaggle Account and head to “My Account” at the top right corner.
Step 2: Click “Create New API Token” to download the API token.
Step 3: This is what your API token json file looks like. Keep it handy.
Step 4: Go to the kaggle web page of the dataset that you want to download and click “Copy API Command”
Step 5: Open your Google Colab Notebook and paste the following code in a cell and run it.
Needless to say, replace the API token and the API command with your own and you are ready to go! Make sure to include a command to unzip the dataset downloaded as well.