jimbocoin on Nostr: You can use the command line tool websocat to make a REQ and then pipe the returned ...
You can use the command line tool websocat to make a REQ and then pipe the returned events to a file.
Something like this:
echo ‘[“REQ”,…]’ | websocat <relay_url> > output.json
Published at
2024-11-18 22:34:57Event JSON
{
"id": "65b215c414da9927cc629e0ed2c39355e75c0f7340c86af5fab11026d6e81afe",
"pubkey": "6140478c9ae12f1d0b540e7c57806649327a91b040b07f7ba3dedc357cab0da5",
"created_at": 1731969297,
"kind": 1,
"tags": [
[
"e",
"362f9c2417825c3d3b35a639cf6358d765ecf621c69b0bf5c03d65f8a8e631d0",
"",
"root"
],
[
"p",
"7579076d9aff0a4cfdefa7e2045f2486c7e5d8bc63bfc6b45397233e1bbfcb19"
]
],
"content": "You can use the command line tool websocat to make a REQ and then pipe the returned events to a file.\n\nSomething like this:\n\necho ‘[“REQ”,…]’ | websocat \u003crelay_url\u003e \u003e output.json",
"sig": "e229f19cfad3d1ce6d9ab7ba09422129647f6bad54d34ee6d57c3ceeb4b65c5e5d87d60a4cc5ea522136a93ac89d00f51ab37ff8612a57733790daa440b170ff"
}