For now, I just wanted to add those 600+ blogs to my RSS and filter them out slowly if I need to.
For now, I just wanted to add those 600+ blogs to my RSS and filter them out slowly if I need to.
Needs a bit of lint work still, eg: current lines 12 & 13 are dupes
<outline type="rss" title="bookofjoe" text="bookofjoe" type="rss" xmlUrl="https://www.bookofjoe.com/atom.xml" htmlUrl="https://www.bookofjoe.com/atom.xml"/>
<outline type="rss" title="bookofjoe" text="bookofjoe" type="rss" xmlUrl="https://www.bookofjoe.com/atom.xml" htmlUrl="https://www.bookofjoe.com/atom.xml"/>
but still appreciated as that's a minor quibble easily polished away.Currently it seems there're many people fetch from original thread, which makes it ne source of truth, less confusing for anyone to submit.
I left the console.log there as well to show which blogs aren't recognized.
I am also open for PR. It was just a few hours project to get it going, but if people will find it useful, would be nice to get some tags from the blogs, so it would be possible to extract the list only for specific technology/topics.
Any details on how to do this? My blog (https://blog.nawaz.org/) has an RSS feed here (https://blog.nawaz.org/feeds/all.atom.xml) but I don't know how to set it up the way you'd need it.
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="https://blog.nawaz.org/feeds/all.atom.xml">
UPD: type="application/atom+xml" for Atom, type="application/rss+xml" for RSS
I checked yours, the issue is that you are escaping + in application/rss+xml, when it should be just application/rss+xml
I have updated the code and will re-generate. I am not sure if what you are doing is allowed or not.
Are you taking care that if the <link> tag spans over multiple lines (linebreaks in between), you're still parsing it right?
You do seem to be resolving relative paths with:
feedUrl := matches[1]
if feedUrl[0] == '/' {
feedUrl = url + feedUrl
} else if !strings.HasPrefix(feedUrl, "http") {
feedUrl = url + "/" + feedUrl
}
So I think this is good. Just trying to see what could be breaking for the other users who are complaining their feed isn't listed.-> https://stackoverflow.com/questions/13327527/how-to-make-a-s...
And yes, thanks for your work and sharing it!
And hope at some point to actually build something larger from that. I love RSS and this is the best way to discover new content. I actually already have found a few interested blog posts, links, information.