{
  "id": 56355,
  "title": "Small dash shell to download data set",
  "url": "/competitions/avito-demand-prediction/discussion/56355",
  "author_name": "",
  "post_date": "2018-05-09T00:21:05.904298300Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>For newcomers, seems that current Kaggle API doesn't allow multi-file downloanding (one or all only). Down load a whole data set will start with two largest test/train_jpg.zip that may risk broken in middle or take too long. This is a small script to get data. Comment (#) out the item you aldready got, or change the order as your wish. For newbies, pls save to .sh file and run by <code>dash filename.sh</code>\n<code>\nCOMPETITION=avito-demand-prediction <br>\nDATA=./  # current directory or change to your path <br>\nkaggle competitions download -c $COMPETITION -f periods_test.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f periods_train.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f test.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f test_active.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f periods_test.csv.zip -p $DATA\nkaggle competitions download -c $COMPETITION -f train.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_0.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_1.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_2.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_3.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_4.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f test_jpg.zip -p $DATA\n</code></p>",
  "messages": [
    {
      "id": "325841",
      "postDate": "05/09/2018 00:21:05",
      "content": "<p>For newcomers, seems that current Kaggle API doesn't allow multi-file downloanding (one or all only). Down load a whole data set will start with two largest test/train_jpg.zip that may risk broken in middle or take too long. This is a small script to get data. Comment (#) out the item you aldready got, or change the order as your wish. For newbies, pls save to .sh file and run by <code>dash filename.sh</code>\n<code>\nCOMPETITION=avito-demand-prediction <br>\nDATA=./  # current directory or change to your path <br>\nkaggle competitions download -c $COMPETITION -f periods_test.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f periods_train.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f test.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f test_active.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f periods_test.csv.zip -p $DATA\nkaggle competitions download -c $COMPETITION -f train.csv.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_0.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_1.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_2.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_3.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f train_jpg_4.zip -p $DATA <br>\nkaggle competitions download -c $COMPETITION -f test_jpg.zip -p $DATA\n</code></p>",
      "rawMarkdown": "For newcomers, seems that current Kaggle API doesn't allow multi-file downloanding (one or all only). Down load a whole data set will start with two largest test/train_jpg.zip that may risk broken in middle or take too long. This is a small script to get data. Comment (#) out the item you aldready got, or change the order as your wish. For newbies, pls save to .sh file and run by `dash filename.sh`\n```\nCOMPETITION=avito-demand-prediction  \nDATA=./  # current directory or change to your path  \nkaggle competitions download -c $COMPETITION -f periods_test.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f periods_train.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f test.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f test_active.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f periods_test.csv.zip -p $DATA\nkaggle competitions download -c $COMPETITION -f train.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_0.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_1.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_2.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_3.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_4.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f test_jpg.zip -p $DATA\n```",
      "votes": null
    },
    {
      "id": "326242",
      "postDate": "05/09/2018 13:27:45",
      "content": "<p>Great Work !!</p>",
      "rawMarkdown": "Great Work !!",
      "votes": null
    },
    {
      "id": "326522",
      "postDate": "05/09/2018 21:29:15",
      "content": "<p>Thanks Kiran. you may need to ask one line for train.csv.zip that I missed \n<code>kaggle competitions download -c $COMPETITION -f train.csv.zip -p $DATA</code></p>",
      "rawMarkdown": "Thanks Kiran. you may need to ask one line for train.csv.zip that I missed \n`kaggle competitions download -c $COMPETITION -f train.csv.zip -p $DATA`",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 326242,
      "author_name": "kiranai",
      "author_url": "",
      "post_date": "05/09/2018 13:27:45",
      "content": "<p>Great Work !!</p>",
      "votes": null,
      "replies": [
        {
          "id": 326522,
          "author_name": "antruong",
          "author_url": "",
          "post_date": "05/09/2018 21:29:15",
          "content": "<p>Thanks Kiran. you may need to ask one line for train.csv.zip that I missed \n<code>kaggle competitions download -c $COMPETITION -f train.csv.zip -p $DATA</code></p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "325841": "For newcomers, seems that current Kaggle API doesn't allow multi-file downloanding (one or all only). Down load a whole data set will start with two largest test/train_jpg.zip that may risk broken in middle or take too long. This is a small script to get data. Comment (#) out the item you aldready got, or change the order as your wish. For newbies, pls save to .sh file and run by `dash filename.sh`\n```\nCOMPETITION=avito-demand-prediction  \nDATA=./  # current directory or change to your path  \nkaggle competitions download -c $COMPETITION -f periods_test.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f periods_train.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f test.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f test_active.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f periods_test.csv.zip -p $DATA\nkaggle competitions download -c $COMPETITION -f train.csv.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_0.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_1.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_2.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_3.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f train_jpg_4.zip -p $DATA  \nkaggle competitions download -c $COMPETITION -f test_jpg.zip -p $DATA\n```",
    "326242": "Great Work !!",
    "326522": "Thanks Kiran. you may need to ask one line for train.csv.zip that I missed \n`kaggle competitions download -c $COMPETITION -f train.csv.zip -p $DATA`"
  },
  "source": "meta"
}