{
  "id": 145995,
  "title": "Faster downloading of data using aria2",
  "url": "/competitions/prostate-cancer-grade-assessment/discussion/145995",
  "author_name": "Rafi Hai",
  "post_date": "2020-04-25T12:33:10.675000",
  "votes": 8,
  "comment_count": 6,
  "views": 0,
  "content": "<p>After taking part in the DFDC competition, I got used to working with larger data sizes 😄 \nI learned much from this post of DFDC: <a href=\"https://www.kaggle.com/c/deepfake-detection-challenge/discussion/121194\">https://www.kaggle.com/c/deepfake-detection-challenge/discussion/121194</a></p>\n\n<p>These are the steps that I take to download the files faster using aria2, thanks to @abhishek \n1.  You download cookies when you are logged in on the Kaggle website. You can use a web extension for this. For example on Chrome I have an extension called <a href=\"https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=nl\">cookies.txt</a>. \nThe cookies can then be exported by the extension and saved as a text file <em>cookies.txt</em>:\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F474194%2F58ccf1040fd52f03c4c85b346f2015b7%2Fexport_cookies.png?generation=1587732481592548&amp;alt=media\" alt=\"\"></p>\n\n<ol>\n<li><p>On your machine you install aria2:\n<code>sudo apt-get install aria2</code></p></li>\n<li><p>Put the cookies.txt in the directory you want your data to be installed and then use following command to download the data:\n<code>aria2c -c -x 16 -s 16 --load-cookies cookies.txt -p https://www.kaggle.com/c/18647/download-all</code></p></li>\n</ol>\n\n<p>Took me less than 20 minutes on a cloud instance</p>",
  "messages": [
    {
      "id": 820420,
      "postDate": "2020-04-25T12:33:10.677Z",
      "content": "<p>After taking part in the DFDC competition, I got used to working with larger data sizes 😄 \nI learned much from this post of DFDC: <a href=\"https://www.kaggle.com/c/deepfake-detection-challenge/discussion/121194\">https://www.kaggle.com/c/deepfake-detection-challenge/discussion/121194</a></p>\n\n<p>These are the steps that I take to download the files faster using aria2, thanks to @abhishek \n1.  You download cookies when you are logged in on the Kaggle website. You can use a web extension for this. For example on Chrome I have an extension called <a href=\"https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=nl\">cookies.txt</a>. \nThe cookies can then be exported by the extension and saved as a text file <em>cookies.txt</em>:\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F474194%2F58ccf1040fd52f03c4c85b346f2015b7%2Fexport_cookies.png?generation=1587732481592548&amp;alt=media\" alt=\"\"></p>\n\n<ol>\n<li><p>On your machine you install aria2:\n<code>sudo apt-get install aria2</code></p></li>\n<li><p>Put the cookies.txt in the directory you want your data to be installed and then use following command to download the data:\n<code>aria2c -c -x 16 -s 16 --load-cookies cookies.txt -p https://www.kaggle.com/c/18647/download-all</code></p></li>\n</ol>\n\n<p>Took me less than 20 minutes on a cloud instance</p>",
      "rawMarkdown": "After taking part in the DFDC competition, I got used to working with larger data sizes 😄 \nI learned much from this post of DFDC: https://www.kaggle.com/c/deepfake-detection-challenge/discussion/121194\n\nThese are the steps that I take to download the files faster using aria2, thanks to @abhishek \n1.  You download cookies when you are logged in on the Kaggle website. You can use a web extension for this. For example on Chrome I have an extension called [cookies.txt](https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=nl). \nThe cookies can then be exported by the extension and saved as a text file *cookies.txt*:\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F474194%2F58ccf1040fd52f03c4c85b346f2015b7%2Fexport_cookies.png?generation=1587732481592548&amp;alt=media)\n\n2. On your machine you install aria2:\n`sudo apt-get install aria2`\n  \n3. Put the cookies.txt in the directory you want your data to be installed and then use following command to download the data:\n`aria2c -c -x 16 -s 16 --load-cookies cookies.txt -p https://www.kaggle.com/c/18647/download-all`\n\nTook me less than 20 minutes on a cloud instance",
      "votes": 8
    },
    {
      "id": 903969,
      "postDate": "2020-06-27T08:52:41.557Z",
      "content": "<p>Thanks a lot for your advice, my problem has been solved by using aria2.  Thank you again.</p>",
      "rawMarkdown": "Thanks a lot for your advice, my problem has been solved by using aria2.  Thank you again.",
      "votes": 1,
      "replies": [
        {
          "id": 904110,
          "postDate": "2020-06-27T11:21:37.660Z",
          "content": "<p>With pleasure :)</p>",
          "rawMarkdown": "With pleasure :)"
        }
      ]
    },
    {
      "id": 826247,
      "postDate": "2020-04-29T14:30:00.877Z",
      "content": "<p>Thanks <a href=\"/rafiko1\">@rafiko1</a> for sharing this.\nEarlier I was not aware of this before.</p>",
      "rawMarkdown": "Thanks @rafiko1 for sharing this.\nEarlier I was not aware of this before.",
      "votes": 1
    },
    {
      "id": 821435,
      "postDate": "2020-04-26T07:09:17.257Z",
      "content": "<p>First, Congratulations on deep fake challenges. And thanks for this idea to download large data set efficiently. However, have you tried to download via colab? I was hoping to get all files in a single zip file. But it downloads all files separately. </p>",
      "rawMarkdown": "First, Congratulations on deep fake challenges. And thanks for this idea to download large data set efficiently. However, have you tried to download via colab? I was hoping to get all files in a single zip file. But it downloads all files separately. ",
      "votes": 1,
      "replies": [
        {
          "id": 821547,
          "postDate": "2020-04-26T08:44:07.920Z",
          "content": "<p>Thank you! No, I didn't try to download it on colab. Have you tried aria2 there? For me it downloads only a single zip file.</p>",
          "rawMarkdown": "Thank you! No, I didn't try to download it on colab. Have you tried aria2 there? For me it downloads only a single zip file.",
          "votes": 1
        },
        {
          "id": 821553,
          "postDate": "2020-04-26T08:46:58.097Z",
          "content": "<p>Not yet. But I will. I will report you if I face any problem with <code>aria2</code> there. :)</p>",
          "rawMarkdown": "Not yet. But I will. I will report you if I face any problem with `aria2` there. :)",
          "votes": 1
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 903969,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-06-27T08:52:41.557000",
      "content": "<p>Thanks a lot for your advice, my problem has been solved by using aria2.  Thank you again.</p>",
      "votes": 1,
      "replies": [
        {
          "id": 904110,
          "author_name": "Rafi Hai",
          "author_url": "",
          "post_date": "2020-06-27T11:21:37.660000",
          "content": "<p>With pleasure :)</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 826247,
      "author_name": "Sanket Parate",
      "author_url": "",
      "post_date": "2020-04-29T14:30:00.877000",
      "content": "<p>Thanks <a href=\"/rafiko1\">@rafiko1</a> for sharing this.\nEarlier I was not aware of this before.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 821435,
      "author_name": "Innat",
      "author_url": "",
      "post_date": "2020-04-26T07:09:17.257000",
      "content": "<p>First, Congratulations on deep fake challenges. And thanks for this idea to download large data set efficiently. However, have you tried to download via colab? I was hoping to get all files in a single zip file. But it downloads all files separately. </p>",
      "votes": 1,
      "replies": [
        {
          "id": 821547,
          "author_name": "Rafi Hai",
          "author_url": "",
          "post_date": "2020-04-26T08:44:07.920000",
          "content": "<p>Thank you! No, I didn't try to download it on colab. Have you tried aria2 there? For me it downloads only a single zip file.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 821553,
          "author_name": "Innat",
          "author_url": "",
          "post_date": "2020-04-26T08:46:58.097000",
          "content": "<p>Not yet. But I will. I will report you if I face any problem with <code>aria2</code> there. :)</p>",
          "votes": 1,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "820420": "After taking part in the DFDC competition, I got used to working with larger data sizes 😄 \nI learned much from this post of DFDC: https://www.kaggle.com/c/deepfake-detection-challenge/discussion/121194\n\nThese are the steps that I take to download the files faster using aria2, thanks to @abhishek \n1.  You download cookies when you are logged in on the Kaggle website. You can use a web extension for this. For example on Chrome I have an extension called [cookies.txt](https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=nl). \nThe cookies can then be exported by the extension and saved as a text file *cookies.txt*:\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F474194%2F58ccf1040fd52f03c4c85b346f2015b7%2Fexport_cookies.png?generation=1587732481592548&amp;alt=media)\n\n2. On your machine you install aria2:\n`sudo apt-get install aria2`\n  \n3. Put the cookies.txt in the directory you want your data to be installed and then use following command to download the data:\n`aria2c -c -x 16 -s 16 --load-cookies cookies.txt -p https://www.kaggle.com/c/18647/download-all`\n\nTook me less than 20 minutes on a cloud instance",
    "903969": "Thanks a lot for your advice, my problem has been solved by using aria2.  Thank you again.",
    "826247": "Thanks @rafiko1 for sharing this.\nEarlier I was not aware of this before.",
    "821435": "First, Congratulations on deep fake challenges. And thanks for this idea to download large data set efficiently. However, have you tried to download via colab? I was hoping to get all files in a single zip file. But it downloads all files separately. "
  }
}