Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.17k stars 1.09k forks source link

Too many requests #200

Closed mhnamaki closed 1 year ago

mhnamaki commented 5 years ago

I'm downloading kernels scripts and I've got "too many requests". Please let me know what should be the wait time between every two requests to avoid getting such an error.

Thanks.

tiyunchen commented 5 years ago

+1, and how many requests will got "too many requests".

mw66 commented 5 years ago

same error here:

kaggle competitions download -c 3d-object-detection-for-autonomous-vehicles ....

429 - Too Many Requests

LeonhardFS commented 5 years ago

same problem here!

mw66 commented 5 years ago

and in the browser click 'Download All' link on this page: https://www.kaggle.com/c/3d-object-detection-for-autonomous-vehicles/data

re-direct to:

https://www.kaggle.com/c/15768/download-all

shows 404

AllenPeng0209 commented 5 years ago

same on lyft dataset

pawelgodula commented 5 years ago

+1 on lyft dataset

cmpute commented 5 years ago

+1 on lyft dataset

vakkov commented 5 years ago

+1 on lyft's 3d object detection

scofield1991 commented 5 years ago

did anyone find a solution?

ghost commented 5 years ago

For people hitting errors on competition downloads, please update your client to the latest version pip install --upgrade kaggle

HiteshAI commented 4 years ago

same problem with vehicle dataset..?? Is there any solution. Updating doesn't help

PotatoSpudowski commented 4 years ago

This worked for me.

pip uninstall -y kaggle pip install --upgrade pip pip install kaggle==1.5.6

alext234 commented 4 years ago

Seriously this has to be fixed please. @PotatoSpudowski instructions works for me

kaggle competitions download -c rsna-pneumonia-detection-challenge
c2karansingh commented 4 years ago

@PotatoSpudowski thanks this worked for me.

P.S used it in Google collab. Remove ! if using in command prompt !pip uninstall -y kaggle !pip install --upgrade pip !pip install kaggle==1.5.6

akuma527 commented 4 years ago

@PotatoSpudowski Thanks a ton! :)

utukJ commented 4 years ago

@PotatoSpudowski Thanks a lot!!

jaimecorton commented 9 months ago

Hello! I am trying to download a small subset of 5000 images with Kaggle API version 1.5.16 (most recent stable version up to date: December 2023) and I am still getting the same response code mentioned here (429 : Too Many Requests).

I am extracting the images from state-farm-distracted-driver-detection dataset (https://www.kaggle.com/competitions/state-farm-distracted-driver-detection/data).

The error message appears aproximately around the 100th image download.

I am using a simple function for that purpose:

for filename in selected_filenames:
    print(filename)
    kaggle.api.competition_download_file(file_name=f'imgs/train/{selected_dict[filename]}/{filename}',
                                         competition=COMPETITION,
                                         path=DATAPATH)

Is there any kind of waiting time needed between downloads, so that, the response message 429 doesn't appear? Thanks in advance.