💾 Archived View for rawtext.club › ~sloum › geminilist › 005154.gmi captured on 2023-09-28 at 17:17:07. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

A proxy for Web pages in Gemini

Callum Brown callum at calcuode.com

Thu Feb 11 09:14:08 GMT 2021

- - - - - - - - - - - - - - - - - - - 

On Wed, 10 Feb 2021 22:46:34 +0000, <me at nader.pm> wrote:

For example, if the proxy is at gemini://example.proxy, and the writer
wants to link to https://example.com, they can add a link to
gemini://example.proxy?https://example.com. When the proxy receives
such a request, it can pass the link to Mozilla's readability script
to clean it up, and then pipe the output through another script to
convert it to gemtext. A link to the original Web page can be added to
the top, in case the readability script couldn't do its job well
enough. The output will be served to the user, and it will be cached
for future requests (for one month, for example).

This uses Mozilla's readability script, but doesn't deal with caching.

https://git.sr.ht/~sircmpwn/cgi-scripts/tree/master/item/web.shhttps://git.sr.ht/~sircmpwn/cgi-scripts/tree/master/item/web2gmi.js