You can create a shell function to make it simpler:
echo -ne "gemini://$address\r\n" | ncat --ssl $domain 1965 | tail -n +2 | /path/to/gemini-to-html.py
And then call "gmi example.com/path > file.html". You can also add additional checks for the gemini response code if you want 😃.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.