fixing previous commit
This commit is contained in:
parent
bfcb9cdba2
commit
f8155f2557
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue