pifeifei/html-parser

v1.0.1 2020-07-17 06:43 UTC

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.