Share dataset using kaggle API
After creating a large beautiful dataset or corpus we all want to share with the large beautiful community.
Here is a step by step approach to share your dataset using kaggle api
Creating Dataset in Kaggle
-
Download kaggle api and keep it inside
C:\Users\username\.kaggle
in windows and/home/username/.kaggle
in linux - Install kaggle api by
pip install kaggle
- Create a directory and keep your data inside that directory
- Create dataset metadata by
kaggle datasets init -p /path/your_directory
- Fill the dataset metadata file according to your information and template
- Now create your dataset in kaggle by
kaggle datasets create -p /path/your_direcotory
- To make this dataset public you can use
-u
or can change in kaggle profileshare setting
option
Updating your dataset
- Run
kaggle datasets init -p /path/to/dataset
to generate a metadata file if you don’t already have one - Make sure the id field in datapackage.json points to your dataset
- Run kaggle datasets version -p /path/your_directory -m “Your message here”
Comments