main #10

Merged
aslan merged 4 commits from RomanGolienko/Roman_applicant-site:main into main 2024-01-29 17:34:01 +03:00
1 changed files with 15 additions and 21 deletions
Showing only changes of commit 4c5c0e6ddb - Show all commits

View File

@ -36,31 +36,25 @@
<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 App\Services\PageScrapper;
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/", '<div class=["\']content_info["\']>');
$row = $pageScrapper->getHTML();
$content = $pageScrapper->normalizeURLFile($row);
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/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/", '<div class=["\']content_info["\']>');
$row = $pageScrapper->getHTML();
$content = $pageScrapper->normalizeURLFile($row);
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
echo $content;
*/
@endphp