small pixel drawing of a pufferfish j3s.sh

feed/feed.go

package feed

import (
	"log"
	"github.com/SlyMarbo/rss"
)

var lovelyFeedList = []string{
	"http://antirez.com/rss",
	"https://100r.co/links/rss.xml",
	"https://andrewkelley.me/rss.xml",
	"https://begriffs.com/atom.xml",
	"https://blog.jse.li/index.xml",
	"https://blog.tildes.net/all.atom.xml",
	"https://coderanger.net/atom.xml",
	"https://cyberia.club/blog/blog.xml",
	"https://davebucklin.com/feed.xml",
	"https://drewdevault.com/feed.xml",
	"https://emersion.fr/blog/rss.xml",
	"https://emilydamstra.com/feed",
	"https://facklambda.dev/atom.xml",
	"https://frame.work/blog.rss",
	"https://georgerrmartin.com/notablog/feed",
	"https://go.dev/blog/feed.atom",
	"https://herman.bearblog.dev/feed/",
	"https://kattraxler.github.io/feed.xml",
	"https://linuxwit.ch/feed.xml",
	"https://matrix.org/blog/feed",
	"https://rodarmor.com/feed/feed.xml",
	"https://sanine.net/rss.xml",
	"https://sequentialread.com/rss",
	"https://sourcehut.org/blog/index.xml",
	"https://spencerkrum.com/index.xml",
	"https://staffeng.com/rss",
	"https://tilde.team/~kiedtl/atom.xml",
	"https://www.bitquabit.com/index.xml",
	"https://www.namecoin.org/feed.rss",
	"https://www.ryanprior.com/posts/index.xml",
}

// todo: async (nevermind, not really needed now tbh with new update method)
func GetAllFeeds() []rss.Feed {
	var feeds []rss.Feed
	for _, f := range lovelyFeedList {
		feed, err := rss.Fetch(f)
		if err != nil {
			log.Println(err)
			continue
		}
		feeds = append(feeds, *feed)
	}
	return feeds
}