如何实现像Arc90的Readability或Instapaper类似的HTML页面清理器? [英] How to implement similar html page scrubber like Arc90's Readability or Instapaper?

查看:132
本文介绍了如何实现像Arc90的Readability或Instapaper类似的HTML页面清理器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣了解如何清理html页面并很好地呈现它 - 删除所有的混乱,并将主要文本格式化为非常可读的格式 - 例如 http://lab.arc90.com/experiments/readability 或Instapaper。

这是一个简单的页面解析和删除不在

之内的元素吗?



是否在其他地方讨论过?

解决方案

https://github.com/jiminoc/goose/ wiki 的功能与你所要求的一样,源代码可以与单元测试一起公开使用

I'm interested to find out how to scrub a html page and present it nicely -- remove all the clutters and reformat the main text into a very readable format -- like http://lab.arc90.com/experiments/readability or Instapaper.

Is it a simple page parsing and removing elements that are not within

?

Was this discussed somewhere else?

解决方案

https://github.com/jiminoc/goose/wiki does something like you're asking, source code is openly available along with unit tests

这篇关于如何实现像Arc90的Readability或Instapaper类似的HTML页面清理器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆