readability
plato
readability | plato | |
---|---|---|
52 | 23 | |
8,100 | 1,181 | |
3.7% | - | |
6.3 | 7.8 | |
12 days ago | 7 days ago | |
JavaScript | Rust | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
readability
-
2markdown – Transform Websites into Markdown
Why not just use something like https://github.com/mozilla/readability
And not pay $0.01 per request?
There’s a node version too https://www.npmjs.com/package/@mozilla/readability
- Mozilla: Readability.js
-
CSS for readability
I'm working with the Mozilla's readability library https://github.com/mozilla/readability to get the "readable" text from articles and now I want to style the extracted text in a readable way.
-
Building a Serverless Reader View with Lambda and Chrome
Do you remember the Firefox Reader View? It's a feature that removes all unnecessary components like buttons, menus, images, and so on, from a website, focusing on the readable content of the page. The library powering this feature is called Readability.js, which is open source.
-
Webrecorder: Capture interactive websites and replay them at a later time
I wonder if Firefox "reader mode as a utility" might be a viable alternative for Pinboard like "content oriented" archiving?
https://github.com/mozilla/readability
-
Creating an advanced search engine with PostgreSQL
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
-
Seeking a tool or method to convert webpages into Q&A format using NLP
Use Mozilla's Readability to extract that sweet, sweet text content from webpages.
-
I built a free prompt managing tool - Knit
Same as above but the ability to grab the entire article text (you can use the Readability library for that: https://github.com/mozilla/readability)
-
I need automatic source URLs when I paste any text onto a card or note, like on OneNote.
// Original script // https://gist.github.com/kepano/90c05f162c37cf730abb8ff027987ca3 // Bookmarklet Converter // https://caiorss.github.io/bookmarklet-maker/ // Libraries // https://github.com/mixmark-io/turndown // https://github.com/mozilla/readability javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ default: Turndown }, { default: Readability }]) => { /* Optional vault name */ const vault = ""; /* Optional folder name such as "Clippings/" */ const folder = "Clippings/"; /* Optional tags */ const tags = ""; function getSelectionHtml() { var html = ""; if (typeof window.getSelection != "undefined") { var sel = window.getSelection(); if (sel.rangeCount) { var container = document.createElement("div"); for (var i = 0, len = sel.rangeCount; i < len; ++i) { container.appendChild(sel.getRangeAt(i).cloneContents()); } html = container.innerHTML; } } else if (typeof document.selection != "undefined") { if (document.selection.type == "Text") { html = document.selection.createRange().htmlText; } } return html; } const selection = getSelectionHtml(); const { title, byline, content } = new Readability(document.cloneNode(true)).parse(); function getFileName(fileName) { var userAgent = window.navigator.userAgent, platform = window.navigator.platform, windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE']; if (windowsPlatforms.indexOf(platform) !== -1) { fileName = fileName.replace(':', '').replace(/[/\\?%*|"<>]/g, '-'); } else { fileName = fileName.replace(':', '').replace(/\//g, '-').replace(/\\/g, '-'); } return fileName; } const fileName = getFileName(title); if (selection) { var markdownify = selection; } else { var markdownify = content; } if (vault) { var vaultName = '&vault=' + encodeURIComponent(`${vault}`); } else { var vaultName = ''; } const markdownBody = new Turndown({ headingStyle: 'atx', hr: '---', bulletListMarker: '-', codeBlockStyle: 'fenced', emDelimiter: '*', }).turndown(markdownify); var date = new Date(); function convertDate(date) { var yyyy = date.getFullYear().toString(); var mm = (date.getMonth()+1).toString(); var dd = date.getDate().toString(); var mmChars = mm.split(''); var ddChars = dd.split(''); return yyyy + '-' + (mmChars[1]?mm:"0"+mmChars[0]) + '-' + (ddChars[1]?dd:"0"+ddChars[0]); } const today = convertDate(date); // This is the output template // It is similar to an Obsidian core template // except to insert a value we use: ${value} instead of {{value}} const fileContent =`--- type: clipping date_added: ${today} aliases: [] tags: [${tags}] --- author:: ${byline.toString().split('\n')[0].trim()} source:: [${title}](${document.URL}) ${markdownBody} `; // This copies your text to the clipboard navigator.clipboard.writeText(fileContent); // This creates a new document in Obsidian containing your clipping // I commented it out as this isn't what you asked for /* document.location.href = "obsidian://new?" + "file=" + encodeURIComponent(folder + fileName) + "&content=" + encodeURIComponent(fileContent) + vaultName; */ })
- Any js packages to only scrape relevant content from a webpage?
plato
-
Ask HN: Best Open E-Reader?
Kobos[1] and Pocketbooks[2] are a lot more open than Kindles. AFAIK you can transfer .epub files into both devices and these epubs are perfectly readable via the stock OS. If for some reason you find the stock proprietary OS lacking, you can install an open source one like KOreader [3] or Plato[4]
Of course you want a good way of organizing epubs pdfs mobi, and like has already been mentioned Calibre[5] is a great option.
[1]https://www.kobo.com/
[2]https://pocketbookstore.com/en-ca
[3]https://github.com/koreader/koreader
[4]https://github.com/baskerville/plato
[5]https://calibre-ebook.com/
- Plato Document Reader for Kobo E-Readers
-
KOReader Document Viewer for E Ink devices
KOReader is nice. There's also Plato[0] for Kobo, which unlike the Kobo Libra 2 stock reader and KOReader didn't choke on an .epub with the entire Bible in one xhtml file.
[0]: https://github.com/baskerville/plato
- How can I play chess
- recommendations: 10" e-ink ebook reader without stylus pen for reading technical PDFs?
-
General Discussion Thread - December 5, 2022
Good luck! If you don't like it, there are a few other, similar projects, like Plato. That one is focused on speed and simplicity, so it might actually be better suited to your purposes. It was left unmentioned earlier because it's been incredibly buggy for me, but it's there.
-
FOSSdroid on Ereaders
plato
-
Show HN: A VNC viewer for eInk devices capable of 30 FPS when writing text
I noticed some similarities in the source code to https://github.com/baskerville/plato/
Is there some common source for Kobo-compatable rust code that you both drew from, or was plato the original source?
-
To all my Plato readers, question about fit to page/width. Is there any way to set zoom mode to fit to width, but getting page view instead of continious ?
On the issues page of its github site. Create a new issue with [Feature request] tag in title.
-
koreader auto shrinks my image?
I don’t really know much about Koreader’s reader (I use it mostly as a file manager/sftp server/OPDS client), but I heartily recommend Plato to read manga! It shows the pages full screen with no margins on the top or the bottom. I haven’t tried with kepubs though, I just read my cbz directly, without passing them though kcc.
What are some alternatives?
parser - 📜 Extract meaningful content from the chaos of a web page
koreader - An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats, running on Cervantes, Kindle, Kobo, PocketBook and Android devices
einkbro - A small, fast web browser based on Android WebView. It's tailored for E-Ink devices but also works great on normal android devices.
hn-search - Hacker News Search
calibre - The official source code repository for the calibre ebook manager
readability.php - PHP port of Mozilla's Readability.js
kindle2notion - Export all clippings from your Kindle device to a database in Notion.
rssguard - Feed reader (and podcast player) which supports RSS/ATOM/JSON and many web-based feed services.
The-Open-Book
SponsorBlock - Skip YouTube video sponsors (browser extension)
Calibre Web - :books: Web app for browsing, reading and downloading eBooks stored in a Calibre database