Download kaggle file without login






















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. If you wish to use datasets without downloading them your only option is to use Kaggle kernels.

Once the data is downloaded using bothmena's method, how do you define it and actually begin to use it? Hi guys! Can someone actually put all this together? I am a newby and I like using colab and I want to be able to do everything straight from google colab. Also is there a possibility to not download the locally? Skip to content. Sign in Sign up. Instantly share code, notes, and snippets.

Last active Sep 1, Code Revisions 6 Stars 54 Forks Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. Sample script to download Kaggle files. I've been trying different methods to import the SpaceX missions csv file on Kaggle directly into a pandas DataFrame, without any success. C error: Expected 1 fields in line 13, saw 6.

You are creating a stream and passing it directly to pandas. I think you need to pass a file like object to pandas. Take a look at this answer for a possible solution using post and not get in the request though.

Also i think the login url with redirect that you use is not working as it is. I know i suggested that here. But i ended up not using is because the post request call did not handle the redirect i suspect. So i never really directly loaded it into the DataFrame, but rather stored it to disk first.

But you could modify it to use a temp directory and just delete the files after you read them. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.

Learn more. 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. Improve this answer. Daweo Daweo First try to use response. BytesIO response. Tikhon Petrishchev Tikhon Petrishchev 30 1 1 silver badge 3 3 bronze badges.



0コメント

  • 1000 / 1000