💾 Archived View for capsule.galusik.fr › log › 2023-03-27-twtfeed-twtxt-atom.gmi captured on 2023-05-24 at 17:40:32. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

➡️ Next capture (2023-05-30)

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

Twtfeed, make your twtxt file an ATOM feed

2023-03-27

twtxt

Twtxt is a decentralised, minimalist microblogging service for hackers.

Twtxt.txt

This script is to let people follow you without having to use a twtxt client. A simple RSS/ATOM newsreader is ok.

twtxt2atom

First, I was using an AWK script written by prx:

twtxt2atom

This shell script depends on GNU AWK and on sha256 (bsd) or sha256sum (linux). I wanted to make it depends on only one thing: perl without any modules ;)

twtfeed

Moreover, I wanted to use a configuration file to make it easier for everyone.

So, the script is hosted on a GIT repository:

twtfeed at SourceHut

You can clone it:

git clone https://git.sr.ht/~fredg/twtfeed

Or download the tarball:

wget -c https://git.sr.ht/~fredg/twtfeed/blob/master/twtfeed-0.2.tar.gz

Then the installation is simple. In the twtfeed folder, run:

sudo make install

This will install the script and the man page. To use it, you will have to copy the `twtfeed.cfg` config file in $HOME/.config/twtfeed/twtfeed.cfg.

Fil the variables to fit your need:

#
# twtfeed configuration file
#

# Author's name
$nick = "Tom Marvolo Riddle";

# Link to your online twtxt file
$url = "https://the.chamber.of.secret/twtxt.atom";

# The ATOM feed title
$title   = "Avada Kedavra";

# where is your local twtxt.txt file
$twtfile = "$PATH/to/twtxt.txt";

# where is your local twtxt.atom file
$feedfile = "$PATH/to/twtxt.atom";

Run 'twtfeed' and voilĂ !

Some links

My twtxt file

The ATOM feed

<--

Commentaires / Comments ?

Envoyer un email Ă  la liste de discussion publique / Send a mail to the public Inbox

---

-- Copyright © 2008–2023 Frédéric Galusik - CC BY-SA 4.0 --