• Re: web

    From anthk@anthk@openbsd.home to comp.misc on Sat Mar 22 21:52:32 2025
    From Newsgroup: comp.misc

    On 2025-01-17, yeti <yeti@tilde.institute> wrote:
    not@telling.you.invalid (Computer Nerd Kev) wrote:

    Curl supports Gopher. Not Gemini though.

    Ncat and Netcat (check the existence of '-c' and '-T') can fetch stuff
    from Gemini servers:

    ------------------------------------------------------------------------
    $ printf 'gemini://geminiprotocol.net/\r\n' \
    | ncat --ssl geminiprotocol.net 1965 | less
    ------------------------------------------------------------------------

    ------------------------------------------------------------------------
    $ printf 'gemini://geminiprotocol.net/\r\n' \
    | nc -c -T noverify geminiprotocol.net 1965 | less
    ------------------------------------------------------------------------

    Wrapping that in some hands full of AWK to find links and iterate over
    them should not require deep magic.

    Some browsers capable of accessing gemini: can save the fetched files'
    and gemini pages' source, maybe they would even be easier to integrate
    in own scripts?

    TL;DR: There is no showstopper.


    gem.awk (a gemini client written with gawk+openssl) works like that

    I expanded it with some nice features

    another one I'd like it's one to batch-dl a full phlog, easy to do
    with basename, mkdir -p and a for loop iterating the array of links.
    --- Synchronet 3.20c-Linux NewsLink 1.2