Datasets:
Download fetch_files.sh from dataunitylab/json-schema: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/datasets/dataunitylab/json-schema/resolve/main/fetch_files.sh
- Command line
-
hf download hf://datasets/dataunitylab/json-schema/fetch_files.sh
-
curl -L -o fetch_files.sh https://huggingface.co/datasets/dataunitylab/json-schema/resolve/main/fetch_files.sh
441 Bytes
| pv commits.json | | |
| jq -r '("https://raw.githubusercontent.com/" + .repository) as $url | .path as $path | .commits[] | $url + "/" + .sha + "/" + $path' | | |
| while read url; do | |
| # Strip the url prefix to get the path | |
| path=$(echo "$url" | cut -d/ -f4-) | |
| if ! [ -f "fetched_data/$path" ]; then | |
| curl "$url" --silent --create-dirs -o "fetched_data/$path" | |
| sleep 1 | |
| fi | |
| done | |