CIQAEOMQY6O6Q... data
(324.91 KB, 563x771)
>>/10795/
> In the past I shared the crappy code I used to automatically generate picrel webpages [at this link:...]
I guess this is a problem: older versions don't use JSONs. Newer versions don't use JSON either, but should be better. JSON is like the universal metadata format, so here's what not using it could mean:
(1) Using an involved and specific format via arbitrary text files (or arbitrary HTMLs). An example is https://gateway.pinata.cloud/ipfs/bafybeibb465xhmnuk3yiu2nlozuyhem7nnxtnwvwhpkoonubvtirrwfp6q/meta.txt which basically is this text: "safe, mare, opening credits, friends (series), my little pony: friendship is magic, parody, youtube, photo (object) ,, https://files.catbox.moe/hzk7jq.webm". Delimiter ",," separates tags and source. Being neither CSV not JSON, nothing there is machine-readable as "tags" and "source".
(2) Using a basic format via text files. An example is https://gateway.pinata.cloud/ipfs/bafybeibnz5raj4jpeqja77slgbkjzarkezippfr4s44mzqgcbc3hiyrlu4/meta.txt which basically is this text: "safe, pony, rainbow dash, twilight sparkle, mare, friendship express, train, outdoors, horn, vehicle, g4". As long as the program outputs tags only to each "meta.txt" then it isn't so bad. However, it's still undeclared/unstructured data. That text file can be accessed with no filename (by it's resolved CID), so in that case, looking at it, nothing says those are tags. JSON would be {"tags":"tag1", "tag2", "etc"}
So, either use JSONs instead of case (1), or use case (2) which is maybe still worse than using JSON. Here's a different and more simple thing which does use JSONs - trustlessly record De*bo*ru uploads:
$ read -p "src:" src; read -p "tags:" tags; read -p "url:" \
url; read -p "time:" time; datetime=$(date +%s).json; echo \
-e "{\n \"source\": \"$src\",\n \"tags\": \"$tags\",\n \"ur\
l\": \"$url\",\n \"uploaded\": \"$time\"\n}" > $datetime; e\
cho $datetime; cat $datetime(Files from here:$ find /zc/ipfs/blocks/22/ -type f | tail -n+601 | head -n100\
| xargs -d "\n" sh -c 'for args do file "$args"; done' _ | g\
rep -v " data$\|MPEG sequence, v2, program multiplex$\|OpenPG\
P Public Key$") and picrel was deleted, which was:
> $ cat 1723558110.json
> {
> "source": "/zc/ipfs/blocks/22/CIQAEOMQY6O6QSA2773FEHY6L427YQT5FTGUB227EIMWH2GEKYIM22I.data",
> "tags": "safe, pony, mare, capsized, ship, fluttershy, fluttershy's tv, tv, photo, g4, meme",
> "url": "https://derpinxghr4jpjk4h4acjxyrx4rcwtk7ggjyt32uyaxgodqq7cfewuqd.onion/images/3420450",
> "uploaded": "2024-08-13T14:07:49Z"
> }
> $ # Rule #3