English 中文(简体)
• 如何使用类似于Arc90的阅读能力或纸质的html网页。
原标题:How to implement similar html page scrubber like Arc90 s Readability or Instapaper?
  • 时间:2010-09-16 07:39:07
  •  标签:
  • html
  • parsing

I m 希望了解如何cr1 html网页,并把它放在单头上——删除所有cl,并将主文改成一个非常可读的格式——例如。 或纸质。

它是否是一个简单的页数,删除了在

>

之内的内容?

这是否在其他地方讨论过?

最佳回答
问题回答

阅读能力不是简单的主子,而是使用复杂的算法只检索所需组成部分,如果在方案拟订中你不是一uru,那么你就会使用下文所强调的免费服务。

您可请求提供可读性开发器()

如果你要求传票,那将完全达到你想要达到的目标,即从现场提取内容。 只是想给他们一个充分的理由,使你能够使用其预报。

对他们服饰服务的询问如下:

https://www.readability.com/api/content/v1/parser?url={url to be parsed here}&token={your api key here}

请求将回复如下:

HTTP/1.0 200 OK { "domain": "blog.readability.com", "author": "Richard Ziade", "url": "http://blog.readability.com/2011/02/step-up-be-heard-readability-ideas/",

"short_url": "http://rdd.me/kbgr5a1k",
"title": "Step Up & Be Heard: Readability Ideas", 
"total_pages": 1, 
"word_count": 175, 
"content": "<div>
  
<div class="entry">
	<p>When we launched Readability [snip] ...</div>
</div>", 
"date_published": "2011-02-22 00:00:00", 
"next_page_id": null, 
"rendered_pages": 1 }

For the hard core guys out there, checkout readability nodeJS,ruby and python port from here http://arrix.blogspot.com/2010/11/server-side-readability-with-nodejs.html

1. 幸福 co

如果有关网页或网站很好地利用了语气元素和结构,那么你就只能使用一种不同的文具,可以彻底改变布局和显示。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签