Sha256: 8e81528482e67de9178392230d0a7c0f8344420e5016b3ac9442f97458fbbbba

Contents?: true

Size: 329 Bytes

Versions: 28

Compression:

Stored size: 329 Bytes

Contents

#!/bin/sh

set -e
set -o pipefail

PLACEHOLDER='${province_code}'

num_provinces=$1
url=$2

for province_code in `seq 1 $num_provinces`
do
  province_url=$(echo $url | sed -e s/$PLACEHOLDER/$province_code/g)
  curl -s $province_url > "tmp/p$province_code.xls"
  ssconvert "tmp/p$province_code.xls" "tmp/p$province_code.csv"
done

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
pumi-0.22.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.21.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.20.2 .github/actions/fetch_data/entrypoint.sh
pumi-0.20.1 .github/actions/fetch_data/entrypoint.sh
pumi-0.20.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.19.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.18.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.17.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.16.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.15.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.14.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.13.2 .github/actions/fetch_data/entrypoint.sh
pumi-0.13.1 .github/actions/fetch_data/entrypoint.sh
pumi-0.13.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.12.2 .github/actions/fetch_data/entrypoint.sh
pumi-0.12.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.11.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.10.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.9.0 .github/actions/fetch_data/entrypoint.sh
pumi-0.8.0 .github/actions/fetch_data/entrypoint.sh