list hostr files by author

hostr_list wss://relay.nostr.band 12daa8df16d9a5d232c14601571a5bf155329a0725aa31af58e7826f8ebd6f1c

fetch fileloader.html and open in firefox

hostr wss://relay.nostr.band 12daa8df16d9a5d232c14601571a5bf155329a0725aa31af58e7826f8ebd6f1c fileloader.html && firefox fileloader.html

script

1
2
3
4
5
6
7
8
function hostr(){
  list="nostr-tool -r $1 list-events"
  $list -i $( $list --authors $2 | jq -r '.[] | (.id+" "+(.tags | tostring))' | grep '"'"$3"'"' |  grep -oP "[a-z0-9]{64}") | jq -r .[].content
}
function hostr_list(){
  list="nostr-tool -r $1 list-events"
  $list --authors $2 | jq -r '.[] | (.id+" "+(.tags | tostring))'
}

fetch note without content

list="nostr-tool -r wss://relay.nostr.band list-events"
$list -i $($list --authors 12daa8df16d9a5d232c14601571a5bf155329a0725aa31af58e7826f8ebd6f1c |jq '.[] | (.id+" "+(.tags | tostring))' | grep "fileloader.html" | grep -oP "[a-z0-9]{64}") | jq ".[]|del(.content)"
Edit

Pub: 09 Nov 2023 14:57 UTC

Edit: 09 Nov 2023 15:29 UTC

Views: 82