Kaggle Downloading Data

I’m running kg download after having run kg config –u <username> -p <password> -c <competition name>, and I’m getting the following error:

Certificate did not match expected hostname: www.kaggle.com. Certificate: {'subject': ((('commonName', '*.azurewebsites.net'),),), 'subjectAltName': [('DNS', '*.azurewebsites.net'), ('DNS', '*.scm.azurewebsites.net'), ('DNS', '*.azure-mobile.net'), ('DNS', '*.scm.azure-mobile.net'), ('DNS', '*.sso.azurewebsites.net')]}
HTTPSConnectionPool(host='www.kaggle.com', port=443): Max retries exceeded with url: /c/planet-understanding-the-amazon-from-space/download/test-jpg-additional.tar.7z (Caused by SSLError(CertificateError("hostname 'www.kaggle.com' doesn't match either of '*.azurewebsites.net', '*.scm.azurewebsites.net', '*.azure-mobile.net', '*.scm.azure-mobile.net', '*.sso.azurewebsites.net'",),))

Wondering if anyone has gotten a similar error. Thanks!

I think it would just be easier to use the official Kaggle API to download data. Please checkout this wiki post on how to download data using the API.

2 Likes