How to get kaggle competition data via command line on virtual machine?

Viewed 3741

I am looking for the easiest way to download the kaggle competition data (train and test) on the virtual machine using bash to be able to train it there without uploading it on git.

4 Answers

Fast-forward three years later and you can use Kaggle's API using the CLI, for example:

kaggle competitions download favorita-grocery-sales-forecasting

Install CurlWget chrome extension.

start downloading your kaggle data-set. CurlWget will give you full wget command. paste this command to terminal with sudo.

Job is done.

  1. Install cookies.txt extension on chrome and enable it.
  2. Login to kaggle
  3. Go to the challenge page that you want the data from
  4. Click on cookie.txt extension on top right and it download the current page's cookie. It will download the cookies in cookies.txt file
  5. Transfer the file to the remote service using scp or other methods
  6. Copy the data link shown on kaggle page (right click and copy link address)
  7. run wget -x --load-cookies cookies.txt <datalink>
Related