2

Are there any packages to extract text from html in emacs?

What I would like to try is to extract relevant text from browse web so that I can read papers and articles without the visual clutter of links and similar.

Command line scripts I can use through emacs would also be accepted even though I would prefer an emacs package.

  • 2
    Emacs 25.1 (as built from HEAD) has support for a "readability" feature in eww, the Emacs browser. Perhaps this can be used. – wasamasa Mar 3 '15 at 11:22
  • Need to upgrade then, thanks. Can't try this until the weekend most likely, but will look into it eventually. – The Unfun Cat Mar 3 '15 at 11:25
  • @TheUnfunCat You can call the plain old lynx from shell-command to convert html to txt. But yes, the emacs 25.0 Readability mode is nice, it removes a lot of cluttery frames. – Kaushal Modi Mar 3 '15 at 12:15
  • @kaushalmodi Lynx worked great, w3m even better! They do so much of the grunt work I was thinking of implementing that I imagine I'll require one of them for the emacs package I'm dreaming of building. – The Unfun Cat Mar 3 '15 at 13:53
  • @wasamasa Sorry for the dumb question, but I can't find emacs 25 anywhere. Is it available, even if just the source? (Preferably an OS X version, but I'm pretty sure no Mac installers exist/package managers have it yet.) – The Unfun Cat Mar 3 '15 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.