kaggle 数据下载使用kaggle api 下载才能比较快
pip install kaggle
o use the Kaggle API, sign up for a Kaggle account at
https://www.kaggle.com. Then go to the 'Account' tab of your user profile and select 'Create API Token'. This will trigger the download of
(在home目录下,可以使用ctrl+h打开隐藏文件,.kaggle就在home目录下)
kaggle.json
, a file containing your API credentials. Place this file in the location
~/.kaggle/kaggle.json
使用下面命令给kaggle.json权限
chmod 600 ~/.kaggle/kaggle.json
终端使用下面命令下载,这个命令在要下载的网页上有
kaggle competitions download -c diabetic-retinopathy-detection