Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.16k stars 1.08k forks source link

BadZipFile Error using opendatasets #533

Closed Bagelsause closed 8 months ago

Bagelsause commented 9 months ago

I was trying to download the files in the YouTube Trending Video Dataset by Rishav Sharma and was using the opendatasets Python import, and I received a BadZipFile warning for the following code:

od.download("https://www.kaggle.com/datasets/rsrishav/youtube-trending-video-dataset?select=US_youtube_trending_data.csv", force=True) od.download("https://www.kaggle.com/datasets/rsrishav/youtube-trending-video-dataset?select=US_category_id.json", force=True)

And as instructed in the error, "('Bad zip file, please report on www.github.com/kaggle/kaggle-api', BadZipFile('File is not a zip file'))", I'm reporting it as an issue. I have the kaggle.json present in the directory, so it doesn't ask for any input in the code box.

Please let me know if I should submit any other information regarding this issue!

Philmod commented 8 months ago

Thanks for reporting, I have a fix for this bug that will go out today with the version 1.6.1.