From 4c5c0e6ddb004d0964e52f3662197e151fb6cd8b Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Fri, 26 Jan 2024 16:06:27 +0300 Subject: [PATCH] actual version, device change --- resources/views/menu/course.blade.php | 36 +++++++++++---------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/resources/views/menu/course.blade.php b/resources/views/menu/course.blade.php index 4dc52b1..8779bd1 100644 --- a/resources/views/menu/course.blade.php +++ b/resources/views/menu/course.blade.php @@ -36,31 +36,25 @@
@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 App\Services\PageScrapper; - $pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/", '
'); - $row = $pageScrapper->getHTML(); - $content = $pageScrapper->normalizeURLFile($row); - $content = $pageScrapper->cutHTML($content,'//isU'); - 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 App\Services\PageScrapper; + $pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/", '
'); + $row = $pageScrapper->getHTML(); + $content = $pageScrapper->normalizeURLFile($row); + $content = $pageScrapper->cutHTML($content,'//isU'); + echo $content; + */ @endphp