fixing previous commit
Tests & Lint & Deploy to Railway / build (20.x, 8.2) (pull_request) Failing after 1m58s Details
Tests & Lint & Deploy to Railway / deploy (8.1) (pull_request) Has been skipped Details

This commit is contained in:
Holiienko Roman 2024-01-23 15:50:36 +03:00
parent bfcb9cdba2
commit f8155f2557
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,10 @@
$pageScrapper = new PageScrapper("https://www.mkgtu.ru/postuplenie/web-consultations/", '<div class=["\']content_info["\']>'); $pageScrapper = new PageScrapper("https://www.mkgtu.ru/postuplenie/web-consultations/", '<div class=["\']content_info["\']>');
$row = $pageScrapper->getHTML(); $row = $pageScrapper->getHTML();
$content = $pageScrapper->normalizeURLFile($row); $content = $pageScrapper->normalizeURLFile($row);
$page = "https://mkgtu.ru/postuplenie/priemnaya-kampaniya/spetsialitet-magistratura-2022/";
$strForScissors = '/<footer(.*)<\/footer>/isU';
$tmp = preg_match_all($strForScissors, $content, $arr);
$content = str_replace($arr[1],'',$content);
echo $content; echo $content;
@endphp @endphp

View File

@ -39,6 +39,10 @@
$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);
$page = "https://mkgtu.ru/postuplenie/priemnaya-kampaniya/spetsialitet-magistratura-2022/";
$strForScissors = '/<footer(.*)<\/footer>/isU';
$tmp = preg_match_all($strForScissors, $content, $arr);
$content = str_replace($arr[1],'',$content);
echo $content; echo $content;
@endphp @endphp