pifeifei / html-parser
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pifeifei/html-parser
Requires
- php: ^5.5 | ^7.0
- ext-iconv: *
- guzzlehttp/guzzle: ^6.3
- symfony/css-selector: ~3.4.0
- symfony/dom-crawler: ~3.4.0
Requires (Dev)
- phpunit/phpunit: ^7.5
- symfony/var-dumper: ^4.3
This package is auto-updated.
Last update: 2025-10-17 18:37:26 UTC
README
install:
composer require pifeifei/html-parser
use:
use Pifeifei\HtmlParser; $htmlParser = new HtmlParser(); $url = 'http://baijiahao.baidu.com/s?id=1644885607674637957'; $htmlParser->get($url); dump($this->htmlParser->getTitle()); dump($this->htmlParser->getContent());
explain:
For normal study only, do not use for illegal purposes. All consequences are borne by the developer, not by the developer.