{
  "id": 473964,
  "title": "Want to download the competition data, but failed.",
  "url": "/competitions/hms-harmful-brain-activity-classification/discussion/473964",
  "author_name": "",
  "post_date": "2024-02-06T16:30:44.185791100Z",
  "votes": 3,
  "comment_count": 4,
  "views": 0,
  "content": "<p>I use <br>\n<code>export KAGGLE_USERNAME=</code><br>\n<code>export KAGGLE_KEY=</code></p>\n<p>and use <br>\n<code>kaggle competitions download -c 'HMS - Harmful Brain Activity Classification'</code><br>\nTerminal output is:<br>\n403 - Forbidden - Permission 'competitions.participate' was denied</p>\n<p>Which part I did wrong?</p>",
  "messages": [
    {
      "id": "2639015",
      "postDate": "02/06/2024 16:30:44",
      "content": "<p>I use <br>\n<code>export KAGGLE_USERNAME=</code><br>\n<code>export KAGGLE_KEY=</code></p>\n<p>and use <br>\n<code>kaggle competitions download -c 'HMS - Harmful Brain Activity Classification'</code><br>\nTerminal output is:<br>\n403 - Forbidden - Permission 'competitions.participate' was denied</p>\n<p>Which part I did wrong?</p>",
      "rawMarkdown": "I use \n`export KAGGLE_USERNAME=`\n`export KAGGLE_KEY=`\n\nand use \n`kaggle competitions download -c 'HMS - Harmful Brain Activity Classification'`\nTerminal output is:\n403 - Forbidden - Permission 'competitions.participate' was denied\n\nWhich part I did wrong?",
      "votes": null
    },
    {
      "id": "2639073",
      "postDate": "02/06/2024 16:58:40",
      "content": "<p>Have you clicked \"join competition\" first on Kaggle website? (This is needed before you can download data)</p>",
      "rawMarkdown": "Have you clicked \"join competition\" first on Kaggle website? (This is needed before you can download data)",
      "votes": null
    },
    {
      "id": "2640525",
      "postDate": "02/07/2024 01:09:47",
      "content": "<p>Thank you Chris!</p>\n<p>I have joined the competition. Just even run a random notebook to get a leaderboard ranking. But still cannot download the data. Shows \"403 - Forbidden - Permission 'competitions.participate' was denied\"</p>\n<p>I try other ways then..</p>\n<p>Thank you very much!</p>",
      "rawMarkdown": "Thank you Chris!\n\nI have joined the competition. Just even run a random notebook to get a leaderboard ranking. But still cannot download the data. Shows \"403 - Forbidden - Permission 'competitions.participate' was denied\"\n\nI try other ways then..\n\nThank you very much!",
      "votes": null
    },
    {
      "id": "2640836",
      "postDate": "02/07/2024 05:17:01",
      "content": "<p>An API key is required when downloading locally using the API.</p>\n<pre><code># API key can be downloaded  below\n「Settings(your page)」-&gt;「  Token」\n This allows you  DL kaggle.json.\n</code></pre>\n<p>I think you can call the API by deploying this kaggle.json locally.</p>\n<pre><code>\n!pip install -U kaggle\n\n\n! -p ~/.kaggle\n! kaggle.json ~/.kaggle/\n! 600 ~/.kaggle/kaggle.json\n\n\n!kaggle -h\n\n\n!kaggle competitions download -c hms-harmful-brain-activity-classification\n</code></pre>",
      "rawMarkdown": "An API key is required when downloading locally using the API.\n```\n# API key can be downloaded from below\n「Settings(your page)」->「Create New Token」\n This allows you to DL kaggle.json.\n```\n\nI think you can call the API by deploying this kaggle.json locally.\n```\n# Update kaggle lib\n!pip install -U kaggle\n\n# Deploying API keys\n!mkdir -p ~/.kaggle\n!cp kaggle.json ~/.kaggle/\n!chmod 600 ~/.kaggle/kaggle.json\n\n# Checking kaggle commands\n!kaggle -h\n\n# Dataset DL\n!kaggle competitions download -c hms-harmful-brain-activity-classification\n\n```",
      "votes": null
    },
    {
      "id": "2641800",
      "postDate": "02/07/2024 17:12:15",
      "content": "<p><a href=\"https://www.kaggle.com/tiangg\" target=\"_blank\">@tiangg</a> can you confirm if you're still blocked from downloading? If so, do you get the 403 error from just the API or from both the API and the data page download button?</p>",
      "rawMarkdown": "tiangg can you confirm if you're still blocked from downloading? If so, do you get the 403 error from just the API or from both the API and the data page download button?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2639073,
      "author_name": "cdeotte",
      "author_url": "",
      "post_date": "02/06/2024 16:58:40",
      "content": "<p>Have you clicked \"join competition\" first on Kaggle website? (This is needed before you can download data)</p>",
      "votes": null,
      "replies": [
        {
          "id": 2640525,
          "author_name": "tiangg",
          "author_url": "",
          "post_date": "02/07/2024 01:09:47",
          "content": "<p>Thank you Chris!</p>\n<p>I have joined the competition. Just even run a random notebook to get a leaderboard ranking. But still cannot download the data. Shows \"403 - Forbidden - Permission 'competitions.participate' was denied\"</p>\n<p>I try other ways then..</p>\n<p>Thank you very much!</p>",
          "votes": null,
          "replies": [
            {
              "id": 2641800,
              "author_name": "sohier",
              "author_url": "",
              "post_date": "02/07/2024 17:12:15",
              "content": "<p><a href=\"https://www.kaggle.com/tiangg\" target=\"_blank\">@tiangg</a> can you confirm if you're still blocked from downloading? If so, do you get the 403 error from just the API or from both the API and the data page download button?</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2640836,
      "author_name": "hideyukizushi",
      "author_url": "",
      "post_date": "02/07/2024 05:17:01",
      "content": "<p>An API key is required when downloading locally using the API.</p>\n<pre><code># API key can be downloaded  below\n「Settings(your page)」-&gt;「  Token」\n This allows you  DL kaggle.json.\n</code></pre>\n<p>I think you can call the API by deploying this kaggle.json locally.</p>\n<pre><code>\n!pip install -U kaggle\n\n\n! -p ~/.kaggle\n! kaggle.json ~/.kaggle/\n! 600 ~/.kaggle/kaggle.json\n\n\n!kaggle -h\n\n\n!kaggle competitions download -c hms-harmful-brain-activity-classification\n</code></pre>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2639015": "I use \n`export KAGGLE_USERNAME=`\n`export KAGGLE_KEY=`\n\nand use \n`kaggle competitions download -c 'HMS - Harmful Brain Activity Classification'`\nTerminal output is:\n403 - Forbidden - Permission 'competitions.participate' was denied\n\nWhich part I did wrong?",
    "2639073": "Have you clicked \"join competition\" first on Kaggle website? (This is needed before you can download data)",
    "2640525": "Thank you Chris!\n\nI have joined the competition. Just even run a random notebook to get a leaderboard ranking. But still cannot download the data. Shows \"403 - Forbidden - Permission 'competitions.participate' was denied\"\n\nI try other ways then..\n\nThank you very much!",
    "2640836": "An API key is required when downloading locally using the API.\n```\n# API key can be downloaded from below\n「Settings(your page)」->「Create New Token」\n This allows you to DL kaggle.json.\n```\n\nI think you can call the API by deploying this kaggle.json locally.\n```\n# Update kaggle lib\n!pip install -U kaggle\n\n# Deploying API keys\n!mkdir -p ~/.kaggle\n!cp kaggle.json ~/.kaggle/\n!chmod 600 ~/.kaggle/kaggle.json\n\n# Checking kaggle commands\n!kaggle -h\n\n# Dataset DL\n!kaggle competitions download -c hms-harmful-brain-activity-classification\n\n```",
    "2641800": "tiangg can you confirm if you're still blocked from downloading? If so, do you get the 403 error from just the API or from both the API and the data page download button?"
  },
  "source": "meta"
}