composer require pifeifei/html-parser
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());
仅供正常学习使用,请勿用作非法用途。一切后果自行承担,与开发者无关。