usage:

imgstr <pubkey_hex>

script:

1
2
3
function imgstr() {
  nostr-tool -r wss://nos.lol -r wss://relay.nostr.band list-events --limit 2000 --authors $1 | jq "..|.content?" |  grep -oP "http.+?\.(jpg|jpeg|png|webp)" | perl -ne 'print unless $seen{$_}++' |  { i=0; while read img; do let i++; wget $img -O "$(printf %03d $i)"_"$(basename $img)"; done }
}
Edit

Pub: 16 Oct 2023 01:41 UTC

Edit: 16 Oct 2023 02:22 UTC

Views: 146