Datasets:
Download code/download.py from open-index/open-github-issues: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/datasets/open-index/open-github-issues/resolve/main/code/download.py
- Command line
-
hf download hf://datasets/open-index/open-github-issues/code/download.py
-
curl -L -o download.py https://huggingface.co/datasets/open-index/open-github-issues/resolve/main/code/download.py
443 Bytes
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = ["huggingface-hub"] | |
| # /// | |
| """Download dataset files from Hugging Face Hub.""" | |
| from huggingface_hub import snapshot_download | |
| # Download only issues | |
| snapshot_download( | |
| "open-index/open-github-issues", | |
| repo_type="dataset", | |
| local_dir="./open-github-issues/", | |
| allow_patterns="data/issues/**/*.parquet", | |
| ) | |
| print("Downloaded issues parquet files to ./open-github-issues/") | |