Lurker News
My partner usually writes substack posts which I then mirror to our website’s blog section.

To automate this, I made a simple tool to scrape the post and clean it so that I can drop it to our blog easily. This might be useful to others as well.
Oh and ofcourse you can instruct GPT to make any final edits :D

Comments (99) 41 threads

Show all comments

Showing thread 8 of 41

asadalt#
oh AI is optional here. I do use readability to clean the html before converting to .md.
haddr1 reply#
Some years ago I compared those boilerplate removal tools and I remember that jusText was giving me the best results out of the box (tried readability and few other libraries too). I wonder what is the state of the art today?
IanCal1 reply#
How do you achieve the same things without AI here using that tool?
chrisweekly2 replies#
"How do you do it without AI" is a question I (sadly) expect to see more often.
IanCal3 replies#
Feel free to answer then, how do you do the same functions this does with gpt(3/4) without AI?

Edit -
This is an excellent use of it, a free text human input capable of doing things like extracting summaries. It does not seem to be used at all for the basic task of extracting content, but for post filtering.

Continue this thread — 3 replies

hombre_fatal#
Meh, it’s just the “how does it work?” question. How content extractors work is interesting and not obvious nor trivial.

And even when you see how readability parser works, AI handles most of the edge cases that content extractors fail on, so they are genuinely superseded by LLMs.

foundzen1 reply#
how is it compared to mozilla/readability?
asadm1 reply#
it uses readibility but does some additional stuff like relink images to local paths etc., which I needed
foundzen1 reply#
I have had challenges with readability. The output is good for blogs but when we try it for other type of content, it misses on important details even when the page is quite text-heavy just like blog.

Continue this thread — 1 reply

fbdab1031 reply#
I was honestly expecting it to be mostly black magic, but it looks like the meat of the project is a bunch of (surely hard won) regexes. Nifty.
nyokodo1 reply#
> I was … expecting it to be mostly black magic, but … the meat of the project is a bunch of … regexes

Wait, regexes are the epitome of black magic. What do you consider as black magic?

fbdab103#
Macros? Any situation where code edits other code?

Sure, I could not write a regex engine, but the language itself can be fine if you keep it to straightfoward stuff. Unlike the famous e-mail parsing regex.

jot#
Last time I tried readability it worked well with articles but struggled with other kinds of pages. Took away far more content than I wanted it to.