News for hackers. Stuff that matters.
Re:Instapaper is joining Pinterest by idlewords on Tuesday August 23, 2016 @02:03PM (#12345908)
I'm cool with the idea of providing a readable option in Pinboard, since I already do something similar to get the text out of the page for indexing. Any library for this you particularly like?
Re:Instapaper is joining Pinterest by kough on Tuesday August 23, 2016 @02:21PM (#12346093)
Readability (https://github.com/luin/readability) is a classic, and included as part of Firefox (I think, maybe that's been discontinued). It's essentially a bag of hand-written heuristics but they're pretty good heuristics.

Some interesting reading is Christian Kohlschütter's thesis on this problem, which is framed in academia as "how do we assemble good text corpuses from webpages for data analysis, which means removing junk (boilerplate) from our HTML crawls" (https://code.google.com/archive/p/boilerpipe/wikis/WSDM2010P...). Boilerpipe would probably be the right way to go, but if you're not using Java it could be harder to integrate.

Re:Instapaper is joining Pinterest by userhacker on Tuesday August 23, 2016 @02:54PM (#12346428)
I second Readability, it works great for article heavy webpages. I used it to build a reading time estimator for chrome https://chrome.google.com/webstore/detail/read-time/nccohhim... and its open source https://github.com/usergit/read-time bonus, you can click on the extension to show only the main content of the page
Re:Instapaper is joining Pinterest by idlewords on Tuesday August 23, 2016 @03:26PM (#12346711)
Thank you and the parent both for these links!
Re:Instapaper is joining Pinterest by axx on Tuesday August 23, 2016 @03:53PM (#12346938)
It works great! I used the Pinboard API to download my bookmarks and used readability to crawl the original text from the source url.
Re:Instapaper is joining Pinterest by cpeterso on Tuesday August 23, 2016 @03:25PM (#12346699)
Firefox maintains a fork of Readability for Firefox's reader mode here:

https://github.com/mozilla/readability

Re:Instapaper is joining Pinterest by heliostatic on Tuesday August 23, 2016 @04:18PM (#12347201)
This would be great! A while back I signed up for Paperback (https://readpaperback.com/) to handle this for my Pinboard account, and then wrote my own using the Ruby Readability library.
Re:Instapaper is joining Pinterest by conradev on Tuesday August 23, 2016 @06:42PM (#12348370)
Instaparser, when it was originally released, was priced competitively with Diffbot: https://www.diffbot.com/products/automatic/#article

Which is a nice API for extracting metadata from a web page, although I understand it might not be worth the cost.

Re:Instapaper is joining Pinterest by kobayashi on Tuesday August 23, 2016 @06:38PM (#12348353)
Hopefully you see this. The biggest reason I stick with Pocket (despite the privacy implications) is because of its text-to-speech functionality. AFAIK, Pinboard is a website only, so TTS is out of the question. However, might this change in the future?
Re:Instapaper is joining Pinterest by mcgrath_sh on Tuesday August 23, 2016 @07:10PM (#12348510)
There is a great app called Voice Dream reader on iOS that takes text from a variety of sources and can do TTS. I think I paid $9.99 for it and bought an Inova voice for $4.99. I love it. I use it to have custom study guides read to me, ePubs, PDFs, text documents and my Instapaper queue.
Re:Instapaper is joining Pinterest by kobayashi on Friday August 26, 2016 @06:55PM (#12369879)
Thanks, I'll check them out. Although from what I can tell of Voice Dream it's a big extra step in the workflow.
Re:Instapaper is joining Pinterest by leejoramo on Tuesday August 23, 2016 @02:21PM (#12346094)
I would very much like to see this.

I don't know what is the state of the art for a general content extractor. (I have done a fair amount of one off web scrapers, for data collection, but nothing this generic)