Download kernels from Kaggle.
Project description
kaggle-downloader
A wrapper around the Kaggle CLI to download multiple kernels at once.
Installation
- Grab the latest release of Python.
- Install this tool with
pip install kaggle-downloader
.
Usage
usage: kaggle-downloader [-h] {competition-refs,kernel-refs,kernels} ...
Download kernels from Kaggle.
positional arguments:
{competition-refs,kernel-refs,kernels}
competition-refs Fetch competition references.
kernel-refs Fetch kernel references for a list of competition references.
kernels Fetch kernels for a list of kernel references.
optional arguments:
-h, --help show this help message and exit
Getting to the actual kernels takes three steps:
- Get a list of references to competitions:
usage: kaggle-downloader competition-refs [-h] -o OUT optional arguments: -h, --help show this help message and exit -o OUT, --out OUT Output file.
- Get a list of references to kernels
usage: kaggle-downloader kernel-refs [-h] -c COMPETITIONS -e EXCLUDE -o OUT optional arguments: -h, --help show this help message and exit -c COMPETITIONS, --competitions COMPETITIONS JSON file with list of competitions. -e EXCLUDE, --exclude EXCLUDE JSON file with list of competitions to exclude. Gets updated with competitions as they are processed. -o OUT, --out OUT Output directory.
- Get kernels themselves
usage: kaggle-downloader kernels [-h] -k KERNELS -e EXCLUDE -o OUT optional arguments: -h, --help show this help message and exit -k KERNELS, --kernels KERNELS Directory with JSON files containing a list of kernels -e EXCLUDE, --exclude EXCLUDE JSON file with list of kernel to exclude. Gets updated with kernels as they are processed. -o OUT, --out OUT Output directory.
Example usage:
# Step 1:
kaggle-downloader competition-refs -o data/competition-refs.txt
# Step 2:
kaggle-downloader kernel-refs -c data/competition-refs.txt -e data/excluded-competition-refs.txt -o data/kernel-refs
# Step 3:
kaggle-downloader kernels -k data/kernel-refs -e data/excluded-kernel-refs.txt -o data/kernels
For developers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for kaggle_downloader-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7457f94c95a2782ad2b8db1eba6090532ee20c2543c8b326753e053291e2c68 |
|
MD5 | 7771b8554d8114526169a514780f9443 |
|
BLAKE2b-256 | 2a12c75e78f5d8579a58f872b367ee18c087f3394d003bd1d7e87e55ea45ffda |