main #10
|
@ -36,31 +36,25 @@
|
||||||
|
|
||||||
<div class="col-10">
|
<div class="col-10">
|
||||||
@php
|
@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;
|
use DiDom\Document;
|
||||||
//
|
|
||||||
// $document = new Document('https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/', true);
|
$document = new Document('https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/', true);
|
||||||
//
|
|
||||||
// $posts = $document->find('.content_info');
|
$posts = $document->find('.content_info');
|
||||||
//
|
|
||||||
// echo $document->first('.content_info')->html();
|
echo $document->first('.content_info')->html();
|
||||||
/*
|
/*
|
||||||
use App\Services\PageScrapper;
|
use App\Services\PageScrapper;
|
||||||
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/", '<div class=["\']content_info["\']>');
|
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/podat-dokumenty-onlayn/", '<div class=["\']content_info["\']>');
|
||||||
$row = $pageScrapper->getHTML();
|
$row = $pageScrapper->getHTML();
|
||||||
$content = $pageScrapper->normalizeURLFile($row);
|
$content = $pageScrapper->normalizeURLFile($row);
|
||||||
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
|
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
|
||||||
echo $content;
|
echo $content;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue