HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
go-shiori
go-readability
HTML2018–2025
go-shiori / go-readability · Archived

go-readability

Go package that cleans a HTML page for better readability.

7Distinct people
10Mentions
0Explicit recommenders
939GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Go package that cleans a HTML page for better readability.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year10 dated mentions

Observed mentions: 2018-03-01 14:17:49 UTC to 2025-05-23 03:41:16 UTC.

01232018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC202
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC202
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC303
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101

What Hacker News says

10 sources
> I think too many techies are, much like yourself, contributing to the problem by refusing to move away from Chrome [...] Contrary to your assumptions, I've been quite vocal against the Chrome/Blink monoculture for a while. Unfortunately there is a legit case for it; several generations of "low-end" devices (anything older than 10 years basically), that are still quite capable and in common use, where the difference in performance between Firefox and Chromium becomes quite noticeable, especially as you try to watch video. I don't think the problem is "techies", we have zero influence outside our own circles - see the historical rates of Linux adoption. The problem is we need the good ol' hammer of antitrust to start swinging again. We also need the regulators to be smart; if we get really unlucky, they will target iOS Safari instead. (Th
Read the rest
is would be good in a healthy ecosystem, but would only serve to further entrench Google's position in the current situation.) By the way, using a filtering/rewriting proxy has other merits, especially on said older hardware; you can rewrite the entire web page to make it more lightweight and accessible. Check out miniwebproxy[1] and medium-rare[2]. It's also quite simple to write one; you need maybe a hundred lines of Go to start getting results. I've been experimenting with integrating Readability[3][4]; and I think there's more potential to this approach. [1]: https://humungus.tedunangst.com/r/miniwebproxy [2]: https://humungus.tedunangst.com/r/medium-rare [3]: https://github.com/go-shiori/go-readability [4]: https://github.com/mozilla/readability
In System-wide open source ad blocker for Mac, Windows, and Linux
I've been working on several web extractors project, so I think I could share some of my findings while working on them. Granted it's been several months since I worked on it so I might be forgetting some things. There are several open source projects for extracting web contents. However, there are three extractors that I've worked with and give us good result: - readability.js[1], web extractor by Mozilla that used in Firefox. - dom-distiller[2], web extractor by Chromium team, written in Java. - trafilatura[3], Python package by Adrien Barbaresi from BBAW[4]. First, readability.js, as expected is the most famous extractor. It's a single file Javascript library with modest 2,000+ lines of code, released under Apache license. Since it's in JS, you can use it wherever you want, either in web page using `script` tag or by using it in Node p
Read the rest
roject. Next, DomDistiller is extractor that used in Chromium. It uses Java language with whopping 14,000+ lines of code and can only be used as part of Chromium browser, so you can't exactly use it as standalone library or CLI. Finally, Trafilatura is a Python package released under GPLv3 license. Created in order to build a text databases[5] for NLP research, it mainly intended for German web pages. However, as development continues, it works really great with other languages. It's a bit slow though compared to Readability.js. All of those three work in similar way: extract metadata, remove unneeded contents, and finally returns the cleaned up content. Their differences (that I remembered) are: - In Readability, they insist to make no special rules for any website, while DomDistiller and Trafilatura give a small exception for popular sites like Wikipedia. Thanks to this, if you use Readability.js in Wikipedia pages, it will shows `[edit]` button thorough the extracted content. - Readability has a small function to detect whether a web page can be converted to reader mode. While it's not really accurate, it's quite convenient to have. - In DomDistiller, the metadata extraction is more thorough than the others. It supports OpenGraph, Schema.org, and even the old IE Reading View mark up tags. - Since DomDistiller is only usable within Chromium, it has the advantage to be able to use CSS styling to determine if an element is important or not. If an element is styled to be invisible (e.g. `display: none`) then it will be deemed unimportant. However, according to a research[6] this step is actually doesn't really affect the extraction result. - DomDistiller also has an experimental feature to find and extract next page in sites that separated its article to several partial pages. - For Trafilatura, since it was created for collecting web corpus, it main ability is extracting text and the publication date of a web page. For the latter, they've created a Python package named htmldate[7] whose only purpose is to extract the publication or modification date for a web page. - Trafilatura also has an experimental feature to remove elements that repeated too often. The idea is if the element occured too often, then it's not important to the reader. I've found benchmark[8] that compare the performance between the extractors, and it said that Trafilatura has the best accuracy compared to the others. However, before you start rushing to use Trafilatura, you should remember that Trafilatura is intended for gathering web corpus, so it's really great for extracting text content, but IIRC is not as good as Readability.js and DomDistiller for extracting a proper article with images and embedded iframes (depending on how you look, it could be a feature though). By the way, if you are using Go and need to use a web extractor, I already ported all three of them to Go[9][10][11] including their dependencies[12][13], so have fun with it. [1]: https://github.com/mozilla/readability [2]: https://github.com/chromium/dom-distiller [3]: https://github.com/adbar/trafilatura [4]: https://www.bbaw.de/en/ [5]: https://www.dwds.de/d/k-web [6]: https://arxiv.org/abs/1811.03661 [7]: https://github.com/adbar/htmldate [8]: https://github.com/scrapinghub/article-extraction-benchmark [9]: https://github.com/go-shiori/go-readability [10]: https://github.com/markusmobius/go-domdistiller [11]: https://github.com/markusmobius/go-trafilatura [12]: https://github.com/markusmobius/go-htmldate [13]: https://github.com/markusmobius/go-dateparser
In How does Firefox's Reader View work? (2020)
Hacker News’ RSS feed is here → https://news.ycombinator.com/rss Unfortunately, it only includes the title and the submission’s link, no content, which makes it a bit useless if your intension is to read the articles and not just the titles, which you can already do by visiting the home page. Some people have created complementary RSS feeds like this → https://github.com/cixtor/rssfeed#readme which basically take the submission’s URL, download the web page, and removes the irrelevant HTML tags using Mozilla’s Readability.js library. Although, this project uses a Go (golang) port: https://github.com/go-shiori/go-readability#readme . It seems to work quite well, with minor bugs here and there due to inconsistencies of modern web development.
In I Miss RSS
Oh, hello there again! It's always good to see people testing their site on non-mainstream user-agents. Some other terminal user-agents to try: rdrview, go-readability: these are CLI utilities that use Mozilla's Readability algorithm to send HTML of just the article to stdout. Pipe that into w3m/lynx/links to read articles in the terminal. Testing in these ensures that your website will work in Firefox's Reader Mode. I also like to diff my website's HTML against the HTML output of these tools, just to see how much extraneous HTML I have. Mozilla's Readability is written in JS; these tools are written in C and Go, respectively. With the exception of a few whitespace characters, their output of both seems to be identical. => https://github.com/eafer/rdrview rdrview => https://github.com/go-shiori/go-readability go-readability Edbrowse is a
Read the rest
line-mode browser that supports JavaScript via Duktape. Originally written for blind users, it's great for sighted users as well. => https://edbrowse.org/ edbrowse If you want to go the extra mile and ensure that your website works with the most basic HTML parsers, try sending it through an HTML-to-Markdown converter that doesn't include inline html in the Markdown output. I test with pandoc's strict markdown output and make sure the resulting markdown is readable: pandoc -f html -t markdown_strict https://example.com None of this is a replacement for real a11y testing; most a11y technology leverages mainstream browsers (Chromium, FF, Safari, et cetera).
In How and why to use Lynx – the faster web browser

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.