-- Leo's gemini proxy

-- Connecting to gemini.sh0.xyz:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Re: Creating an atom feed file to submit to antenna


Original Post


While I like the idea of gemlog format and could submit my index page to Antenna, I thought the cgi route would be fun. I've posted about it in the past but seeing as others are looking at generating the same type of file I thought I might as well toss it back out there for inspiration.


The script is fairly simple, written in python3. Reads through a directory, scrapes a few attributes to put in publish times and tags, title from the first heading, etc. Nothing too crazy but very helpful in automating the process.


atom.xml.py


Copy the file to your cgi-bin directory, drop the `.py` and tweak the variables to match your setup. You can see mine in action here.


atom.xml Live


$ published: 2023-09-02 13:47 $

$ tags: #gemini, #programming $


-- CC-BY-4.0 jecxjo 2023-09-02


back

-- Response ended

-- Page fetched on Tue May 21 20:06:17 2024