{
  "id": 266546,
  "title": "Problem with downloading competition data via Kaggle API",
  "url": "/competitions/g2net-gravitational-wave-detection/discussion/266546",
  "author_name": "",
  "post_date": "2021-08-19T13:35:41.379346Z",
  "votes": null,
  "comment_count": 4,
  "views": 0,
  "content": "<p>When I use <code>kaggle competitions download -c g2net-gravitational-wave-detection</code> command, I'm getting separate npy files downloaded without any folder structure. Is where any way to download single zip file with all folder structure preserved?</p>",
  "messages": [
    {
      "id": "1481403",
      "postDate": "08/19/2021 13:35:41",
      "content": "<p>When I use <code>kaggle competitions download -c g2net-gravitational-wave-detection</code> command, I'm getting separate npy files downloaded without any folder structure. Is where any way to download single zip file with all folder structure preserved?</p>",
      "rawMarkdown": "When I use `kaggle competitions download -c g2net-gravitational-wave-detection` command, I'm getting separate npy files downloaded without any folder structure. Is where any way to download single zip file with all folder structure preserved?",
      "votes": null
    },
    {
      "id": "1481811",
      "postDate": "08/19/2021 17:19:17",
      "content": "<p>Maybe you are using older version of Kaggle API. Try upgrading it and downloading the data again.<br>\nUpgrade command: <br>\n<code>pip3 install --upgrade --force-reinstall --no-deps kaggle</code></p>",
      "rawMarkdown": "Maybe you are using older version of Kaggle API. Try upgrading it and downloading the data again.\nUpgrade command: \n`pip3 install --upgrade --force-reinstall --no-deps kaggle`",
      "votes": null
    },
    {
      "id": "1481915",
      "postDate": "08/19/2021 18:12:51",
      "content": "<p>I used the following Python code:</p>\n<pre><code>from kaggle.api.kaggle_api_extended import KaggleApi\n\napi = KaggleApi()\napi.authenticate()\napi.competition_download_files(\"g2net-gravitational-wave-detection\", \"/SOMEWHERE/g2net-gravitational-wave-detection\")\n</code></pre>\n<p>Please note that you should have <code>kaggle.json</code> with your creds in the working directory of the script.<br>\nOtherwise <code>api.authenticate()</code> will fail.</p>",
      "rawMarkdown": "I used the following Python code:\n\n```\nfrom kaggle.api.kaggle_api_extended import KaggleApi\n\napi = KaggleApi()\napi.authenticate()\napi.competition_download_files(\"g2net-gravitational-wave-detection\", \"/SOMEWHERE/g2net-gravitational-wave-detection\")\n```\n\nPlease note that you should have `kaggle.json` with your creds in the working directory of the script.\nOtherwise `api.authenticate()` will fail.",
      "votes": null
    },
    {
      "id": "1483593",
      "postDate": "08/20/2021 18:02:08",
      "content": "<p>you can use gcs path and gcsutil to copy file to google drive, assuming that you have enough storage space on gcloud.</p>",
      "rawMarkdown": "you can use gcs path and gcsutil to copy file to google drive, assuming that you have enough storage space on gcloud.",
      "votes": null
    },
    {
      "id": "1561178",
      "postDate": "10/27/2021 12:14:58",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "rawMarkdown": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1481811,
      "author_name": "atharvaingle",
      "author_url": "",
      "post_date": "08/19/2021 17:19:17",
      "content": "<p>Maybe you are using older version of Kaggle API. Try upgrading it and downloading the data again.<br>\nUpgrade command: <br>\n<code>pip3 install --upgrade --force-reinstall --no-deps kaggle</code></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1481915,
      "author_name": "rolandw0w",
      "author_url": "",
      "post_date": "08/19/2021 18:12:51",
      "content": "<p>I used the following Python code:</p>\n<pre><code>from kaggle.api.kaggle_api_extended import KaggleApi\n\napi = KaggleApi()\napi.authenticate()\napi.competition_download_files(\"g2net-gravitational-wave-detection\", \"/SOMEWHERE/g2net-gravitational-wave-detection\")\n</code></pre>\n<p>Please note that you should have <code>kaggle.json</code> with your creds in the working directory of the script.<br>\nOtherwise <code>api.authenticate()</code> will fail.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1483593,
      "author_name": "dragonzhang",
      "author_url": "",
      "post_date": "08/20/2021 18:02:08",
      "content": "<p>you can use gcs path and gcsutil to copy file to google drive, assuming that you have enough storage space on gcloud.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1561178,
      "author_name": "zerafachris",
      "author_url": "",
      "post_date": "10/27/2021 12:14:58",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1481403": "When I use `kaggle competitions download -c g2net-gravitational-wave-detection` command, I'm getting separate npy files downloaded without any folder structure. Is where any way to download single zip file with all folder structure preserved?",
    "1481811": "Maybe you are using older version of Kaggle API. Try upgrading it and downloading the data again.\nUpgrade command: \n`pip3 install --upgrade --force-reinstall --no-deps kaggle`",
    "1481915": "I used the following Python code:\n\n```\nfrom kaggle.api.kaggle_api_extended import KaggleApi\n\napi = KaggleApi()\napi.authenticate()\napi.competition_download_files(\"g2net-gravitational-wave-detection\", \"/SOMEWHERE/g2net-gravitational-wave-detection\")\n```\n\nPlease note that you should have `kaggle.json` with your creds in the working directory of the script.\nOtherwise `api.authenticate()` will fail.",
    "1483593": "you can use gcs path and gcsutil to copy file to google drive, assuming that you have enough storage space on gcloud.",
    "1561178": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris"
  },
  "source": "meta"
}