Kaggle data set download detailed steps and precautions

In this paper APTOS 2019 Blindness Detection Competition database as an example, explain the steps to download.

table of Contents

First, install kaggle library

Second, the registration kaggle account

Third, find the need to download data sets, and accept the rules.

Fourth, json file download

Fifth, the json file into the folder .kaggle

Sixth, download data sets

Note: reprint, please indicate the original source link: https://blog.csdn.net/lxw234lxw/article/details/102968754


First, install kaggle library

Installation command:

pip install kaggle

You can install kaggle libraries to install additional Python libraries like the same.

Precautions: After installation is complete to see the system has not generated .kaggle folder, if not, you can enter any kaggle command (such as kaggle competitions list) in the environment and then refresh the folder will appear.

 

Second, the registration kaggle account

Enter kaggle page , choose the top right corner Register to register and log kaggle account after registration is complete.

Precautions: registration process need to use wai wang, or can not load the authentication information, below left; after connecting through wai wang, you can load the authentication information, below right.

 

Third, find the need to download data sets, and accept the rules.

Acceptance of the rules of procedure also requires wai wang connection can be loaded verify information; phone number can be written + 8615xxxxxxxxx.

Note the point: to accept the rules of this step is very important, if not accepted, there will be downloading 403 - Forbidden .

 

Fourth, json file download

Click on the top right of the interface kaggle account, select [My Account].

Then find the API field, select [Create New API Token] json file to download.

 

Fifth, the json file into the folder .kaggle

注意点:每次下载新的数据集都要重新操作步骤三的接受规则、步骤四下载json文件和步骤五将最新的json文件放入.kaggle文件夹中,否则下载时会出现403 – Forbidden。

 

六、下载数据集

找到数据界面,点击[Data],找到API命令,点击可复制。

粘贴到cmd中,运行即可下载。下载后的结果会放在自己的账户文件夹中。如果想下载到自定义的位置,可以在下载之前在cmd中输入kaggle config set -n path -v <存储位置>即可更改下载位置。

 

发布了27 篇原创文章 · 获赞 66 · 访问量 7485

Guess you like

Origin blog.csdn.net/lxw234lxw/article/details/102968754