Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.3k stars 1.1k forks source link

403 when trying to list competition files #577

Closed DamonShahrivar closed 6 months ago

DamonShahrivar commented 6 months 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 6 months ago

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

stevemessick commented 6 months 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 6 months ago

Yeah it worked!