Live data from Hacker News

Show HN: Estimated Reading Time API

klopets.com

11–20 of 30 posts

Re: Show HN: Estimated Reading Time API

#11
To those folks saying, "this is easy to code up in JavaScript" or "Pelican already does this for you" -- does it do it for you for other people's content?

I like this because I can just plug in the URL of any old article I might want to read and see what I'm getting myself into, e.g. http://klopets.com/readtime/?url=http://www.newyorker.com/ma.... Now that I know it's a 15 minute read, I'll probably save it for later.

This would be great as a browser plugin.

Re: Show HN: Estimated Reading Time API

#14

I like the idea however it is confused by messy HTML such as: http://klopets.com/readtime/?url=http://www.nytimes.com/2016...

I'm aware of it, thanks. The current approach isn't really that flexible. For example, I've seen the NY Times and The Atlantic not working. I've considered some different potential fixes but haven't implemented them yet. Thanks!

Re: Show HN: Estimated Reading Time API

#15
post #8

A bit too simple for an API, reminds me of Fuck Off As A Service. http://www.foaas.com/

Simplicity is a good thing. A service that attempts to do one thing well.

Not when the HTTP request itself is more complicated to do than actually reimplementing the thing in Javascript.

NOTE: If you are using a library for easily doing HTTP requests, than you can probably use a library for estimating time to read.

Re: Show HN: Estimated Reading Time API

#16

To those folks saying, "this is easy to code up in JavaScript" or "Pelican already does this for you" -- does it do it for you for other people's content? I like this because I can just plug in the URL of any old article I might want to read and see what I'm getting myself into, e.g. http://klopets.com/readtime/?url=http://www.newyorker.com/ma... . Now that I know it's a 15 minute read, I'll probably save it for late…

I like your username...

You are right, and thanks for pointing that out. I can generally tell how long it will take to read an article with a little scroll and a glance at the scroll bar. If the scroll bar is small, reading is going to take a while and vice versa.

Re: Show HN: Estimated Reading Time API

#17
post #15

Earlier quoted context omitted.

Simplicity is a good thing. A service that attempts to do one thing well.

Not when the HTTP request itself is more complicated to do than actually reimplementing the thing in Javascript. NOTE: If you are using a library for easily doing HTTP requests, than you can probably use a library for estimating time to read.

I like the notion that a service can continue to improve under the covers without me needing to do software updates to get a new version of library.

I know you can just include an external JavaScript library but I only do that for sources I trust.

Re: Show HN: Estimated Reading Time API

#18

To those folks saying, "this is easy to code up in JavaScript" or "Pelican already does this for you" -- does it do it for you for other people's content? I like this because I can just plug in the URL of any old article I might want to read and see what I'm getting myself into, e.g. http://klopets.com/readtime/?url=http://www.newyorker.com/ma... . Now that I know it's a 15 minute read, I'll probably save it for late…

I like your username... You are right, and thanks for pointing that out. I can generally tell how long it will take to read an article with a little scroll and a glance at the scroll bar. If the scroll bar is small, reading is going to take a while and vice versa.

Unless you have sites full of Facebook comments and bullshit taboola content at the bottom

Re: Show HN: Estimated Reading Time API

#20
post #19

FYI: Made a similar npm module a while ago if you want this functionality locally: https://github.com/hswolff/read-time

Thanks for sharing! The point here isn't just calculating the reading time based on a WPM metric, it's fetching a remote page, analyzing it to find the main content and then doing the maths, among other stuff taking into account any images.
Post reply on HN