text/gemini to RSS

Julien Blanchard julien at typed-hole.org
Thu Oct 17 18:04:53 BST 2019
>   I?ll try to make such a tool.
>
So I started a simple ruby script, here is the current output it generates from typed-hole.org index (not the best test page but that's all I have at hand):

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
   xmlns:dc="http://purl.org/dc/elements/1.1/">
   <author>
     <name>julienXX</name>
   </author>
   <id>gemini://typed-hole.org/feed.atom</id>
   <title>typed-hole.org</title>
   <updated>2019-10-17T16:20:26.211971+00:00</updated>
   <entry>
     <id>gemini://typed-hole.org/software/index.gemini</id>
     <link href="gemini://typed-hole.org/software/index.gemini"/>
     <title>Check it out</title>
     <updated>2019-09-14T10:50:52.447668+00:00</updated>
     <dc:date>2019-09-14T10:50:52.447668+00:00</dc:date>
   </entry>
   <entry>
     <id>gemini://typed-hole.org/cyoa/underground</id>
     <link href="gemini://typed-hole.org/cyoa/underground"/>
     <title>Play &quot;Underground Kingdom&quot;</title>
     <updated>2019-08-27T09:47:27.588779+00:00</updated>
     <dc:date>2019-08-27T09:47:27.588779+00:00</dc:date>
   </entry>
   <entry>
     <id>gemini://typed-hole.org/cyoa2/pyramid.gemini</id>
     <link href="gemini://typed-hole.org/cyoa2/pyramid.gemini"/>
     <title>Play &quot;Secret of the Pyramids&quot;</title>
     <updated>2019-08-29T11:06:43.56307+00:00</updated>
     <dc:date>2019-08-29T11:06:43.56307+00:00</dc:date>
   </entry>
   <entry>
     <id>gemini://typed-hole.org/project_gemini.jpg</id>
     <link href="gemini://typed-hole.org/project_gemini.jpg"/>
     <title>The Gemini mission - what it will be like...</title>
     <updated>2019-10-03T16:20:08.170043+00:00</updated>
     <dc:date>2019-10-03T16:20:08.170043+00:00</dc:date>
   </entry>
   <entry>
     <id>gemini://typed-hole.org/lobsters/lobsters.gemini</id>
     <link href="gemini://typed-hole.org/lobsters/lobsters.gemini"/>
     <title>Browse the un-official lobste.rs Gemini mirror</title>
     <updated>2019-10-17T16:20:26.211971+00:00</updated>
     <dc:date>2019-10-17T16:20:26.211971+00:00</dc:date>
   </entry>
   <entry>
     <id>gemini://typed-hole.org/guestbook</id>
     <link href="gemini://typed-hole.org/guestbook"/>
     <title>Guestbook ??</title>
     <updated>2019-10-06T16:49:02.879648+00:00</updated>
     <dc:date>2019-10-06T16:49:02.879648+00:00</dc:date>
   </entry>
   <dc:date>2019-10-17T16:20:26.211971+00:00</dc:date>
</feed>

It's currently only adding links that point to a local file, use the link description and file timestamp to fill the title and updated field. Next step will be to add the content or a preview of it.

The feed is available on my server at gemini://typed-hole.org/feed.atom and the script is located here https://tildegit.org/julienxx/atomini if you want to test it.

--
julienxx



Archive home | About this archive