From 05016b454cc7126bfd6f813548a3551ce70f10ae Mon Sep 17 00:00:00 2001 From: sakrecoer Date: Fri, 31 Jul 2026 11:40:10 +0200 Subject: [PATCH] kill the customized fetch script --- fetch-and-convert.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 fetch-and-convert.sh diff --git a/fetch-and-convert.sh b/fetch-and-convert.sh deleted file mode 100755 index 9043721..0000000 --- a/fetch-and-convert.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -# Configuration -PUBKEY="setto@basspistol.org" -RELAY="wss://basspistol.org" -DATA_DIR="data" - -# Clean up old JSON files (optional) -# rm -f data/*/*.json - -# Define kind mappings -declare -A KINDS -KINDS[0]="profile/profile" -KINDS[30023]="longform/blog" -KINDS[36787]="music/tracks" -KINDS[20]="pictures/photos" -KINDS[22]="videos/videos" - -# Fetch each kind -for kind in "${!KINDS[@]}"; do - output="${KINDS[$kind]}" - echo "Fetching kind $kind..." - - # Create directory if it doesn't exist - mkdir -p "$DATA_DIR/$(dirname "$output")" - - # Fetch and convert to JSON - nak req -k "$kind" -a "$PUBKEY" "$RELAY" | jq -s '.' > "$DATA_DIR/$output.json" - - echo "Saved to $DATA_DIR/$output.json" -done - -echo "All data fetched and converted!" -echo "JSONL files have been removed." - -echo "Building website"