documentation for Kaggle API *within* python?

后端 未结 2 1350
盖世英雄少女心
盖世英雄少女心 2021-02-13 05:47

I want to write a python script that downloads a public dataset from Kaggle.com.

The Kaggle API is written in python, but almost all of the documentation

2条回答
  •  -上瘾入骨i
    2021-02-13 06:17

    You can check the implementation of the Kaggle API

    But if you are lazy you can just install kaggle on your server pip install kaggle.

    And to download a whole competition you may call this from python.

    import os
    os.system('kaggle competitions download -c "dogs-vs-cats-redux-kernels-edition"')
    

    Further, check the docs

提交回复
热议问题