TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Estimated Reading Time API

56 点作者 mklopets超过 9 年前

11 条评论

jimmytucson超过 9 年前
To those folks saying, &quot;this is easy to code up in JavaScript&quot; or &quot;Pelican already does this for you&quot; -- does it do it for you for other people&#x27;s content?<p>I like this because I can just plug in the URL of any old article I might want to read and see what I&#x27;m getting myself into, e.g. <a href="http:&#x2F;&#x2F;klopets.com&#x2F;readtime&#x2F;?url=http:&#x2F;&#x2F;www.newyorker.com&#x2F;magazine&#x2F;2009&#x2F;08&#x2F;10&#x2F;the-courthouse-ring" rel="nofollow">http:&#x2F;&#x2F;klopets.com&#x2F;readtime&#x2F;?url=http:&#x2F;&#x2F;www.newyorker.com&#x2F;ma...</a>. Now that I know it&#x27;s a 15 minute read, I&#x27;ll probably save it for later.<p>This would be great as a browser plugin.
评论 #11135410 未加载
评论 #11136201 未加载
评论 #11138670 未加载
fiatjaf超过 9 年前
Is this specially good? Does it use a better algorithm or something?<p>Just asking because there&#x27;s no explanation, and it would be probably better to hack something in JS than to depend on this probably-soon-to-vanish-api. There&#x27;s already <a href="https:&#x2F;&#x2F;eager.io&#x2F;app&#x2F;reading-time" rel="nofollow">https:&#x2F;&#x2F;eager.io&#x2F;app&#x2F;reading-time</a>, for example, which anyone can install in 2 minutes, and is based on a simple algorithm[1], it seems.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;TeffenEllis&#x2F;reading-time&#x2F;blob&#x2F;master&#x2F;app.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;TeffenEllis&#x2F;reading-time&#x2F;blob&#x2F;master&#x2F;app....</a>
lucb1e超过 9 年前
Why do we need an API for this? A library seems easier, and even that is a stretch for doing `$wordcount &#x2F; 200 = minutes required to read`. Does this make an estimate of the article&#x27;s complexity and adjust how many words a person reads per minute?<p>(Source for 200 words per minute: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Words_per_minute#Reading_and_comprehension" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Words_per_minute#Reading_and_c...</a> )
评论 #11134908 未加载
stevekemp超过 9 年前
Remember that URLs don&#x27;t always point to websites:<p><a href="http:&#x2F;&#x2F;klopets.com&#x2F;readtime&#x2F;?url=file:&#x2F;&#x2F;&#x2F;etc&#x2F;passwd" rel="nofollow">http:&#x2F;&#x2F;klopets.com&#x2F;readtime&#x2F;?url=file:&#x2F;&#x2F;&#x2F;etc&#x2F;passwd</a><p><a href="http:&#x2F;&#x2F;klopets.com&#x2F;readtime&#x2F;?url=file:&#x2F;&#x2F;&#x2F;etc&#x2F;shadow" rel="nofollow">http:&#x2F;&#x2F;klopets.com&#x2F;readtime&#x2F;?url=file:&#x2F;&#x2F;&#x2F;etc&#x2F;shadow</a>
评论 #11136124 未加载
monkmartinez超过 9 年前
There is a plugin[1] for people that blog with Pelican for this. It also will score your Flesch-kincaid[2] values. You can see it in action on my blog: <a href="http:&#x2F;&#x2F;caffeineindustries.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;caffeineindustries.com&#x2F;</a><p>I do think I should adjust the words per minute values...<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;getpelican&#x2F;pelican-plugins&#x2F;tree&#x2F;master&#x2F;post_stats" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;getpelican&#x2F;pelican-plugins&#x2F;tree&#x2F;master&#x2F;po...</a> [2] <a href="http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Flesch%E2%80%93Kincaid_readability_tests" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Flesch%E2%80%93Kincaid_readabil...</a>
nstart超过 9 年前
Curious as to why the reading time is estimated as 2 minutes and 96 seconds. Wondering if it isn&#x27;t supposed to be 3 minutes and 36 seconds?<p>I plugged one of my own posts in and it read 3 minutes and 166 seconds (5 minutes and 46 seconds).
评论 #11137103 未加载
tony-allan超过 9 年前
I like the idea however it is confused by messy HTML such as: <a href="http:&#x2F;&#x2F;klopets.com&#x2F;readtime&#x2F;?url=http:&#x2F;&#x2F;www.nytimes.com&#x2F;2016&#x2F;02&#x2F;20&#x2F;arts&#x2F;harper-lee-dies.html?_r=0" rel="nofollow">http:&#x2F;&#x2F;klopets.com&#x2F;readtime&#x2F;?url=http:&#x2F;&#x2F;www.nytimes.com&#x2F;2016...</a>
评论 #11135164 未加载
krat0sprakhar超过 9 年前
Nice demo! Is this code for this available online? I&#x27;d love to see how this works.
评论 #11134953 未加载
hswolff超过 9 年前
FYI: Made a similar npm module a while ago if you want this functionality locally: <a href="https:&#x2F;&#x2F;github.com&#x2F;hswolff&#x2F;read-time" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hswolff&#x2F;read-time</a>
评论 #11135677 未加载
zapt02超过 9 年前
A bit too simple for an API, reminds me of Fuck Off As A Service. <a href="http:&#x2F;&#x2F;www.foaas.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.foaas.com&#x2F;</a>
评论 #11135130 未加载
alistproducer2超过 9 年前
We&#x27;ve officially reached Peak API. What&#x27;s the algo?