PHP CSS选择库? [英] PHP CSS Selector Library?

查看:73
本文介绍了PHP CSS选择库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个PHP类/库,将允许我使用CSS选择器查询XHTML文档?我需要抓取一些页面的数据,是很容易访问,如果我能以某种方式使用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?

推荐答案

在Googling进一步(初步结果不是很有帮助)后,似乎有一个Zend框架库对于此,以及其他一些:

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
  • QueryPath
  • Simple HTML DOM Parser
  • Ultimate Web Scraper Toolkit
  • Zend-Dom

这篇关于PHP CSS选择库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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