rdrview
parser
Our great sponsors
rdrview | parser | |
---|---|---|
10 | 12 | |
829 | 5,245 | |
- | 2.2% | |
4.1 | 1.1 | |
about 2 months ago | 6 months ago | |
C | JavaScript | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rdrview
-
Mozilla: Readability.js
See also the C port here: https://github.com/eafer/rdrview/
It works well with text-mode browsers like w3m.
-
firefox 'naked'
i also use rdrview sometimes.
- Is there a CLI tool to download only the relevant text from an article? A mix of Curl and the tranqulity firefox addon?
-
w3m rocks
They both parse untrusted content content without sandboxing.
I typically send content through rdrview[0] before piping through w3m-sandbox[1], which should be pretty safe.
[0]: https://github.com/eafer/rdrview
[1]: https://git.sr.ht/~seirdy/bwrap-scripts/tree/trunk/item/w3m-...
-
reader, a minimal command line reader offering better readability of web pages on the CLI
Could have been nice to have this integrated to w3m. Somthing along the lines of rdrview.
- How to apply readability to already saved html pages?
-
Reading from the web offline and distraction-free
I do a lot of this work[3] (web to documents) and it's interesting to see other approaches. The medium image problem is something I've faced as well, but never got around to fixing. I'm planning to get a Remarkable soon, so will definitely be trying this out.
My personal solution has been https://github.com/captn3m0/url-to-epub/ (Node/readability), which I've tested against the entirety of Tor's original fiction collection[0] where it performs well enough (I'm biased). Another tool that does this beautifully well is percollate[1], but it doesn't give enough control of the metadata to the user - something I really care about.
I've also started to use rdrview[2], which is a C-port of the current Firefox implementation of "reader view". It is very unix-y, so it is easy to pipe content to it (I usually run it through tidy first). Quite helpful in building web-archiving or web-to-pdf or web-to-kindle pipelines easily.
[0]: https://www.tor.com/category/all-fiction/original-fiction/
[1]: https://github.com/danburzo/percollate
[2]: https://github.com/eafer/rdrview
[3]: https://captnemo.in/ebooks/
-
Show HN: Hackernews_tui – A Terminal UI to Browse Hacker News Discussions
Two projects that do this with nearly identical output:
- https://github.com/eafer/rdrview
- https://github.com/go-shiori/go-readability
Pipe the filtered HTML output into your favorite textual web browser for an ideal reading experience.
-
Newsboat / w3m show only article data
This may help if you can do some piping around it.. https://github.com/eafer/rdrview
-
Ask HN: Freelancer? Seeking freelancer? (January 2021)
SEEKING WORK | Argentina | Remote
Email: [email protected]
I'm a programmer, most familiar with C on Linux and Win32. I'll be happy to start a project from scratch, or to help support any old codebase. For a sample of my work please see rdrview [1], a small command line tool that found some success here on Hacker News; or [2], a naive filesystem implementation I've been working on.
My current rate is 20 USD/hour. For what it's worth, I have a background in math.
[1] https://github.com/eafer/rdrview
[2] https://github.com/linux-apfs
parser
-
Show HN: I made a tool to clean and convert any webpage to Markdown
Thoroughly scraping is challenging, especially in an environment where you don’t have (or want) a JavaScript runtime.
For content extraction, I found the approach the Postlight library takes quite neat. It scores individual html nodes based on some heuristics (text length, link density, css classes). It the selects the nodes with the highest score. [1] I ported it to Swift for a personal read later app.
[1] https://github.com/postlight/parser
-
Trouble Building Chrome Extension to Get News Article Content
I've been working on an enhanced reader mode extension for the last few months. I found that Mercury Reader's parser tool is useful for extracting content. If that's not exactly what you're looking for, readibility is another good option. It's a library used inside Firefox's reader moder that you can use in any project.
-
What Are The Coolest Virtual Machines You Currently Run 24/7?
I currently have it turned off while I search for better sources, but I have a VM that runs a custom cron script that combines a custom RSS reader, podfox, mercury-parser, and coqui-ai to generate audio podcasts from RSS news feeds. I should probably clean it up and release the script/setup process. With a few tweaks and some AI text-to-speech and a little machine learning audio processing you can get a really good podcast experience from text posts.
-
Extracting Text button no longer works
It looks like Relay could be updated to convert it locally though, since the parser that it uses appears to be open source.
-
Which are some open-source Chrome extensions you want to use on Firefox?
https://github.com/postlight/mercury-parser The only one I need, shit's too good
-
API for getting news fulltext
An alternative would be to extract the plain text from the article's page with either some "readability" API or a library like Mercury Parser: https://github.com/postlight/mercury-parser
-
How does Firefox's Reader View work?
I haven’t directly compared them, but I have also found mercury parser (https://github.com/postlight/mercury-parser) to be very reliable.
Since it turns a website into very plain (X)HTML it‘s fairly easy to use it to make a browsing proxy or automatically produce epub files for e-readers, which is what I do.
-
Build your self-hosted Evernote
Make sure that at the end of the process you have the node and npm executables installed - the http.webpage integration uses the Mercury Parser API to convert web pages to Markdown.
-
Reading from the web offline and distraction-free
Good luck! Those HTML issues you're coming across are tough and so varied across the web!
I was working with Mercury Parser (pluggable parsing for different sites) in the past.
https://github.com/postlight/mercury-parser
- The most underused browser feature
What are some alternatives?
percollate - A command-line tool to turn web pages into readable PDF, EPUB, HTML, or Markdown docs.
readability - A standalone version of the readability lib
go-readability - Go package that cleans a HTML page for better readability.
hn-search - Hacker News Search
hackernews-TUI - A Terminal UI to browse Hacker News
Just-Read - A customizable read mode web extension.
w3m - Debian's w3m: WWW browsable pager
FParsec - A parser combinator library for F#
arcan - Arcan - [Display Server, Multimedia Framework, Game Engine] -> "Desktop Engine"
tidy-html5 - The granddaddy of HTML tools, with support for modern standards
zimit - Make a ZIM file from any Web site and surf offline!
arc90-readability - A copy of the original Arc90 repo with links to many of the current ports.