PHP CSS 选择器库?
是否有允许我使用 CSS 选择器查询 XHTML 文档的 PHP 类/库?如果我能以某种方式使用 CSS 选择器(jQuery 宠坏了我!),我需要抓取一些非常容易访问的数据页面.有什么想法吗?
Is there a PHP class/library that would allow me to query an XHTML document with CSS selectors? I need to scrape some pages for data that is very easily accessible if I could somehow use CSS selectors (jQuery has spoiled me!). Any ideas?
推荐答案
进一步谷歌搜索后(最初的结果不是很有帮助),似乎实际上有一个 Zend Framework 库,以及其他一些:
After Googling further (initial results weren't very helpful), it seems there is actually a Zend Framework library for this, along with some others:
- DOM-Query
- phpQuery
- pQuery
- 查询路径
- 简单的 HTML DOM 解析器
- 终极网络爬虫工具包
- Zend-Dom
相关文章