Most active commenters
  • mustaphah(4)

129 points mustaphah | 23 comments | | HN request time: 1.295s | source | bottom
1. mustaphah ◴[] No.45307165[source]
The good news: made it to the front page.

The bad news: so did the 503 page.

replies(1): >>45307455 #
2. ◴[] No.45307200[source]
3. kschaul ◴[] No.45307422[source]
Glad you’re find the tool interesting! A short blog post behind it: https://kschaul.com/post/2023/04/16/feedmaker-quickly-genera...

And the GitHub url (hopefully easy to host your own instance): https://github.com/kevinschaul/feedmaker

replies(1): >>45308068 #
4. benbristow ◴[] No.45307455[source]
In some ways a good thing, no? Shows you've got work to do on optimisation for large audiences. A free stress test (unless you're on a host that charges per hit or bandwidth excess), as you will.

Did load eventually for me, thought it was broken as no styles but looks like it's intentional.

replies(1): >>45307758 #
5. bradbeattie ◴[] No.45307519[source]
https://github.com/RSS-Bridge/rss-bridge is what I've been using for the same purpose.
6. zekenie ◴[] No.45307556[source]
Not the same but this gives me an idea… what if there was a map reduce for doms as a web primitive. Like imagine if I could make a dom (or feed) that was some selection and transformation of another dom
replies(2): >>45307656 #>>45307745 #
7. onedognight ◴[] No.45307656[source]
You have just re-invented XLST.
replies(1): >>45310406 #
8. 1-more ◴[] No.45307745[source]
https://www.w3schools.com/xml/tryxslt.asp?xmlfile=cdcatalog&... give it a whirl!
9. uyzstvqs ◴[] No.45307758{3}[source]
Seems to be hosted using fly.io
10. int0x29 ◴[] No.45307815[source]
I made a CGI program that ran CSS selectors against URLs and returned the output. I debated making it public and then realized I probably didn't want to run an open proxy. I'm curious how long this will last.
11. crazygringo ◴[] No.45307858[source]
I love this.

Has anyone tested to see if it works with Blogtrottr which will email you whenever there's a new item in an RSS feed?

Just since this doesn't seem like it even includes a date field in the RSS? And of course no guid. So I'm wondering how compatible it winds up being.

replies(1): >>45307940 #
12. kevincox ◴[] No.45307940[source]
Dates shouldn't matter. The feed has ID elements which is what identify entries. Atom has no guid element. So I would expect this to work with any reader.
replies(1): >>45310347 #
13. mustaphah ◴[] No.45308068[source]
Looks like you're hosting this on fly.io - PAYG model. You could probably host this for free on Cloudflare Workers; 100k requests/day on the free tier; static content (the homepage) is free & unlimited.

Edit: The catch is the 10ms CPU cap per request - you'd need a super lean implementation. Django's too heavy for that.

replies(2): >>45308349 #>>45308495 #
14. 0cf8612b2e1e ◴[] No.45308349{3}[source]
Python alone is many milliseconds to start. Unless they give you some allowances for interpreter overhead.
15. mustaphah ◴[] No.45308495{3}[source]
Well, someone already did with JS: https://github.com/ProfessorManhattan/rss-worker
16. edoceo ◴[] No.45310347{3}[source]
I wish they had concrete, accurate id and created_at. IIRC these attributes are fixed in AT.
17. pimlottc ◴[] No.45310406{3}[source]
*XSLT
18. ZYbCRq22HbJ2y7 ◴[] No.45310623[source]
Should be able to achieve this without selectors with HTML to Markdownish (something like Firefox's Reader mode).
19. mg ◴[] No.45310784[source]
That is a good idea.

59 requirements, including Django, seems pretty heavy though?

For my own RSS feed, I use this 48 line Python file with no dependencies outside the standard library:

https://github.com/no-gravity/atomfeed.py

It takes an array with the entries as input, not a web page. But I guess the HTML parsing should take no more than another few lines? For HTML parsing, I have good experiences with the lxml module which is in the Debian repos. It is fast and works pretty well.

20. ulrischa ◴[] No.45311504[source]
Same can be done wirh freshrss
21. gottlobflegel ◴[] No.45311616[source]
You can just use an XSLT stylesheet like this: https://wwwcip.cs.fau.de/~oc45ujef/misc/src/atom.xsl xsltproc includes a handy --html flag that lets you just process the source file directly.
replies(1): >>45311747 #
22. chmod775 ◴[] No.45311747[source]
It's not "just" when the format has enough visual noise to give perl a run for their money. I'm getting a migraine trying to figure out what's going on in that .xsl