{
  "id": 228270,
  "title": "The data I downloaded using API is missing",
  "url": "/competitions/hubmap-kidney-segmentation/discussion/228270",
  "author_name": "",
  "post_date": "2021-03-24T02:27:50.481551600Z",
  "votes": 2,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hello Kaggler, I use the API corresponding to the data provided by Kaggle to download, in google colab. After downloading, I found that I only had 13 tiff.zip files . Did I do something wrong?<br>\n<a href=\"https://www.kaggle.com/addisonhoward\" target=\"_blank\">@addisonhoward</a> </p>\n<p>The code I used is as follows</p>\n<p>`<br>\n!pip&nbsp;install&nbsp;kaggle<br>\nimport&nbsp;json<br>\ntoken&nbsp;=&nbsp;{\"username\":\"xxx\",\"key\":\"xxxx\"}<br>\nwith&nbsp;open('/content/kaggle.json',&nbsp;'w')&nbsp;as&nbsp;file:<br>\n&nbsp;&nbsp;json.dump(token,&nbsp;file)<br>\n!mkdir&nbsp;-p&nbsp;~/.kaggle<br>\n!cp&nbsp;/content/kaggle.json&nbsp;~/.kaggle/<br>\n!chmod&nbsp;600&nbsp;~/.kaggle/kaggle.json<br>\n!kaggle&nbsp;config&nbsp;set&nbsp;-n&nbsp;path&nbsp;-v&nbsp;/content/drive/MyDrive/HuBMAP/</p>\n<h4>&nbsp;get&nbsp;data&nbsp;with&nbsp;API</h4>\n<p>!kaggle&nbsp;competitions&nbsp;download&nbsp;-c&nbsp;hubmap-kidney-segmentation`</p>\n<pre><code>Then I got:\n0486052bb-anatomical-structure.json \n3589adb90-anatomical-structure.json \n0486052bb.json \n3589adb90.tiff.zip \n0486052bb.tiff.zip \n4ef6695ce-anatomical-structure.json \n095bf7a1f-anatomical-structure.json \n4ef6695ce.json.zip \n095bf7a1f.json.zip \n4ef6695ce.tiff.zip \n095bf7a1f.tiff.zip \n54f2eec69-anatomical-structure.json \n1e2425f28-anatomical-structure.json \n54f2eec69.json \n1e2425f28.json \n57512b7f1-anatomical-structure.json \n1e2425f28.tiff.zip \n57512b7f1.tiff.zip \n26dc41664-anatomical-structure.json \naa05346ff-anatomical-structure.json \n26dc41664.json \naa05346ff.tiff.zip \n26dc41664.tiff.zip \nd488c759a-anatomical-structure.json \n2ec3f1bb9-anatomical-structure.json \nd488c759a.tiff.zip \n2ec3f1bb9.tiff.zip \nHuBMAP-20-dataset_information.csv \n2f6ecfcdf-anatomical-structure.json \nsample_submission.csv \n2f6ecfcdf.json train.csv.zip \n2f6ecfcdf.tiff.zip\n</code></pre>\n<p>~~~<br>\nSorry I'm a beginner, thank you for your answers.</p>",
  "messages": [
    {
      "id": "1250402",
      "postDate": "03/24/2021 02:27:50",
      "content": "<p>Hello Kaggler, I use the API corresponding to the data provided by Kaggle to download, in google colab. After downloading, I found that I only had 13 tiff.zip files . Did I do something wrong?<br>\n<a href=\"https://www.kaggle.com/addisonhoward\" target=\"_blank\">@addisonhoward</a> </p>\n<p>The code I used is as follows</p>\n<p>`<br>\n!pip&nbsp;install&nbsp;kaggle<br>\nimport&nbsp;json<br>\ntoken&nbsp;=&nbsp;{\"username\":\"xxx\",\"key\":\"xxxx\"}<br>\nwith&nbsp;open('/content/kaggle.json',&nbsp;'w')&nbsp;as&nbsp;file:<br>\n&nbsp;&nbsp;json.dump(token,&nbsp;file)<br>\n!mkdir&nbsp;-p&nbsp;~/.kaggle<br>\n!cp&nbsp;/content/kaggle.json&nbsp;~/.kaggle/<br>\n!chmod&nbsp;600&nbsp;~/.kaggle/kaggle.json<br>\n!kaggle&nbsp;config&nbsp;set&nbsp;-n&nbsp;path&nbsp;-v&nbsp;/content/drive/MyDrive/HuBMAP/</p>\n<h4>&nbsp;get&nbsp;data&nbsp;with&nbsp;API</h4>\n<p>!kaggle&nbsp;competitions&nbsp;download&nbsp;-c&nbsp;hubmap-kidney-segmentation`</p>\n<pre><code>Then I got:\n0486052bb-anatomical-structure.json \n3589adb90-anatomical-structure.json \n0486052bb.json \n3589adb90.tiff.zip \n0486052bb.tiff.zip \n4ef6695ce-anatomical-structure.json \n095bf7a1f-anatomical-structure.json \n4ef6695ce.json.zip \n095bf7a1f.json.zip \n4ef6695ce.tiff.zip \n095bf7a1f.tiff.zip \n54f2eec69-anatomical-structure.json \n1e2425f28-anatomical-structure.json \n54f2eec69.json \n1e2425f28.json \n57512b7f1-anatomical-structure.json \n1e2425f28.tiff.zip \n57512b7f1.tiff.zip \n26dc41664-anatomical-structure.json \naa05346ff-anatomical-structure.json \n26dc41664.json \naa05346ff.tiff.zip \n26dc41664.tiff.zip \nd488c759a-anatomical-structure.json \n2ec3f1bb9-anatomical-structure.json \nd488c759a.tiff.zip \n2ec3f1bb9.tiff.zip \nHuBMAP-20-dataset_information.csv \n2f6ecfcdf-anatomical-structure.json \nsample_submission.csv \n2f6ecfcdf.json train.csv.zip \n2f6ecfcdf.tiff.zip\n</code></pre>\n<p>~~~<br>\nSorry I'm a beginner, thank you for your answers.</p>",
      "rawMarkdown": "Hello Kaggler, I use the API corresponding to the data provided by Kaggle to download, in google colab. After downloading, I found that I only had 13 tiff.zip files . Did I do something wrong?\n@addisonhoward \n\n\nThe code I used is as follows\n\n`\n!pip install kaggle\nimport json\ntoken = {\"username\":\"xxx\",\"key\":\"xxxx\"}\nwith open('/content/kaggle.json', 'w') as file:\n  json.dump(token, file)\n!mkdir -p ~/.kaggle\n!cp /content/kaggle.json ~/.kaggle/\n!chmod 600 ~/.kaggle/kaggle.json\n!kaggle config set -n path -v /content/drive/MyDrive/HuBMAP/\n#### get data with API\n!kaggle competitions download -c hubmap-kidney-segmentation`\n\n\n\n~~~~~~~~~~~\nThen I got:\n0486052bb-anatomical-structure.json \n3589adb90-anatomical-structure.json \n0486052bb.json \n3589adb90.tiff.zip \n0486052bb.tiff.zip \n4ef6695ce-anatomical-structure.json \n095bf7a1f-anatomical-structure.json \n4ef6695ce.json.zip \n095bf7a1f.json.zip \n4ef6695ce.tiff.zip \n095bf7a1f.tiff.zip \n54f2eec69-anatomical-structure.json \n1e2425f28-anatomical-structure.json \n54f2eec69.json \n1e2425f28.json \n57512b7f1-anatomical-structure.json \n1e2425f28.tiff.zip \n57512b7f1.tiff.zip \n26dc41664-anatomical-structure.json \naa05346ff-anatomical-structure.json \n26dc41664.json \naa05346ff.tiff.zip \n26dc41664.tiff.zip \nd488c759a-anatomical-structure.json \n2ec3f1bb9-anatomical-structure.json \nd488c759a.tiff.zip \n2ec3f1bb9.tiff.zip \nHuBMAP-20-dataset_information.csv \n2f6ecfcdf-anatomical-structure.json \nsample_submission.csv \n2f6ecfcdf.json train.csv.zip \n2f6ecfcdf.tiff.zip\n\n~~~~~~~~~~~~~~\nSorry I'm a beginner, thank you for your answers.",
      "votes": null
    },
    {
      "id": "1250410",
      "postDate": "03/24/2021 02:39:24",
      "content": "<p>Sorry I'm a beginner, thank you for your answers</p>",
      "rawMarkdown": "Sorry I'm a beginner, thank you for your answers",
      "votes": null
    },
    {
      "id": "1250786",
      "postDate": "03/24/2021 09:19:53",
      "content": "<p>It may come from your Python's kaggle version:<br>\nUse :<br>\n!pip install <strong>--upgrade</strong> kaggle</p>",
      "rawMarkdown": "It may come from your Python's kaggle version:\nUse :\n!pip install **--upgrade** kaggle",
      "votes": null
    },
    {
      "id": "1250954",
      "postDate": "03/24/2021 11:41:51",
      "content": "<p>Thanks for your reply</p>",
      "rawMarkdown": "Thanks for your reply",
      "votes": null
    },
    {
      "id": "1260969",
      "postDate": "04/02/2021 15:05:43",
      "content": "<p>Did you solve the problem? I got the same situation where the Kaggle API didn't download all files</p>",
      "rawMarkdown": "Did you solve the problem? I got the same situation where the Kaggle API didn't download all files",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1250410,
      "author_name": "pppass",
      "author_url": "",
      "post_date": "03/24/2021 02:39:24",
      "content": "<p>Sorry I'm a beginner, thank you for your answers</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1250786,
      "author_name": "siltoon",
      "author_url": "",
      "post_date": "03/24/2021 09:19:53",
      "content": "<p>It may come from your Python's kaggle version:<br>\nUse :<br>\n!pip install <strong>--upgrade</strong> kaggle</p>",
      "votes": null,
      "replies": [
        {
          "id": 1250954,
          "author_name": "pppass",
          "author_url": "",
          "post_date": "03/24/2021 11:41:51",
          "content": "<p>Thanks for your reply</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1260969,
      "author_name": "lililycai",
      "author_url": "",
      "post_date": "04/02/2021 15:05:43",
      "content": "<p>Did you solve the problem? I got the same situation where the Kaggle API didn't download all files</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1250402": "Hello Kaggler, I use the API corresponding to the data provided by Kaggle to download, in google colab. After downloading, I found that I only had 13 tiff.zip files . Did I do something wrong?\n@addisonhoward \n\n\nThe code I used is as follows\n\n`\n!pip install kaggle\nimport json\ntoken = {\"username\":\"xxx\",\"key\":\"xxxx\"}\nwith open('/content/kaggle.json', 'w') as file:\n  json.dump(token, file)\n!mkdir -p ~/.kaggle\n!cp /content/kaggle.json ~/.kaggle/\n!chmod 600 ~/.kaggle/kaggle.json\n!kaggle config set -n path -v /content/drive/MyDrive/HuBMAP/\n#### get data with API\n!kaggle competitions download -c hubmap-kidney-segmentation`\n\n\n\n~~~~~~~~~~~\nThen I got:\n0486052bb-anatomical-structure.json \n3589adb90-anatomical-structure.json \n0486052bb.json \n3589adb90.tiff.zip \n0486052bb.tiff.zip \n4ef6695ce-anatomical-structure.json \n095bf7a1f-anatomical-structure.json \n4ef6695ce.json.zip \n095bf7a1f.json.zip \n4ef6695ce.tiff.zip \n095bf7a1f.tiff.zip \n54f2eec69-anatomical-structure.json \n1e2425f28-anatomical-structure.json \n54f2eec69.json \n1e2425f28.json \n57512b7f1-anatomical-structure.json \n1e2425f28.tiff.zip \n57512b7f1.tiff.zip \n26dc41664-anatomical-structure.json \naa05346ff-anatomical-structure.json \n26dc41664.json \naa05346ff.tiff.zip \n26dc41664.tiff.zip \nd488c759a-anatomical-structure.json \n2ec3f1bb9-anatomical-structure.json \nd488c759a.tiff.zip \n2ec3f1bb9.tiff.zip \nHuBMAP-20-dataset_information.csv \n2f6ecfcdf-anatomical-structure.json \nsample_submission.csv \n2f6ecfcdf.json train.csv.zip \n2f6ecfcdf.tiff.zip\n\n~~~~~~~~~~~~~~\nSorry I'm a beginner, thank you for your answers.",
    "1250410": "Sorry I'm a beginner, thank you for your answers",
    "1250786": "It may come from your Python's kaggle version:\nUse :\n!pip install **--upgrade** kaggle",
    "1250954": "Thanks for your reply",
    "1260969": "Did you solve the problem? I got the same situation where the Kaggle API didn't download all files"
  },
  "source": "meta"
}