feeds used:
https://tilde.town/~opfez/blog_ass.ass
https://zvava.org/feed.ass
https://tilde.town/~kindrobot/feed.ass

#!/bin/sh
# a simple planet-like assgregator

echo "<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>planet assgregator</title>
</head>
<body>
<ul>"

curl --no-progress-meter -L $(cat feeds.txt) | grep -v ^# | sort -ur | head -n20 \
 | awk -F"\t" '{print "<li>", $1, "<a href=\"", $2, "\">", $2, "</a>"; $1=$2=""; print $3, "</li>"}' \

# print list of feeds
echo "</ul><hr /><pre>feeds used:"
cat feeds.txt | sed -e 's/&/\&amp;/g' | sed -e 's/</\&lt;/g' | sed -e 's/>/\&gt;/g'

# print the source
echo "</ul><hr /><pre>"
cat $0 | sed -e 's/&/\&amp;/g' | sed -e 's/</\&lt;/g' | sed -e 's/>/\&gt;/g'