pifeifei / html-parser
v1.0.1
2020-07-17 06:43 UTC
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: 2024-10-17 16:36:00 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.