logoalt Hacker News

sammy0910 • today at 7:47 PM • 1 reply • view on HN

the idea is to open a webpage in a headless browser, run all the javascript and whatnot, and then ai-generate a program to translate the page as-displayed into a textonly format.

not great for everything, and it does, unfortunately need an LLM call to generate the translation program, but if you truly want to live in emacs, I've found it as a good stop-gap for certain pages that EWW cannot effectively render.


Replies

iLemming • today at 10:17 PM

You don't need AI for that, this all can be done deterministically. I'm currently using Mac and using OSA layer I can easily grab the readable text out of DOM as it's rendered on the page to display in an Emacs buffer.