Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bupt1987/html-parser
php html parser,类似与PHP Simple HTML DOM Parser,但是比它快好几倍
https://github.com/bupt1987/html-parser
html html-parser parser
Last synced: 10 days ago
JSON representation
php html parser,类似与PHP Simple HTML DOM Parser,但是比它快好几倍
- Host: GitHub
- URL: https://github.com/bupt1987/html-parser
- Owner: bupt1987
- License: mit
- Created: 2013-06-14T09:42:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-08-17T08:35:46.000Z (about 5 years ago)
- Last Synced: 2024-09-19T03:15:36.396Z (about 2 months ago)
- Topics: html, html-parser, parser
- Language: PHP
- Homepage:
- Size: 78.1 KB
- Stars: 525
- Watchers: 35
- Forks: 154
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- favorite-link - 类似与 PHP Simple HTML DOM Parser,但是比它快好几倍。
README
HtmlParser
===============
[![Total Downloads](https://img.shields.io/badge/downloads-9.4k-green.svg)](https://packagist.org/packages/bupt1987/html-parser)
[![Build Status](https://api.travis-ci.org/bupt1987/html-parser.svg)](https://travis-ci.org/bupt1987/html-parser)php html解析工具,类似与PHP Simple HTML DOM Parser。
由于基于php模块dom,所以在解析html时的效率比 PHP Simple HTML DOM Parser 快好几倍。注意:html代码必须是utf-8编码字符,如果不是请转成utf-8
如果有乱码的问题参考:http://www.fwolf.com/blog/post/314现在支持composer
"require": {"bupt1987/html-parser": "dev-master"}
加载composer
require 'vendor/autoload.php';================================================================================
##### *Example*
~~~
test
p1
p2
p3
测试1