forked from aslan/applicant-site
actual version, device change
This commit is contained in:
parent
66939341a3
commit
4c5c0e6ddb
|
@ -36,23 +36,17 @@
|
|||
|
||||
<div class="col-10">
|
||||
@php
|
||||
use App\Services\PageScrapper;
|
||||
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/", '.content_info');
|
||||
$content = $pageScrapper->printHTML();
|
||||
$content = $pageScrapper->normalizePath();
|
||||
|
||||
echo $content;
|
||||
|
||||
|
||||
|
||||
|
||||
// use DiDom\Document;
|
||||
//
|
||||
// $document = new Document('https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/', true);
|
||||
//
|
||||
// $posts = $document->find('.content_info');
|
||||
//
|
||||
// echo $document->first('.content_info')->html();
|
||||
use DiDom\Document;
|
||||
|
||||
$document = new Document('https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/', true);
|
||||
|
||||
$posts = $document->find('.content_info');
|
||||
|
||||
echo $document->first('.content_info')->html();
|
||||
/*
|
||||
use App\Services\PageScrapper;
|
||||
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/", '<div class=["\']content_info["\']>');
|
||||
|
|
Loading…
Reference in New Issue