đž Archived View for idiomdrottning.org âş linkhut2outdoors captured on 2024-08-31 at 14:15:25. Gemini links have been rewritten to link to archived content
âŹ ď¸ Previous capture (2023-09-28)
-=-=-=-=-=-=-
This is a posix shell script for converting linkhut bookmarks to Solderpunkâs Smol Earth Compendium.
Youâll get a text file; itâs up to you to then place that textfile on Gemini or Gopher.
Iâm not telling you to go use linkhutâthe Smol Earth Compendiumâs own format is much simpler, just use it straight up; this script is only good for people already using linkhut.
Itâll only grab ones with the âoutdoorsâ tag (and remove that tag), and only bookmarks to pages on Gemini or Gopher, and not if they contain a tag that starts with the string âexpires-2â. I want to submit more permanent entries.
Youâre gonna need an API key for linkhut. Once you have one, create a file in your home directory named .linkhut2outdoorsrc that contains something like this:
key=abcdefgh123yaddayaddayadda
You can also optionally put an url to a linkhut instance (defaults to https://api.ln.ht) and an out for a file name (defaults to /tmp/outdoors.txt).
Then just run the script as a user that has access to reading that file.
For source code,
git clone https://idiomdrottning.org/linkhut2outdoors