Downloading specific folders with Kaggle API

I did get to that point pretty much to download single individual files. But the folders that I want to download contains 11k images.

What I tried:

  • I downloaded the train.csv and test.csv file and opened those. This gives a dataframe with the first colomn named ‘image_name’.

-Then I used ‘train_images = ‘jpeg/train/’ + train_data[‘image_name’].sort_values()’ and then send them through the API like this:
'for filename in train_images:
!kaggle competitions download -f filename -p /content/train/ -c siim-isic-melanoma-classification ’

But this give me a ‘404 - Not Found’ for every image that it tries to download unfortunately.

Any suggestions?