TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Reading the web offline and distraction-free

72 pointsby owulveryckover 3 years ago

13 comments

ivan_ahover 3 years ago
Very cool.<p>The take-any-webpage-offline need is also common in the education space (teachers want to save a webpage and send it to their students as part of a lesson and don&#x27;t want to worry about availability or ads etc).<p>I used to work on tools for this <a href="https:&#x2F;&#x2F;github.com&#x2F;learningequality&#x2F;ricecooker&#x2F;blob&#x2F;develop&#x2F;ricecooker&#x2F;utils&#x2F;downloader.py#L205-L502" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;learningequality&#x2F;ricecooker&#x2F;blob&#x2F;develop&#x2F;...</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;learningequality&#x2F;BasicCrawler&#x2F;blob&#x2F;master&#x2F;basiccrawler&#x2F;crawler.py#L286-L382" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;learningequality&#x2F;BasicCrawler&#x2F;blob&#x2F;master...</a> which worked quite well for most sites, but still very far from a general-purpose solution.<p>There is also more powerful&#x2F;general-purpose scraper that generates a ZIM file here: <a href="https:&#x2F;&#x2F;github.com&#x2F;openzim&#x2F;zimit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;openzim&#x2F;zimit</a><p>It would be really nice to a &quot;common&quot; scraper code base that takes care of scraping (possibly with a real headless browser) and outputs all assets as files + info as JSON. This common code base could then be used by all kinds of programs to package the content as standalone HTML zip files, ePub, ZIM, or even PDF for crazy people like me who like to print things ;)
评论 #28827003 未加载
评论 #28821534 未加载
captn3m0over 3 years ago
I do a lot of this work[3] (web to documents) and it&#x27;s interesting to see other approaches. The medium image problem is something I&#x27;ve faced as well, but never got around to fixing. I&#x27;m planning to get a Remarkable soon, so will definitely be trying this out.<p>My personal solution has been <a href="https:&#x2F;&#x2F;github.com&#x2F;captn3m0&#x2F;url-to-epub&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;captn3m0&#x2F;url-to-epub&#x2F;</a> (Node&#x2F;readability), which I&#x27;ve tested against the entirety of Tor&#x27;s original fiction collection[0] where it performs well enough (I&#x27;m biased). Another tool that does this beautifully well is percollate[1], but it doesn&#x27;t give enough control of the metadata to the user - something I really care about.<p>I&#x27;ve also started to use rdrview[2], which is a C-port of the current Firefox implementation of &quot;reader view&quot;. 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.<p>[0]: <a href="https:&#x2F;&#x2F;www.tor.com&#x2F;category&#x2F;all-fiction&#x2F;original-fiction&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.tor.com&#x2F;category&#x2F;all-fiction&#x2F;original-fiction&#x2F;</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;danburzo&#x2F;percollate" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;danburzo&#x2F;percollate</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;eafer&#x2F;rdrview" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;eafer&#x2F;rdrview</a><p>[3]: <a href="https:&#x2F;&#x2F;captnemo.in&#x2F;ebooks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;captnemo.in&#x2F;ebooks&#x2F;</a>
atsaloliover 3 years ago
I run &quot;lynx --dump $URL | vim -&quot; to read the text in Vim when the web page gets too cluttered (I use Vim as a pager because I know &quot;Vim&quot; better than &quot;less&quot;).
评论 #28827014 未加载
评论 #28825431 未加载
Syonykover 3 years ago
How is this different from the Wallabag project, which, as I understand it (it&#x27;s on my list of &quot;Things to mess with at some point&quot;) does exactly the same thing - website to epub for offline reading?
bredrenover 3 years ago
Newspaper3k is a Python package I’m using to extract content from articles across the web.<p>But it has not been maintained, since the author joined Facebook.<p>It works alright, but it has many issues.<p>If I understand correctly, a full on replacement for newspaper is in the wings, seeking to offer a sustainable content extraction tool in Python.<p>But it isn’t ready yet. And some of the problems in this area mirror those faced by web scrapers.
phkxover 3 years ago
I‘ve been using pandoc to extract texts next to my notes (both in Markdown) in order to add links between them. I haven’t extracted too many pages yet, but the results were reasonable so far, although sometimes lots of html tags remain. Also, none of them contained any math so far.
marbanover 3 years ago
Needless to say that extractability hasn&#x27;t gotten easier in recent years but I&#x27;m even more concerned about archive.org&#x27;s quality&#x2F;capabilities — They really need to step up their game to remain useful in this area.
gcrover 3 years ago
Calibre supports getpocket via a plugin that you can add from the app. Then, you can click the &quot;Get News&quot; button to download all the articles from your Pocket feed into your eBook reader at once.
owulveryckover 3 years ago
This is a post about a tool I am building to generate an epub from a website
评论 #28820055 未加载
haroldtreenover 3 years ago
I built a Chrome Extension that does this exact thing :). There&#x27;s also a WebAPI.<p><a href="https:&#x2F;&#x2F;epub.press&#x2F;" rel="nofollow">https:&#x2F;&#x2F;epub.press&#x2F;</a>
alexmcc81over 3 years ago
On a related note, does anyone know of any open source project that could parse the website text and generate a list of tags?
评论 #28820669 未加载
mro_nameover 3 years ago
occasionally I use <a href="https:&#x2F;&#x2F;github.com&#x2F;gildas-lormeau&#x2F;SingleFile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gildas-lormeau&#x2F;SingleFile</a>
notionparallaxover 3 years ago
I&#x27;ve been making something for this for a couple of years now, with <a href="http:&#x2F;&#x2F;waldenpond.press&#x2F;" rel="nofollow">http:&#x2F;&#x2F;waldenpond.press&#x2F;</a><p>It connects to the Pocket API to get the parsed articles, pushes them through quite a lot of BS4 clean up, then renders them using paged.js. The resulting PDFs are then printed by Lulu.com, and they come once a month as a printed book to read completely offline.<p>I solved the Medium image issue with CSS as far as I remember. `.medium\.com svg:first-of-type` and then set it to `display: none`.