查看: 1255|回复: 0

PHP Simple HTML DOM Parser (jQuery Style)

[复制链接]
kernel 发表于 2008-10-29 08:41:33 | 显示全部楼层 |阅读模式
http://phpimpact.wordpress.com/2 ... arser-jquery-style/

Simple HTML DOM Parser

The Simple HTML DOM Parser is implemented as a simple PHP class and a few helper functions. Itsupports CSS selector style screen scraping (such as in jQuery), canhandle invalid HTML, and even provides a familiar interface tomanipulate a DOM.
Tutorial: Easy Screen Scraping in PHP with the Simple HTML DOM Library

Zend_Dom_Query

Zend_Dom_Query provides mechanisms for querying XML and (X)HTML documents utilizingeither XPath or CSS selectors. It was developed to aid with functionaltesting of MVC applications, but could also be used for rapiddevelopment of screen scrapers.
CSS selector notation is provided as a simpler and more familiarnotation for web developers to utilize when querying documents with XMLstructures. The notation should be familiar to anybody who hasdeveloped Cascading Style Sheets or who utilizes Javascript toolkitsthat provide functionality for selecting nodes utilizing CSS selectors.

phpQuery

phpQuery is a server-side, chainable DOM selector & manipulator. CSSselectors are used to fetch nodes. It’s a partial port of jQueryJavaScript Library to PHP5. It doesn’t need jQuery to work. API iscompatible with jQuery 1.2.

DomQuery

DomQuery is a wrapper for various features of the DOM extension to provide ajQuery-like API for them using the SPL ArrayObject class as a base forstorage and iteration.
游客
请先登录
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表