Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.01k stars 1.06k forks source link

403 when trying to list competition files #577

Closed DamonShahrivar closed 1 month ago

DamonShahrivar commented 1 month ago

Getting 403 when i am trying to list files of a previously entered competition. I have also deleted and re issued a new token.

Screenshot 2024-05-13 003844

stevemessick commented 1 month ago

Have you installed the credentials? See: https://github.com/Kaggle/kaggle-api/blob/main/docs/README.md#api-credentials

stevemessick commented 1 month ago

Sorry for the noise. I see in your screenshot that authentication was successful.

According to the docs for competition_list_files() the argument should be the competition name, not its URL. Try changing that and let us know if that helps.

DamonShahrivar commented 1 month ago

Yeah it worked!