Skip to content

Commit

Permalink
Script less echos
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Oct 3, 2024
1 parent 66635ec commit ba3deb9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fetch_municipalities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
# Function to fetch and process data for a supplier
fetch_supplier_data() {
local supplier=$1
echo "Supplier: $supplier"
echo "key,cbs_id"
curl -s "https://raw.githubusercontent.com/openstate/open-raadsinformatie/master/ocd_backend/sources/ori.$supplier.yaml" | \
yq e '.["ori.'$supplier'"][] | [.key, .cbs_id] | @csv' | \
sed 's/"//g' # Remove quotes for easier Excel import
echo
}

# Main script
Expand Down

0 comments on commit ba3deb9

Please sign in to comment.