Download file from /kaggle/working






















I found this gist today, because I wanted to download kaggle dataset into google colab, but I ended up using a different approach, I hope it helps:. This way you don't need to change kaggle json file directory in the kaggle settings and now you can use kaggle to do whatever you need!

Hello could someone help me figure out why I am getting the error message. Here is the code I have. I got it to work. By just breaking the code down. For some reason it wouldn't work with the code as a block in one cell. Thanks so much, bothmena. This clearly works. The easiest way to download kaggle dataset. Thanks for sharing!

However, I wonder if there is any way that can use the dataset without downloading it? You can probably overcome this by using an ssh key, but I don't recommend it especially if you will share the notebook with others. Note that I did not try my method with private datasets. Edit: ucalyptus try using my method without any modifications, I believe it should work, because you're already using an API key for authentication. Close Hashes for kaggleDownloader File type Wheel. Python version py3. Upload date Jun 22, Hashes View.

File type Source. Active Oldest Votes. Improve this answer. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Active 2 months ago. Viewed times. ZipFile io.

BytesIO r. BadZipFile: File is not a zip file Any solution for getting the file from the url - unzip if needed - and get the name of the downloaded file so as to be able to work on it? Improve this question. Inspect what r. I believe you need to be logged in to Kaggle in order to download a file.

If you're ok with this, I can post an answer how to do this. Add a comment. Active Oldest Votes.



0コメント

  • 1000 / 1000