Show HN: MergeFeed – Paste a bunch of links to create a multifeed
mergefeed.net
mergefeed.net
Thnx for the link
For this project, that would mean emitting Atom rather than RSS. And possibly the autodiscovery needs tweaking too, as I observe it not finding the feed on my site https://chrismorgan.info/, which is properly specified; my first guess is that it’s not coping with the type=application/atom+xml attribute.
In related news, MergeFeed is currently vulnerable to injection attacks because it mishandles Atom titles that are specified as text. If you specify a title as HTML or XHTML, it filters out a <script> element properly (good! and while retaining inline formatting too!), but if you specify a title as text, it doesn’t escape the HTML (which is what it should do) or filter it (which would have been wrong but would at least have closed the security vulnerability). Proof of concept: https://mergefeed.net/-?urls=https://temp.chrismorgan.info/x...
I fixed that: https://mergefeed.net/Untitled?urls=https://chrismorgan.info...
> In related news, MergeFeed is currently vulnerable to injection attacks because it mishandles Atom titles that are specified as text. If you specify a title as HTML or XHTML, it filters out a <script> element properly (good! and while retaining inline formatting too!), but if you specify a title as text, it doesn’t escape the HTML (which is what it should do) or filter it (which would have been wrong but would at least have closed the security vulnerability). Proof of concept: https://mergefeed.net/-?urls=https://temp.chrismorgan.info/x...
I fixed that too. But for now I wasn't able to fix it without also removing formatting. I might be able to figure out how to keep formatting without allowing XSS attacks later, but I'm not sure that's even a good idea. It's kind of a link aggregator and link aggregators generally don't allow formatting. You don't want people to try to gain attention that way, leading to an arms race.
Losing formatting makes me a little bit sad. The widespread idea that titles are necessarily plain unformatted text is just bad. Italics especially are very regularly useful.
Yes.
> Since you’re aggregating feeds, I’d expect it to find all feeds on all pages.
No, I don't think that would be useful. For example, a lot of blogs have autodiscovery for a feed of all posts and for a feed of all comments on their homepage. But if I want to create a multifeed of several blogs, I only want the posts.
Generally, the way I expect autodiscovery to work is that a link to the most specific applicable feed comes first. For example on the page for the tag "fun", the feed for the tag fun should come first, because that's most likely what people are looking for on that page. If they wanted the general feed, they'd go to the homepage.
Wait till you hear about Unicode bold and italics: https://yaytext.com/bold-italic/.
(I hold that most tools being weak doesn’t mean that my tools should be weak, and I view text-only titles as weakness, one that can be solved without introducing problems, so long as you don’t get this encoding problem.)
The answer seems unambiguous in the RSS spec, which is that <title> is plain text (not HTML). The reason I know it's not unspecified is that entity-encoded HTML is documented as supported in other elements (e.g. <item><description>).
Your evangelism for Atom is interesting because, of the hundreds of feeds in my newsreader, I don't believe any are Atom. So my impression was that Atom was "at least as dead as RSS" for user-facing applications, which makes me curious what the popular use cases are for it these days.
As a weak example showing this philosophy early on, from <https://www.rssboard.org/rss-0-9-2>, emphasis mine:
> Further, 0.92 allows entity-encoded HTML in the <description> of an item, to reflect actual practice by bloggers, who are often proficient HTML coders.
And that’s RSS in a nutshell, a format specified only in reaction to prevalent usage, where non-conformant documents are a normal part of life, and parsers are lax in a variety of unspecified ways because they’re reacting to usage. And what I have observed is various RSS feeds with titles containing characters significant to HTML being mangled by some feed readers, and various RSS feeds with descriptions that are plain text (possibly with characters like <, & and >, possibly not) so that some feed readers try to guess whether the <description> is in fact plain text or HTML.
The very existence and popularity of <content:encoded> is an acknowledgement that <description> is broken.
Atom is good in this regard because it provided a sane definition that people are vastly more likely to actually conform to; you can take the guesswork out of things.
I still wish Atom supported providing both text and html values; e.g. in https://chrismorgan.info/blog/make-and-git-diff-test-harness..., my HTML title is “Using <code>make</code> and <code>git diff</code> for a simple and powerful test harness”, while my text title is “Using `make` and `git diff` for a simple and powerful test harness”. On principle, I use the HTML version, but alas, most feed readers will strip the formatting and leave just “Using make and git diff for a simple and powerful test harness”.
I took a look through some of the feeds I subscribe to; RSS is definitely the significantly more popular format among them, but Atom is common too.
I get asked fairly frequently at work what blogs / newsletters / sites I read to keep on topic X.
Could I use this to create a feed for topic X sourced from what I read and then share the merged feed with others ?
- If you come across a blogroll (or any list of blogs) you're interested in, you can turn it into a multifeed.
- If you have a bookmarks folder with blogs or podcasts, you can paste it into mergefeed to turn it into a multifeed.
That said Feeder didn’t like the URL in URL format and barfed on this because it has Twitter in it. I think OP needs to URL encode the params.
https://mergefeed.net/Cyber_Security_Blogs?urls=http://krebs...
- Cyber Security: https://mergefeed.net/Cyber_Security_Blogs?urls=http://krebs...
- Economics: https://mergefeed.net/Economics_Blogs?urls=http://econbrowse...
How is such a busy overwhelming feed useful?
https://techmeme.com/river and https://hckrnews.com/ are good clean inspiration.
- Marginal Revolution: https://mergefeed.net/Marginal_Revolution_Blogroll?urls=http...
- Crooked Timber: https://mergefeed.net/Crooked_Timber_Blogroll?urls=http://11...
- Naked Capitalism: https://mergefeed.net/Naked_Capitalism_Blogroll?urls=http://...