hn-search
readability
Our great sponsors
hn-search | readability | |
---|---|---|
1,608 | 51 | |
523 | 7,973 | |
1.3% | 6.4% | |
2.9 | 6.3 | |
6 months ago | 14 days ago | |
TypeScript | JavaScript | |
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.
hn-search
-
Ask HN: Why are posts about the Gaza genocide being censored?
Many stories related to the ongoing famine and genocide in Gaza are tech-related: tech companies big and small are enabling Israel's military action in Gaza and in some cases directly supporting the occupation and genocide. The injustices of the real world are often played out again in cyber space, what some people have called a "digital apartheid".
This week, both Google and Amazon employees protested their company's involvement in this, and the stories relating to this were immediately removed from Hacker News front page. Why?
Why is HN flagging anything related to this topic?
https://hn.algolia.com/?dateRange=pastWeek&page=0&prefix=false&query=Israel&sort=byDate&type=story
-
Calculus Made Easy
Here some of the previpus submissions, with lots of comments.
-
We Need to Rewild the Internet
Sorry for the offtopicness, but trollish usernames aren't allowed on HN, so we've banned this account.
If you want to pick a different username, we can rename it for you and unban the account, as long as the username is genuinely neutral.
https://hn.algolia.com/?sort=byDate&dateRange=all&type=comme...
-
T-Mobile Employees Across the Country Receive Cash Offers to Illegally Swap Sims
Lazier than you think! You almost nerdsniped me into seeing how fast I could whip up a crawler but then I checked the search and found out it can find comments and use a custom date range.
https://hn.algolia.com/?dateEnd=1700092800&dateRange=custom&...
-
A Teenager
We really do love pudding.cool[1]- I'd never bothered to go look at what it's actually all about till today, and you should too if you've not, because it wasn't exactly as I expected: https://pudding.cool/about/
[1]https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
-
Knuth–Morris–Pratt Illustrated
Is this post showing a bug in HN? It says it was posted 10 hours ago, but Algolia says it was posted 2 days ago
https://hn.algolia.com/?dateRange=pastWeek&page=0&prefix=tru...
And mehulashah's comment that the thread claims was posted 7 hours ago was also posted two days ago, according to Algolia
https://hn.algolia.com/?dateRange=pastWeek&page=0&prefix=tru...
-
Ramanujan's Lost Notebook
From https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu... it looks likethere are like 5 or 6 post per year.
-
Supabase – General Availability Week
hey hn, supabase ceo her
we just announced GA, after ~4 years of beta. for those who don't know: supabase is a postgres hosting company. we also host other open source "backend" tools that make it easy to get started with postgres (tools like PostgREST for auto-generate APIs [0])
we owe a lot to the HN community. you launched us 4 years ago [1], when we were just a few developers. since then HN has been a staple in our journey, one of the best sources of product feedback [2]
the GA badge is mostly to signify organizational readiness. we're at a stage where we can take any profile of customer. we have a support team that works 24/7, and a success team that will help customers improve their postgres usage. we released our Index Advisor [3] yesterday, and we'll be releasing a few more products this week that helps customer with performance and security.
on a personal note: i read HN most days, and love going through the ShowHN's to see what devs are building. thanks for being an awesome community and my favorite place to lurk on the internet. i'll stick around to answer any questions
[0] PostgREST: https://postgrest.org
[1] Launch: https://news.ycombinator.com/item?id=23319901
[2] HN journey: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
[3] Index Advisor: https://news.ycombinator.com/item?id=40028111
- x86 and x86_64 software optimization resources
-
A Day in the Life of a Walmart Manager Who Makes $240k a Year
If there's a workaround, it's ok. Users usually post workarounds in the thread.
This is in the FAQ at https://news.ycombinator.com/newsfaq.html and there's more explanation here:
https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so...
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?
-
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:
-
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?
-
RSS meets GPT-3
So first part of the task is to "extract the text from URL", and that is achieved by using descendant of https://github.com/mozilla/readability library which can extract text of any URL.
What are some alternatives?
duckduckgo-locales - Translation files for <a href="https://duckduckgo.com"> </a>
parser - 📜 Extract meaningful content from the chaos of a web page
v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
koreader - An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats, running on Cervantes, Kindle, Kobo, PocketBook and Android devices
readability.php - PHP port of Mozilla's Readability.js
yq - Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
rssguard - Feed reader (and podcast player) which supports RSS/ATOM/JSON and many web-based feed services.
milkdown - 🍼 Plugin driven WYSIWYG markdown editor framework.
SponsorBlock - Skip YouTube video sponsors (browser extension)
nitter - Alternative Twitter front-end
Shiori - Simple bookmark manager built with Go