Readability4J VS parser

Compare Readability4J vs parser and see what are their differences.

Readability4J

A Kotlin port of Mozilla‘s Readability. It extracts a website‘s relevant content and removes all clutter from it. (by dankito)

parser

📜 Extract meaningful content from the chaos of a web page (by postlight)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Readability4J parser
3 12
135 5,254
- 1.8%
4.3 1.1
over 2 years ago 6 months ago
HTML JavaScript
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

Readability4J

Posts with mentions or reviews of Readability4J. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-12.
  • Creating an advanced search engine with PostgreSQL
    9 projects | news.ycombinator.com | 12 Jul 2023
    Depending upon the type of content, one might want to look into using the Readability (Browder's reader view) to parse the webpage. It will give you all the useful info without the junk. Then you can put it in the DB as needed.

    https://github.com/mozilla/readability

    Btw, readability, is also available in few other languages like Kotlin:

    https://github.com/dankito/Readability4J

  • How does Firefox's Reader View work?
    15 projects | news.ycombinator.com | 30 Mar 2022
    My Hacker News client HACK for iOS and Android has a reader mode ability browser. While on iOS, I was able to use the reader mode feature provided by SFSafariViewController, that wasn't available on android.

    So I had to read a ton about this. I ended up using a heavily modified Kotlin version of Readability:

    https://github.com/dankito/Readability4J

    https://play.google.com/store/apps/details?id=com.pranapps.h...

    https://apps.apple.com/us/app/id1464477788

  • Show HN: Instantly Listen to Any URL
    3 projects | news.ycombinator.com | 13 Aug 2021
    Not sure about OP but I just implemented this in my Hacker News android client (thanks for the idea OP).

    This is how I implemented it. I had already achieved article to "reader mode" by heavily customizing the Kotlin port of Mozilla‘s Readability:

    https://github.com/dankito/Readability4J

    Then I pass the text via Android's TextToSpeech library and it works very well:

        fun trySpeaking(str:String){

parser

Posts with mentions or reviews of parser. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-14.
  • Show HN: I made a tool to clean and convert any webpage to Markdown
    17 projects | news.ycombinator.com | 14 Apr 2024
    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
    3 projects | /r/webdev | 22 Nov 2022
    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?
    10 projects | /r/selfhosted | 10 Oct 2022
    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
    1 project | /r/RelayForReddit | 22 Sep 2022
    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?
    7 projects | /r/firefox | 16 Apr 2022
    https://github.com/postlight/mercury-parser The only one I need, shit's too good
  • API for getting news fulltext
    2 projects | /r/api | 8 Apr 2022
    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?
    15 projects | news.ycombinator.com | 30 Mar 2022
    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
    12 projects | dev.to | 6 Jan 2022
    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
    7 projects | news.ycombinator.com | 10 Oct 2021
    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
    22 projects | news.ycombinator.com | 25 Aug 2021

What are some alternatives?

When comparing Readability4J and parser you can also consider the following projects:

go-readability - Go package that cleans a HTML page for better readability.

readability - A standalone version of the readability lib

article-extractor - To extract main article from given URL with Node.js

hn-search - Hacker News Search

Just-Read - A customizable read mode web extension.

percollate - A command-line tool to turn web pages into readable PDF, EPUB, HTML, or Markdown docs.

FParsec - A parser combinator library for F#

web-clipper - For Notion,OneNote,Bear,Yuque,Joplin。Clip anything to anywhere

tidy-html5 - The granddaddy of HTML tools, with support for modern standards

unclutter - A modern reader mode and article library for your browser.

rdrview - Firefox Reader View as a command line tool