<^?php require 'd:/Herd/selenwoo/vendor/autoload.php'; = require_once 'd:/Herd/selenwoo/bootstrap/app.php'; ->make('Illuminate\Contracts\Console\Kernel')->bootstrap(); use Symfony\Component\DomCrawler\Crawler; = file_get_contents('d:/Herd/selenwoo/test_page.html'); = new Crawler(); = '.pub_txt_span, .detail_head_title'; = ->filter()->first(); echo 'Element count: ' . ->count() . PHP_EOL; if (->count() > 0) { echo 'Text: ' . trim(->text()) . PHP_EOL; } ?>