phpQuery 数据抓取疑点

WBOY
Release: 2016-06-13 11:52:43
Original
798 people have browsed it

phpQuery 数据抓取疑问
我想使用phpQuery 抓取某东产品的名字和价格,能取到产品名称,不能取到价格,因为源代码的价格是使用JS输出的,如果用Chrome浏览器审查元素是有价格的,应该怎样取得审查元素里的价格?
------解决方案--------------------
是ajax的吧?那就得多一次请求了
如果是js代码,那就要用正则去匹配

另外phpquery很久没维护了,要高级点的比如css3,html5之类,建议尝试下querypath(当然也不能解决你这个问题)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!